Welcome to WebmasterWorld Guest from 220.127.116.11 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
Apache 1.3 mod_rewrite question Returning 404 codes for a specific domain? LukeyBoy
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!
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 .