Results 1 to 9 of 9
  1. #1
    Join Date
    Jul 2005
    Location
    Hertfordshire, UK
    Posts
    21

    Problems blocking IP addresses

    I'm being plagued by spam referrers

    I set up an .htaccess file
    Options All -Indexes Directory
    Index index.php index.htm index.html

    <Files .ftaccess> deny from all </Files>
    deny from 62.168.109.150
    deny from 63.243.181.*
    deny from 63.243.181.25
    deny from 64.34.66.18
    deny from 64.136.24.162

    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?fioricet-buy.travel.to(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?phentermine-buy.travel.to(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?viagra.pills.27south.com(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?21loan-carerty.blogspot(-|.).*$ [OR] RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?car-florida-insurance-rate(-|.).*$ [OR]
    RewriteRule .* - [F,L]

    deny from 62.168.109.150
    deny from 195.161.119.52
    deny from 212.176.41.3
    this didn't block any of the IP addresses so I was advised to use IP Tables

    so I logged into the server and used
    iptables -A INPUT -s IPaddress -j DROP
    for all the ip addresses

    still they keep hitting my site. My host installed afp firewall so I edsited the deny_hosts.files:
    ##
    # deny_hosts
    #
    # Trust based rule file to define addresses that are implicitly denied.
    #
    # Format of this file is line-seperated addresses, IP masking is supported.
    # Example:
    # 192.168.2.1
    # 192.168.5.0/24
    #
    # advanced usage
    #
    # The trust rules can be made in advanced format with 4 options
    # (proto:flow:port:ip);
    # 1) protocol: [packet protocol tcp/udp]
    # 2) flow in/out: [packet direction, inbound or outbound]
    # 3) s/d=port: [packet source or destination port]
    # 4) s/d=ip(/xx) [packet source or destination address, masking supported]
    #
    # Syntax:
    # proto:flow:[s/d]=port:[s/d]=ip(/mask)
    # s - source , d - destination , flow - packet flow in/out
    #
    # Examples:
    # inbound to destination port 22 from 192.168.2.1
    # tcp:in:d=22=192.168.2.1
    #
    # outbound to destination port 23 to destination host 192.168.2.1
    # out:d=23:d=192.168.2.1
    #
    # inbound to destination port 3306 from 192.168.5.0/24
    # d=3306=192.168.5.0/24
    #
    ##

    69.93.164.82
    66.98.242.237
    64.136.24.162
    80.77.88.3
    63.247.90.252
    212.163.58.71
    213.239.203.47
    69.57.130.140
    66.179.230.80
    69.31.86.233
    63.243.189.35
    66.230.182.227
    I restarted apf using "apf -r" after editing the file

    Still the IP addresses cause http referrers in my site.

    I don't know what I'm doing wrong or what to do next.

    Should any one of the above work on its own to block IP addresses or do they all work in combination

    why can't I ban any IP addresses - I know on my last hosted server account I just used to add them to the .htaccess file to ban them and that seemed to work.

    I'm running centOS with cPanel & WHM

    I'm a beginner at server hosting & all this Linux stuff so simple explanations really appreciated
    thanks

  2. #2
    Join Date
    Feb 2003
    Location
    CT
    Posts
    481
    Blocking referring ip addresses with a firewall will not stop them from referring hits to your server.

    Adding this to your .htaccess should block referals from "bad domains"

    Code:
    SetEnvIfNoCase Referer "^http://www.baddomain.com" BadReferrer
    
    Order Allow,Deny
    Allow from all
    deny from env=BadReferrer

  3. #3
    Join Date
    Jul 2005
    Location
    Hertfordshire, UK
    Posts
    21
    Thanks,

    so do I add a line:
    SetEnvIfNoCase Referer "^http://www.baddomain.com" BadReferrer
    for each bad domain? (replacing the domain with each one I want to block?

  4. #4
    Join Date
    Feb 2003
    Location
    CT
    Posts
    481
    Originally posted by Cathus
    Thanks,

    so do I add a line:
    SetEnvIfNoCase Referer "^http://www.baddomain.com" BadReferrer
    for each bad domain? (replacing the domain with each one I want to block?
    I'm not sure what the best way to handle multiple entries would be. One way that I know would work would be:

    Code:
     SetEnvIfNoCase Referer "^http://www.baddomain.com" BadReferrer
    SetEnvIfNoCase Referer "^http://www.baddomain1.com" BadReferrer1
    SetEnvIfNoCase Referer "^http://www.baddomain2.com" BadReferrer2
    
    Order Allow,Deny
    Allow from all
    deny from env=BadReferrer
    deny from env=BadReferrer1
    deny from env=BadReferrer2
    Of course that is rather clumsy. I do not know if you can make a sort of array or concatenation of domains into a single "BadReferrer" variable.

  5. #5
    Join Date
    Jul 2005
    Location
    Hertfordshire, UK
    Posts
    21
    since posting this query last night I have 60 bad domains getting over 1500 hits, that's less than 20 hours.

    I just want a simple way to block them from reaching my sites

  6. #6
    Join Date
    Jul 2005
    Location
    Hertfordshire, UK
    Posts
    21
    harryhood,

    I've utlised your suggestion in my .htaccess file and so far none of the domains that I have added have appeared in my referrer files. which is good.

    The trouble is I've been doing it for half an hour and added only the ones currently hitting which is 30 so far, there are hundreds of variations of these domain names, most from a handful of IP addresses.

    if I add
    deny from xx.xx.xx.xx in the same htaccess file, it doesn't work, what am I doing wrong?

    Current .htaccess file:
    [CODE
    Options All -Indexes
    DirectoryIndex index.php index.htm index.html

    # -------------------------------------------
    # Start of NukeSentinel(tm) admin.php Auth
    # -------------------------------------------
    <Files .ftaccess>
    deny from all
    </Files>

    <Files .staccess>
    deny from all
    </Files>

    <Files admin.php>
    <Limit GET POST PUT>
    require valid-user
    </Limit>
    AuthName "Restricted"
    AuthType Basic
    AuthUserFile /home/chief/public_html/.staccess
    </Files>


    # -------------------------------------------
    # Start of NukeSentinel(tm) DENY FROM area
    # -------------------------------------------

    SetEnvIfNoCase Referer "^http://buy-cheap-cialis-online.opi.linux-dude.com" BadReferrer
    SetEnvIfNoCase Referer "^http://buy-effexor-online-cheap.ar.tc" BadReferrer1
    SetEnvIfNoCase Referer "^http://buy-xenical-.sie.pl" BadReferrer2
    SetEnvIfNoCase Referer "^http://buy-carisoprodol-.sie.pl" BadReferrer3
    SetEnvIfNoCase Referer "^http://online-viagra-.sie.pl" BadReferrer4
    SetEnvIfNoCase Referer "^http://buy-levitra-.sie.pl" BadReferrer5
    SetEnvIfNoCase Referer "^http://buy-viagra-.sie.pl" BadReferrer6
    SetEnvIfNoCase Referer "^http://buy-propecia.sie.pl" BadReferrer7
    SetEnvIfNoCase Referer "^http://buy-cialis.omet.pl" BadReferrer9
    SetEnvIfNoCase Referer "^http://buy-cialis.one.pl" BadReferrer8
    SetEnvIfNoCase Referer "^http://buy--tramadol.sie.pl" BadReferrer10
    SetEnvIfNoCase Referer "^http://motorola.homes.com.au" BadReferrer11
    SetEnvIfNoCase Referer "^http://buy-cheap-cialis-online.xer.dns2go.com" BadReferrer12
    SetEnvIfNoCase Referer "^http://cheap-viagra-.sie.pl" BadReferrer13
    SetEnvIfNoCase Referer "^http://buy-cheap-levitra-online.esp.cc" BadReferrer14
    SetEnvIfNoCase Referer "^http://www.smogless.com" BadReferrer15
    SetEnvIfNoCase Referer "^http://www.crissymoran.com" BadReferrer16
    SetEnvIfNoCase Referer "^http://buy-cialis.mysite.pl" BadReferrer17
    SetEnvIfNoCase Referer "^http://cialis-x.sie.pl" BadReferrer18
    SetEnvIfNoCase Referer "^http://buy-cialis.e-zum.com" BadReferrer19
    SetEnvIfNoCase Referer "^http://order-viagra-.sie.pl" BadReferrer20
    SetEnvIfNoCase Referer "^http://buy-viagra-d.mx.gs" BadReferrer21
    SetEnvIfNoCase Referer "^http://tramadol-online-.sie.pl" BadReferrer22
    SetEnvIfNoCase Referer "^http://buy-cialis.czytelnia.net" BadReferrer23
    SetEnvIfNoCase Referer "^http://generic-viagra-.sie.pl" BadReferrer24
    SetEnvIfNoCase Referer "^http://generic-viagra-.sie.pl" BadReferrer25
    SetEnvIfNoCase Referer "^http://buy-tramadol.be.tc" BadReferrer26
    SetEnvIfNoCase Referer "^http://generic-cialis.sie.pl" BadReferrer27
    SetEnvIfNoCase Referer "^http://buy-cheap-carisoprodol-online.00band.com" BadReferrer28
    SetEnvIfNoCase Referer "^http://order-cialis.vel.pl" BadReferrer29

    Order Allow,Deny
    Allow from all
    deny from env=BadReferrer
    deny from env=BadReferrer1
    deny from env=BadReferrer2
    deny from env=BadReferrer3
    deny from env=BadReferrer4
    deny from env=BadReferrer5
    deny from env=BadReferrer6
    deny from env=BadReferrer7
    deny from env=BadReferrer8
    deny from env=BadReferrer9
    deny from env=BadReferrer10
    deny from env=BadReferrer11
    deny from env=BadReferrer12
    deny from env=BadReferrer13
    deny from env=BadReferrer14
    deny from env=BadReferrer15
    deny from env=BadReferrer16
    deny from env=BadReferrer17
    deny from env=BadReferrer18
    deny from env=BadReferrer19
    deny from env=BadReferrer20
    deny from env=BadReferrer21
    deny from env=BadReferrer22
    deny from env=BadReferrer23
    deny from env=BadReferrer24
    deny from env=BadReferrer25
    deny from env=BadReferrer26
    deny from env=BadReferrer27
    deny from env=BadReferrer28

    deny from 62.168.109.150
    deny from 63.243.181.*
    deny from 63.243.181.25
    deny from 64.34.66.18
    deny from 64.136.24.162
    deny from 63.243.181.20
    deny from 63.243.189.36
    deny from 63.247.90.252
    deny from 66.36.228.197
    deny from 66.102.15.101
    deny from 66.179.230.80
    deny from 69.31.86.233
    deny from 69.31.129.251
    deny from 80.77.88.3
    deny from 84.174.72.102
    deny from 192.33.4.12
    deny from 195.128.127.217
    deny from 195.161.119.52
    deny from 195.209.34.113
    deny from 205.234.145.222
    deny from 207.44.176.60
    deny from 207.44.176.169
    deny from 209.63.57.*
    deny from 209.63.57.10
    deny from 209.161.29.130
    deny from 211.239.151.191
    deny from 212.15.85.45
    deny from 212.112.255.69
    deny from 212.176.41.3
    deny from 216.55.191.211
    deny from 217.107.217.28
    deny from 217.185.183.70
    deny from 218.146.252.3
    deny from 222.108.75.70
    deny from 67.15.38.11
    deny from 80.77.88.3


    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?hydrocodone-order.bestall.ru(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?hydrocodone-order.bestall.(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?bestall.(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?buy-viagra-.sie(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?buy-xenical-.sie(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?motorola.homes.com(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?sie(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?buy-cheap-carisoprodol-online.00band(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?buy-tramadol.be(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?glamourmodelsgonebad(-|.).*$ [OR]

    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?buy-viagra-.sie.pl(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?fioricet-buy.travel.to(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?phentermine-buy.travel.to(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?viagra.pills.27south.com(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?21loan-carerty.blogspot(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?car-florida-insurance-rate(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?cialis(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?phentermine(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?bestall(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?netfirms(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?cellulite(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?hydrocodone(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?fiberia(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?chat.ru(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?homework.more(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?adult(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?anal(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?blow.?job(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?gay(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?cum+shot(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?casino(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?incest(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?mature(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?nude(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?piss(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?porn(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?pus*y(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?sex(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?teen(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?tits(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?titten(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?wichsab(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*(-|.)?wichslos(-|.).*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*accepted.cc$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?.*episodesusdbz/.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?advancedmoneyloans.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?affiliplanet.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?apart-?design.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?auktion.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?autogewinne24.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?autospiele24.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?babay.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?euromillionen.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?eurowins.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?geldspiele24.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?goovle.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?gsm-support.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?gzltax.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?heil-fasten.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?immobiliengewinne24.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?internetsupervision.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?keywordmaster.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?nackt-stars-nackt.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?one2onemag.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?qw8.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?referrer-script.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?ranking-hits.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?reisegewinne24.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?rootfood.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?shemale.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?single66.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?slamhost.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?spielepsychatrie.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?superface.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?texasholdem.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?topgewinn24.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?topspiele24.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?transexual.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?usa-wins.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?vendini.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?webmasterplan.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?wichsfick.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?wseeker.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?yachtdurak.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?xmaster.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://www14\.blogspot.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^http://(www\.)?yahh+oo.*$
    RewriteRule .* - [F,L]



    deny from 62.168.109.150
    deny from 195.161.119.52
    deny from 212.176.41.3
    deny from 195.209.34.113
    deny from 66.179.230.80
    deny from 207.44.176.169
    deny from 212.15.85.45
    deny from 62.233.43.71
    deny from 212.112.255.69
    deny from 216.55.191.211

    [/CODE]

  7. #7
    Join Date
    Feb 2003
    Location
    CT
    Posts
    481
    I do not how to get that work for an ip but you can make your like a little easier by replacing:

    Code:
    # -------------------------------------------
    # Start of NukeSentinel(tm) DENY FROM area
    # -------------------------------------------
    
    SetEnvIfNoCase Referer "^http://buy-cheap-cialis-online.opi.linux-dude.com" BadReferrer
    SetEnvIfNoCase Referer "^http://buy-effexor-online-cheap.ar.tc" BadReferrer1
    SetEnvIfNoCase Referer "^http://buy-xenical-.sie.pl" BadReferrer2
    SetEnvIfNoCase Referer "^http://buy-carisoprodol-.sie.pl" BadReferrer3
    SetEnvIfNoCase Referer "^http://online-viagra-.sie.pl" BadReferrer4
    SetEnvIfNoCase Referer "^http://buy-levitra-.sie.pl" BadReferrer5
    SetEnvIfNoCase Referer "^http://buy-viagra-.sie.pl" BadReferrer6
    SetEnvIfNoCase Referer "^http://buy-propecia.sie.pl" BadReferrer7
    SetEnvIfNoCase Referer "^http://buy-cialis.omet.pl" BadReferrer9
    SetEnvIfNoCase Referer "^http://buy-cialis.one.pl" BadReferrer8
    SetEnvIfNoCase Referer "^http://buy--tramadol.sie.pl" BadReferrer10
    SetEnvIfNoCase Referer "^http://motorola.homes.com.au" BadReferrer11
    SetEnvIfNoCase Referer "^http://buy-cheap-cialis-online.xer.dns2go.com" BadReferrer12
    SetEnvIfNoCase Referer "^http://cheap-viagra-.sie.pl" BadReferrer13
    SetEnvIfNoCase Referer "^http://buy-cheap-levitra-online.esp.cc" BadReferrer14
    SetEnvIfNoCase Referer "^http://www.smogless.com" BadReferrer15
    SetEnvIfNoCase Referer "^http://www.crissymoran.com" BadReferrer16
    SetEnvIfNoCase Referer "^http://buy-cialis.mysite.pl" BadReferrer17
    SetEnvIfNoCase Referer "^http://cialis-x.sie.pl" BadReferrer18
    SetEnvIfNoCase Referer "^http://buy-cialis.e-zum.com" BadReferrer19
    SetEnvIfNoCase Referer "^http://order-viagra-.sie.pl" BadReferrer20
    SetEnvIfNoCase Referer "^http://buy-viagra-d.mx.gs" BadReferrer21
    SetEnvIfNoCase Referer "^http://tramadol-online-.sie.pl" BadReferrer22
    SetEnvIfNoCase Referer "^http://buy-cialis.czytelnia.net" BadReferrer23
    SetEnvIfNoCase Referer "^http://generic-viagra-.sie.pl" BadReferrer24
    SetEnvIfNoCase Referer "^http://generic-viagra-.sie.pl" BadReferrer25
    SetEnvIfNoCase Referer "^http://buy-tramadol.be.tc" BadReferrer26
    SetEnvIfNoCase Referer "^http://generic-cialis.sie.pl" BadReferrer27
    SetEnvIfNoCase Referer "^http://buy-cheap-carisoprodol-online.00band.com" BadReferrer28
    SetEnvIfNoCase Referer "^http://order-cialis.vel.pl" BadReferrer29
    
    Order Allow,Deny
    Allow from all
    deny from env=BadReferrer
    deny from env=BadReferrer1
    deny from env=BadReferrer2
    deny from env=BadReferrer3
    deny from env=BadReferrer4
    deny from env=BadReferrer5
    deny from env=BadReferrer6
    deny from env=BadReferrer7
    deny from env=BadReferrer8
    deny from env=BadReferrer9
    deny from env=BadReferrer10
    deny from env=BadReferrer11
    deny from env=BadReferrer12
    deny from env=BadReferrer13
    deny from env=BadReferrer14
    deny from env=BadReferrer15
    deny from env=BadReferrer16
    deny from env=BadReferrer17
    deny from env=BadReferrer18
    deny from env=BadReferrer19
    deny from env=BadReferrer20
    deny from env=BadReferrer21
    deny from env=BadReferrer22
    deny from env=BadReferrer23
    deny from env=BadReferrer24
    deny from env=BadReferrer25
    deny from env=BadReferrer26
    deny from env=BadReferrer27
    deny from env=BadReferrer28
    with this:

    Code:
    # -------------------------------------------
    # Start of NukeSentinel(tm) DENY FROM area
    # -------------------------------------------
    
    SetEnvIfNoCase Referer "^http://buy-cheap-cialis-online.opi.linux-dude.com" BadReferrer
    SetEnvIfNoCase Referer "^http://buy-effexor-online-cheap.ar.tc" BadReferrer
    SetEnvIfNoCase Referer "^http://buy-xenical-.sie.pl" BadReferrer
    SetEnvIfNoCase Referer "^http://buy-carisoprodol-.sie.pl" BadReferrer
    SetEnvIfNoCase Referer "^http://online-viagra-.sie.pl" BadReferrer
    SetEnvIfNoCase Referer "^http://buy-levitra-.sie.pl" BadReferrer
    SetEnvIfNoCase Referer "^http://buy-viagra-.sie.pl" BadReferrer
    SetEnvIfNoCase Referer "^http://buy-propecia.sie.pl" BadReferrer
    SetEnvIfNoCase Referer "^http://buy-cialis.omet.pl" BadReferrer
    SetEnvIfNoCase Referer "^http://buy-cialis.one.pl" BadReferrer
    SetEnvIfNoCase Referer "^http://buy--tramadol.sie.pl" BadReferrer
    SetEnvIfNoCase Referer "^http://motorola.homes.com.au" BadReferrer
    SetEnvIfNoCase Referer "^http://buy-cheap-cialis-online.xer.dns2go.com" BadReferrer
    SetEnvIfNoCase Referer "^http://cheap-viagra-.sie.pl" BadReferrer
    SetEnvIfNoCase Referer "^http://buy-cheap-levitra-online.esp.cc" BadReferrer
    SetEnvIfNoCase Referer "^http://www.smogless.com" BadReferrer
    SetEnvIfNoCase Referer "^http://www.crissymoran.com" BadReferrer
    SetEnvIfNoCase Referer "^http://buy-cialis.mysite.pl" BadReferrer
    SetEnvIfNoCase Referer "^http://cialis-x.sie.pl" BadReferrer
    SetEnvIfNoCase Referer "^http://buy-cialis.e-zum.com" BadReferrer
    SetEnvIfNoCase Referer "^http://order-viagra-.sie.pl" BadReferrer
    SetEnvIfNoCase Referer "^http://buy-viagra-d.mx.gs" BadReferrer
    SetEnvIfNoCase Referer "^http://tramadol-online-.sie.pl" BadReferrer
    SetEnvIfNoCase Referer "^http://buy-cialis.czytelnia.net" BadReferrer
    SetEnvIfNoCase Referer "^http://generic-viagra-.sie.pl" BadReferrer
    SetEnvIfNoCase Referer "^http://generic-viagra-.sie.pl" BadReferrer
    SetEnvIfNoCase Referer "^http://buy-tramadol.be.tc" BadReferrer
    SetEnvIfNoCase Referer "^http://generic-cialis.sie.pl" BadReferrer
    SetEnvIfNoCase Referer "^http://buy-cheap-carisoprodol-online.00band.com" BadReferrer
    SetEnvIfNoCase Referer "^http://order-cialis.vel.pl" BadReferrer
    
    Order Allow,Deny
    Allow from all
    deny from env=BadReferrer
    You beleive could also replace:

    Code:
     SetEnvIfNoCase Referer "^http://buy-levitra-.sie.pl" BadReferrer
    SetEnvIfNoCase Referer "^http://buy-viagra-.sie.pl" BadReferrer
    SetEnvIfNoCase Referer "^http://buy-propecia.sie.pl" BadReferrer
    SetEnvIfNoCase Referer "^http://buy-cialis.omet.pl" BadReferrer
    SetEnvIfNoCase Referer "^http://buy-cialis.one.pl" BadReferrer
    SetEnvIfNoCase Referer "^http://buy--tramadol.sie.pl" BadReferrer
    with

    Code:
    SetEnvIfNoCase Referer "^http://buy-*" BadReferrer

  8. #8
    Join Date
    Jul 2005
    Location
    Hertfordshire, UK
    Posts
    21
    harry,

    you're a star!

    that last tip has worked a treat... have changed them all to buy-*, online-*, cheap-* etc and haven't had one logged since.

    many thanks !!

  9. #9
    Join Date
    Feb 2003
    Location
    CT
    Posts
    481
    Originally posted by Cathus
    harry,

    you're a star!

    that last tip has worked a treat... have changed them all to buy-*, online-*, cheap-* etc and haven't had one logged since.

    many thanks !!
    Great, glad you got the problem resolved.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •