Allow from IP range

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 5
Joined: 11 Feb 2016, 14:43

Allow from IP range

11 Feb 2016, 14:53

I have isapi rewrite installed on Win 2012 with IIS 8.

It's working in some cases but I can't get it to work in this case. I'm trying to deny access to all files in a directory except for a given IP range.

I've tried both of the below and neither works. I can still access the default.html page from other IPs.

Code: Select all
# restrict access by IP
Order allow,deny
Deny from all
Allow from 10.0.0.0/10


Code: Select all
<Files "*">
  Order allow,deny
  Deny from all
  Allow from 10.0.0.0/10
</Files>


What am I doing wrong?
thanks!

User avatar
Posts: 5
Joined: 11 Feb 2016, 14:43

Re: Allow from IP range

11 Feb 2016, 15:29

I think I know what the problem is, the web server is behind a firewall which hides client IPs. If anyone sees anything wrong with the code anyway I'd like to make sure both should work otherwise.

User avatar
Posts: 402
Joined: 06 Mar 2012, 11:59

Re: Allow from IP range

15 Feb 2016, 07:14

Hello.

ISAPI_Rewrite is a rewriting tool only, these directives are not available. If you need support for other Apache directives, like authentication, IP limits, etc. you will need Helicon Ape product. Here is a complete compatibility list of Ape features vs Apache: https://www.helicontech.com/ape/doc/compatibility.htm

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 10 guests