Link to home
Start Free TrialLog in
Avatar of mstrelan
mstrelanFlag for Australia

asked on

Apache allow access by IP range OR HTTP referrer

Hi experts,

I have a requirement to block all web traffic to a site EXCEPT from a certain IP range, plus from my static IP address. I also need to use an uptime monitoring service. The service I am using does not have static IPs and the only distinguishing factor is the referer url.

How can I create rules to satisfy these requirements on Apache (eg in .htaccess)
ASKER CERTIFIED SOLUTION
Avatar of mstrelan
mstrelan
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Brad Howe
Brad Howe
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Correct :), I was just writing up a response for you.
Have a good one.
Hades666