neilgee
10/7/2014 - 11:59 PM

Limit Wordpress wp-login and wp-admin to Specific IP address

Limit Wordpress wp-login and wp-admin to Specific IP address

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$
RewriteCond %{REMOTE_ADDR} !^123\.123\.123\.12$
RewriteRule ^(.*)$ - [R=403,L]
</IfModule>