Welcome to WebmasterWorld Guest from

Forum Moderators: DixonJones & mademetop

Message Too Old, No Replies

apache: filtering referrers?

1:14 pm on Mar 7, 2001 (gmt 0)

Junior Member

10+ Year Member

joined:Dec 19, 2000
votes: 0


What's a good regexp to start with to filter/redirect all
queries to a dir/file, UNLESS they have my domain in the referrrer?

Needs to be put into .htaccess, system, in question is running apache 1.2

I do not want to let through everything, and block domains foo and bar.


4:28 am on Mar 9, 2001 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Sept 21, 1999
votes: 0

Check here [brainstorm.co.uk] for a simple chart describing regular expressions. A guide to using redirection is here [engelschall.com] and Apache's docs are here [httpd.apache.org].