Hello, I am a "rookie" when it comes to apache. I have an issue where I want to block a certain url (ex. http://website.com?q=whatever) from being accessed unless only it is coming from a certain ip (want to make it two ip addresses that can only ever access this url). I have done a bit of research I believe a reverse proxy would work for this situation? The problem is I have no idea how change thew config files to do this. I also want to add a passwd file so that if this url is ever accessed by either of the allowed ip addresses that they are also asked for a username and password. If someone could explain how this is done this would be greatly appreciated. As well if you could recommend a good place to learn about Apache configuration that would be great too! Cheers
You have an example? vtrot: A reverse proxy is simply a type of proxy that retrieves resources on behalf of a client. I don't see how it applies to your situation. Also, password protection using htaccess/htpasswd is used to protect directories and htaccess <Files> can be used to allow or deny access to files based on IP. But I believe that http://website.com?q=whatever cannot be protected by either method. (I would love to see examples that contradict this if anyone has any...) You might look into coding IP blacklisting and password protecting into the code that evaluations "q=". As far as good places to learn about apache, there is always the source: http://httpd.apache.org/docs/ You can find other good resources on your favorite search engine.