Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'how about redirecting them ...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
how about redirecting them ...
Authored by: Toby Thain on Sep 27, '01 09:57:37AM
Good idea, but it can be accomplished more simply with the Redirect directive (see the Apache 1.3 documentation):
Redirect gone /default.ida
RedirectMatch gone .*c;.exe$
# or
Redirect permanent /default.ida http://www.microsoft.com/
RedirectMatch permanent .*c;.exe$ http://www.microsoft.com/
# as you prefer
I've decided on a different approach with my web server, which has many VirtualHost sites - set up a dummy VirtualHost as the default (first) server which will be a catch-all for requests to the server's numeric IP, and block all accesses to it. (All other VirtualHosts continue to serve requests normally.)

[ Reply to This | # ]