referrer spam is a realistic issue for many webmasters, website owners, and people who provide different types of website services. referral traffic can mess with your Google Analytics data and other analytical website metrics. The unwanted referral traffic can ruin your website’s bounce rate because the referred URL only visits a single webpage and leaves from a single webpage. It can also use up high amounts of bandwidth and cause confusion for new website owners who don’t know why they are getting a lot of referral traffic from

This guide will help you block referrer spam in Google Analytics and block referrer spam at the source using your website’s .htaccess file in order to stop receiving referral traffic.

What is is a website that engages in referrer spam indexing tactics aimed at website analytical data. referrer spam is designed to create repeated site requests to the website. The benefits that referral spammers have with this tactic is that it will help them advertise the website they want people to visit and it will also improve the spammers search engine ranking. In this case other URLs will redirect to this website. The downside is that referrals from can interfere with Google Analytics data and other metrics, as well as use a website’s bandwidth by creating repeat requests.

How to block referrer spam in Google Analytics

To block referrer spam in Google Analytics follow the instructions below. Blocking referrer spam in Google Analytics will only mask the spam URL. To block the referrer spam URL at the sources please see the instructions below to block referrer spam using your website’s .htaccess file.

1. Open your Google Analytics account and go to the Admin tab and click All Filters.

how to block referrer spam

2. Click the New Filter button to create a new filter.

block referrer spam

3. Add as the Filter Name.

4. Select the Custom Filter Type.

block referrer spam google analytics

5. In Filter Field, find and select Campaign Source in the list. In the Filter Pattern text box, add and click the Save button on the bottom of the webpage.

How to block referrer spam using your .htaccess file

To block referrer spam at the source using your .htacess file add the code below to your .htaccess file.

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

Reader Interactions

Leave a Reply

Your email address will not be published.