PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Susann
Moderator


Joined: Dec 19, 2004
Posts: 3132
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Wed Aug 20, 2008 10:39 am Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16976
Location: Kansas

PostPosted: Wed Aug 20, 2008 11:12 am Reply with quote Back to top

Susan,

I'm not clear on exactly what you're after. Is the content you want to trap actually in the referrer url?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Susann
Moderator


Joined: Dec 19, 2004
Posts: 3132
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Wed Aug 20, 2008 11:21 am Reply with quote Back to top

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:
Only registered users can see links on this board!
Get registered or login to the forums!
Only registered users can see links on this board!
Get registered or login to the forums!
Only registered users can see links on this board!
Get registered or login to the forums!
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website
Susann
Moderator


Joined: Dec 19, 2004
Posts: 3132
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Wed Aug 20, 2008 1:47 pm Reply with quote Back to top

I found it and will block the referer based on the keyword within the url.
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16976
Location: Kansas

PostPosted: Wed Aug 20, 2008 1:48 pm Reply with quote Back to top

So many ways Laughing

# 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 Wink
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Susann
Moderator


Joined: Dec 19, 2004
Posts: 3132
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Thu Aug 21, 2008 12:56 am Reply with quote Back to top

Cool, thanks a lot ! Wink
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest Đ 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is Đ copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum