How to block IPs in Apache Tomcat?
May 21, 2005 12:31 PM
Subscribe
Recently a wiki that I host has been defaced pretty badly by some Asian group. I'd like to block an ip address or a range of addresses from my web server. I'm running Jakarta Tomcat on a Windows XP Pro box but Google hasn't been able to tell me how to do this.
posted by furtive to computers & internet (7 comments total)
At the most basic level, something likeought to do it. That can also go in an existing Location or Directory block. Again, I'm not sure if there is something Tomcat-ish that will interfere with that, but I would be surprised if that's the case.
Replace "/wiki" with the URL path you're interested in blocking, or "/" for the whole shebang. Use a Directory block instead of a Location block if you want to indicate a path on the filesystem instead of in a URL. (You could also just have the Order/Deny directives outside of any Directory or Location block if you wanted them server-wide.
posted by mendel at 1:12 PM on May 21, 2005