Skip to content

Instantly share code, notes, and snippets.

@maxmichels
Last active March 29, 2020 10:01
Show Gist options
  • Save maxmichels/f58091edc8531b1fa9d43068d7c8167a to your computer and use it in GitHub Desktop.
Save maxmichels/f58091edc8531b1fa9d43068d7c8167a to your computer and use it in GitHub Desktop.
Block xmlrpc.php
RewriteEngine On
RewriteCond %{HTTP_HOST}@@%{HTTP_REFERER} !^([^@]*)@@https?://\1/.*
RewriteRule .*\xmlrpc.php [NC,F]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment