January 16th, 2013, 02:52 AM
Mod_rewrite ip restrinctions
We have a system utilizing Mod_Rewrite in .htaccess to generate SEO Friendly URLís.
My goal is to manage access to these URLís by source IP address. Unfortunately the website engine does not have the ability to restrict access by IP, so Iím exploring possibilities to do this using Apacheís built in features.
Here is an example of the restriction scheme Iím thinking:
There is a pre-defined list of URLís Everyone needs to have access to:
There is a very large number of URLís and only specific IP Addresses (several) need to have access to them.
Access to these URLís needs to be granted only to IP_Address1, IP_Address2, IP_Address3 and deny access for everyone else.
Please advice if such a thing is possible. If yes, then how can this be achieved.
Thanks in advice!
January 31st, 2013, 12:09 PM
Welcome to DevShed.
Please show/explain how mod_rewrite is being used in relation to the URLs you want to protect. How is /folder1/page1, /folder1/page2, folder2/page1, and so on being rewritten?
Explain your problem instead of asking how to do what you decided was the solution.