IIS7.5 + Wordpress + Restrict Access to wp-login.php by client IP address

Posted by JuanValdez on Pro Webmasters See other posts from Pro Webmasters or by JuanValdez
Published on 2011-12-06T15:14:37Z Indexed on 2012/11/28 5:28 UTC
Read the original article Hit count: 792

Filed under:
|
|
|

I am moving from an Apache host to IIS. One of my sites in Wordpress (running Multi-site) which give me multiple blogs. I have moved all my rules from my .htaccess to the Microsoft URL ReWrite module. I have one section left that will not import.

I want to restrict access to all instances of the file wp-login.php by Client IP address.

In my .htaccess file I did the following:

<Files wp-login.php>
Order Deny,Allow
Deny from all
Allow from 192.168
</Files>

Any smart ideas on how to accompish this in IIS7.5?

© Pro Webmasters or respective owner

Related posts about htaccess

Related posts about Wordpress