Welcome to WebmasterWorld Guest from 54.145.39.186

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Apache 1.3 mod_rewrite question

Returning 404 codes for a specific domain?

     

LukeyBoy

3:21 pm on Jul 24, 2003 (gmt 0)

10+ Year Member



Basically I have a domain-name pointing at my machine that's not my primary DNS name, and certain bots keep requesting it. I want to return a 404 when a browser/UA requests anything from domain X. Can anyone help me out? Thanks!

hakre

6:03 pm on Jul 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hi LukeyBoy,

just map your domain to a non existing directory. this should work.

or map it to an empty dir and disable directory indexing: options -index in .htaccess .

-hakre

 

Featured Threads

Hot Threads This Week

Hot Threads This Month