Blocking a specific URL by IP (a URL create by mod-rewrite)
Posted
by
Alex
on Server Fault
See other posts from Server Fault
or by Alex
Published on 2011-02-08T22:36:30Z
Indexed on
2011/02/08
23:27 UTC
Read the original article
Hit count: 345
We need to block a specific URL for anyone not on a local IP (anyone without a 192.168.. address)
We however cannot use apache's
<Directory /var/www/foo/bar>
Order allow,deny
Allow from 192.168
</Directory>
<Files /var/www/foo/bar>
Order allow,deny
Allow from 192.168
<Files>
Because these would block specific files or directories, we need to block a specific URL which is created by mod-rewrite and the page is dynamically created using PHP.
Any ideas would be greatly appreciated
© Server Fault or respective owner