I have an Apache 2 running on a Linux box. Currently there at only 2 webpages in different paths:
/website1/site
/website2/site
I set apache to not server directory listings and I set the error documents to show a blank page when hitting something that doesn't exit.
I was wondering, is there any way force Apache to always return 404 or other error every time something other than those two websites are hit?
We are experiencing a lot of probes from proxy list sites and other places and all I want to do is just send an error every time they try /
or any other path, without serving anything, not error pages, blank pages, etc.
helps is appreciated.
You could add a few mod_rewrite directives to throw them for a loop:
(where
1\.2\.3\.4
is a regexp matching your server's IP address(es) ...)