How to block referral spam in Google Analytics

Sean Doyle

Sean Doyle is an engineer from Los Angeles, California. Sean’s primary focuses include Internet Security, Web Spam, and Online Marketing.

1 Response

  1. htaccess says:

    saw on another site how to block via htaccess but i am not familiar with this syntax so just posting for others to review/comment

    RewriteCond %{HTTP_REFERER} [NC,OR]
    RewriteCond %{HTTP_REFERER}
    RewriteRule .* – [F]

Leave a Reply

Your email address will not be published.