Skip to content

Instantly share code, notes, and snippets.

@HostOnNet
Created March 27, 2017 06:46
Show Gist options
  • Select an option

  • Save HostOnNet/ce7b22618b2b635b720f74eefe31d19b to your computer and use it in GitHub Desktop.

Select an option

Save HostOnNet/ce7b22618b2b635b720f74eefe31d19b to your computer and use it in GitHub Desktop.
In /.htacces
add
<Files xmlrpc.php>
order deny,allow
deny from all
allow from YOUR_IP_ADDR_HERE
</Files>
<Files wp-login.php>
order deny,allow
deny from all
allow from YOUR_IP_ADDR_HERE
</Files>
Create
/wp-admin/.htacess
add
order deny,allow
deny from all
allow from YOUR_IP_ADDR_HERE
Create
/wp-content/uploads/.htaccess
Add
<Files *.php>
deny from all
</Files>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment