Forum Moderators: phranque

Message Too Old, No Replies

404'ing based on referer

         

roscoepico

11:36 pm on Jan 9, 2003 (gmt 0)

10+ Year Member



Has anyone had to do such a thing in the past? Looking for suggestions as to how to go about doing this. An example would be if a user finds my site via hotbot(referer contains hotbot), I would want to send them to a 404 page and if the referer contained google then i would send them to the regular page. Any help or suggestions would be greatly appreciated.

andreasfriedrich

11:51 pm on Jan 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could use mod_perl and write such an access handler or you could use PHP and send a 404 response header or any other server side scripting language. Another possibility is using mod_rewrite.

Andreas