| Author |
Message |
Susann Moderator

Joined: Dec 19, 2004 Posts: 3132 Location: Germany:Moderator German NukeSentinel Support
|
Posted:
Wed Aug 20, 2008 10:39 am |
|
It looks like viagra isnīt popular enough anymore so they try to catch new buyers with cheap cigaretttes.
Normally cigarettes and cigarettes arenīt the same. There are great differances with the quality.
Thats not about cigarettes but you should know to buy this online is dangerous cause you need to pay online or with your credit card.
Anyway it looks like there are mass of bad referers with different kinds of cigarettes. I could add just "cigarettes" in my string blocker, or each sort"Marlboro" "Pall-Mall-cigarettes"etc. etc..
But I would prefer to add it into .htaccess.
How should the rules look like. |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16976 Location: Kansas
|
Posted:
Wed Aug 20, 2008 11:12 am |
|
Susan,
I'm not clear on exactly what you're after. Is the content you want to trap actually in the referrer url? |
|
|
|
 |
Susann Moderator

Joined: Dec 19, 2004 Posts: 3132 Location: Germany:Moderator German NukeSentinel Support
|
Posted:
Wed Aug 20, 2008 11:21 am |
|
I want to trap all referer urls with cigarettes in it and the name of the cigarette e.g. Marlboro like VinDSL did a time ago within .htacces I just couldnīt find his example anymore.
The bad referer looks like this:
|
|
|
|
 |
Susann Moderator

Joined: Dec 19, 2004 Posts: 3132 Location: Germany:Moderator German NukeSentinel Support
|
Posted:
Wed Aug 20, 2008 1:47 pm |
|
I found it and will block the referer based on the keyword within the url.
|
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16976 Location: Kansas
|
Posted:
Wed Aug 20, 2008 1:48 pm |
|
So many ways
# Trap any request with the word cigarettes anywhere in the url
SetEnvIfNoCase Referer ".*(cigarettes).*" BadReferer
order deny,allow
deny from env=BadReferer
# or to be a little more discriminating
# Trap any request with the word -cigarettes anywhere in the url
SetEnvIfNoCase Referer ".*(-cigarettes).*" BadReferer
order deny,allow
deny from env=BadReferer
# or to be even more discriminating
# Trap any request with specific kinds anywhere in the url
SetEnvIfNoCase Referer ".*(Marlboro-cigarettes|More-cigarettes|LM-cigarettes).*" BadReferer
order deny,allow
deny from env=BadReferer
# or to catch all of the above filter with less programming
# Trap any request with the word cigarettes preceded by any number of words containing (A-Z, a-z, 0-9, -) anywhere in the url
# This is like the second option but more restrictive
SetEnvIfNoCase Referer ".*([A-Za-z0-9-]*cigarettes).*" BadReferer
order deny,allow
deny from env=BadReferer
# or to try to outsmart misspellings
# Trap any request with the word cigar preceded by any number of words containing (A-Z, a-z, 0-9, -) and ending anywhere in the url
# This is like the second option but more restrictive
SetEnvIfNoCase Referer ".*([A-Za-z0-9-]*cigar).*" BadReferer
order deny,allow
deny from env=BadReferer
You could also use mod_rewrite to redirect them but the chances are they are not at a terminal so a redirect is really just a waste of time/bandwidth.
Hope this helps  |
|
|
|
 |
Susann Moderator

Joined: Dec 19, 2004 Posts: 3132 Location: Germany:Moderator German NukeSentinel Support
|
Posted:
Thu Aug 21, 2008 12:56 am |
|
Cool, thanks a lot !  |
|
|
|
 |
|
|
|
|