stlaural Posted August 5, 2008 Share Posted August 5, 2008 Hi All, I'm running Apache 2 on a Windows server and I would like to know how I could block specific IP addresses. I've read about the .htaccess file but I'm still not sure if it can be used on Window. Thanks for helping. Alex Quote Link to comment https://forums.phpfreaks.com/topic/118299-solved-blocking-ips-with-apache-2-on-windows/ Share on other sites More sharing options...
elflacodepr Posted August 5, 2008 Share Posted August 5, 2008 ## USER IP BANNING <Limit GET POST> order allow,deny deny from 193.110.145.185 allow from all </Limit> change "193.110.145.185" with the IPs you want to block, remember you can add more rows to ban mroe IPs Quote Link to comment https://forums.phpfreaks.com/topic/118299-solved-blocking-ips-with-apache-2-on-windows/#findComment-608856 Share on other sites More sharing options...
stlaural Posted August 5, 2008 Author Share Posted August 5, 2008 Thanks, I tried that but it did not work at first :-\. I finally found out that Apache has been configured not to use the .htaccess files . Now that I am able to block specific IPs I would like to know How I could, instead of blocking them, just redirect them to an other page of my own ? thanks again for the information. Quote Link to comment https://forums.phpfreaks.com/topic/118299-solved-blocking-ips-with-apache-2-on-windows/#findComment-608898 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.