change wp-admin folder

Solution:

  • The below code will prevent browser access to any file in these directories other than “a.b.c.d” which you should change to be your static IP address.

order deny,allow
allow from a.b.c.d # This is your static IP
deny from all
  • OR restrict the directory with a password:

AuthUserFile /etc/httpd/htpasswd
AuthType Basic
AuthName "restricted"
Order Deny,Allow
Deny from all
Require valid-user
Satisfy any