Menu

How to block Referral Spam

Rules
Reece NA
2016-01-28
2016-02-01
  • Reece NA

    Reece NA - 2016-01-28

    Hi.

    I currently I use the following statements in .htaccess files to block spammy referals from certain websites.

    RewriteEngine on
    # Options +FollowSymlinks
    RewriteCond %{HTTP_REFERER} spammywebsite1\.com [NC,OR]
    RewriteCond %{HTTP_REFERER} spammywebsite2\.com [NC,OR]
    RewriteCond %{HTTP_REFERER} spammywebsite3\.com [NC]
    RewriteRule .* - [F]
    

    Could someone please tell me what the exact equivelent of the above would be as a Security Rule?

    It would be much appreciated.

    Thank you!

     

    Last edit: Reece NA 2016-01-29

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.