[thelist] regex: can't have enough fun, can we

Edward George ed at suppose.co.uk
Wed Mar 5 12:51:01 CST 2003

Off the top of my head, something like...

RewriteCond %{HTTP_REFERER} !^http://www.TheActualReferringSite.com/.*$

would do it.
! for - not equals
^ for matching the start so 'http://cgi.ebay.com@' won't match

this is a good document to help you:


-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org] On Behalf Of Erik Mattheis
Sent: 05 March 2003 18:44
To: thelist at lists.evolt.org
Subject: [thelist] regex: can't have enough fun, can we

For a mod rewrite, I would like to match all referrers that are not the
same as the host, except or all eBay sites.

So something like

RewriteCond Host: (.+)
RewriteCond referer: (?!.*\1.*).+

uh, and there I'm stuck without something to look at as a similar
example, which I can't find.

The thing is it can't be fooled by something like

Erik Mattheis
GoZz Digital
Flash and ColdFusion Development
Minneapolis, MN

* * Please support the community that supports you.  * *

For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !

More information about the thelist mailing list