Blocking a subdir by ip address

Spider's that don't obey robots.txt should be taken out and shot. I'm gonna send a bill to a couple of these guys for my serving costs.

So can anyone tell me how to block a subdirectory by IP address? To make it more interesting the subdir is a servlet. I can't use .htaccess since it's not a real subdir only a logical subdir.

In other words I want to block access to "mydomain.com/servlets/ServletA/" to a given set of IP addresses. This is on a RaQ3 with Apache 1.3 and Tomcat running the servlets though the whole point is to stop em before the get to Tomcat.

 

 

 

 

Top