ban specific IP on Wamp Apache
Posted by: VAV616 (---.lightspeed.mssnks.sbcglobal.net)
Date: January 26, 2013 03:03AM

I'm running an html site from wamp with apache, what is the code and syntax for banning specific IPs from
my server?

Options: ReplyQuote
Re: ban specific IP on Wamp Apache
Posted by: boj (---.dsl.irvnca.sbcglobal.net)
Date: January 26, 2013 03:54AM

You could make a PHP script that does this. [pastie.org]

Also, you could modify .htaccess (or httpd.conf) and add this:
Order Deny,Allow
Deny from x.x.x.x
Deny from y.y.y.y
Deny from z.z.z.z

Options: ReplyQuote
Re: ban specific IP on Wamp Apache
Posted by: VAV616 (---.lightspeed.mssnks.sbcglobal.net)
Date: January 26, 2013 06:00AM

is that in the <Directory> </Directory> tags? or somewhere else?

Options: ReplyQuote
Re: ban specific IP on Wamp Apache
Posted by: RiggsFolly (---.as13285.net)
Date: January 27, 2013 04:07PM


Options: ReplyQuote


Sorry, only registered users may post in this forum.