The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Referral Spam - Will this work to stop it?

Discussion in 'E-mail Discussions' started by lenashore, Jul 10, 2015.

  1. lenashore

    lenashore Member

    Joined:
    Feb 11, 2011
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    I have been reading up on referral spam and how to eliminate it or at least slow it down.

    Looks like one of the best ways is to keep an htaccess file with a list of "bad guys" and keep it updated. But, the problem is I have a lot of websites and don't relish the idea of doing this on all of them individually.

    I read a suggestion that claims you can add an htaccess file in the folder above your sites and it will get read. Is this true? Each of my websites has it's own cPanel. So, this would be in the home folder.

    So, the htaccess file would be something like this:

    Code:
    # Stop Referral Spam
    
    SetEnvIfNoCase Referer semalt.com spambot=yes
    SetEnvIfNoCase Referer humanorightswatch.org spambot=yes
    SetEnvIfNoCase Referer o-o-6-o-o.com spambot=yes
    SetEnvIfNoCase Referer onlineprofitscode.com spambot=yes
    SetEnvIfNoCase Referer blackhatworth.com spambot=yes
    SetEnvIfNoCase Referer bestwebsitesawards.com spambot=yes
    SetEnvIfNoCase Referer priceg.com spambot=yes
    SetEnvIfNoCase Referer годом.рф spambot=yes
    SetEnvIfNoCase Referer econom.co spambot=yes
    SetEnvIfNoCase Referer darodar.com spambot=yes
    SetEnvIfNoCase Referer iloveitaly.ru spambot=yes
    SetEnvIfNoCase Referer shopping.iloveitaly.ru spambot=yes
    SetEnvIfNoCase Referer iloveitaly.co spambot=yes
    SetEnvIfNoCase Referer shopping.iloveitaly.co spambot=yes
    SetEnvIfNoCase Referer buttons-for-website.com spambot=yes
    SetEnvIfNoCase Referer iloveitaly.com spambot=yes
    SetEnvIfNoCase Referer shopping.iloveitaly.com spambot=yes
    Order allow,deny
    Allow from all
    Deny from env=spambot
    
    
    Any thoughts or new ideas would be appreciated.

    Thanks,
    Lena

    :)
     
    #1 lenashore, Jul 10, 2015
    Last edited by a moderator: Jul 10, 2015
  2. sarhosting

    sarhosting Well-Known Member

    Joined:
    Oct 1, 2007
    Messages:
    164
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    Twitter:
    The method we have been using for a few years is below.
    Code:
    # [ CP Global Ban - Open ]
    RewriteEngine on
    Options +FollowSymlinks
    RewriteCond %{HTTP_REFERER} 100dollars-seo\.com [NC,OR]
    RewriteCond %{HTTP_REFERER} semalt\.com [NC,OR]
    RewriteCond %{HTTP_REFERER} savetubevideo\.com
    RewriteRule .* - [F]
    # [ CP Global Ban - Close ]
    Keep in mind, a bloated .htaccess file will slow down the performance of the site(s) so use with care. The best thing do (in our opinion) is to ignore the visits and make sure your stats are not public because if the stats can be accessed by anyone (including Search Engines), you will be creating FREE backlinks back to the spammer. Since your stats changes daily and the data gets overridden, this is the reason they keep hitting you every few days as not to be pushed out of your logs..
     
  3. lenashore

    lenashore Member

    Joined:
    Feb 11, 2011
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Thanks Sarhosting!

    Do you know off-hand on how to make your stats non-public? Do you know if you can put an htaccess file above the root folder? I really need something server-wide.
     
  4. sarhosting

    sarhosting Well-Known Member

    Joined:
    Oct 1, 2007
    Messages:
    164
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    Twitter:
    It should NOT be accessible outside of cPanel by default.
    You can verify by adding /stats/ after your domain name.
    It will either load, ask for credentials, or give a 404 error.

    If you query the following in Google, you will see affected sites.
    Code:
    "semalt.com" "/stats/ref"
    Fortunately, most of the results are text so a backlink is nonexistent.
     
    lenashore likes this.
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Yes, as mentioned, statistics are not available to the public by default.

    Thank you.
     
  6. sarhosting

    sarhosting Well-Known Member

    Joined:
    Oct 1, 2007
    Messages:
    164
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    Twitter:
    A domain moved up to a PR2 rank and got slammed by video--production.com.
    If you are still blocking, you can try adding that before they get to you.
     
Loading...

Share This Page