kyle422
Apr 19th 2005, 8:50 pm
I was checking my logs today and noticed I'm getting a lot of traffic from a weird site
http://www. coresat. com/
Does anyone know how to block this referrer? I don't think I want traffic coming from this site. :rolleyes:
Smyrl
Apr 19th 2005, 9:32 pm
Do you have a .htaccess file? If so it can be blocked. Let me look for code.
Shannon
----------
If they are not on shared ip add line
deny from 123.456.789.012 or whatever their ip is.
If on shared id add
RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http://www\.)?badurl.com.*$[OR]
RewriteCond %{HTTP_REFERER} ^http://www\.)?secondbad.com.*$[NC,OR]
RewriteCond %{HTTP_REFERER} ^http://www\.)?thirdbad.com.*$[NC,OR]
RewriteCond %{HTTP_REFERER} ^http://www\.)?fourthbad.com.*$[NC]
RewriteRule .*$ -[F,L]
I am trying a multiprong approach. I want to ban particular URL's which have already spammed, ban URL's that have certain keywords like sex, Viagra, porn, ... and spammy urls like keyword1-keyword2-keyword3.com
I do not have my .htaccess perfected but have had luck with code given above. I believe most restrictive rewrite rules should be listed first.
S
kyle422
Apr 20th 2005, 7:02 am
Thanks Smryl, I'll try that! :)
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.