When analyzing your website’s traffic logs, it’s crucial to sift through the influx of data and discern genuine traffic from the noise created by various sources, including referrer spam. Referrer spam, often disguised as legitimate website referrals, can distort your analytics by artificially inflating visitor counts. While some visitors may access your website by directly typing the domain into their browser’s address bar, others will undoubtedly arrive via links, making it essential to differentiate between authentic referrals and deceptive spam tactics.
- What Is Referrer Spam?
- Why is Referral Spam Harmful to Websites and Their Search Engine Rankings?
- How Referrer Spam Is Performed
- What’s the Purpose of Referrer Spam?
- How Referrer Spam Can Affect Your Website
- How to Protect Your Website from Referrer Spam
- Can I Clean Up Historical Google Analytics Data?
- How to Remove Fake Language Spam in Google Analytics
- Can I Visit the Spam Sites Found in Google Analytics?
- How to Block Referral Spam in Google Analytics with Third-Party Tools
- How to Eliminate Crawler Spam in Google Analytics
- How to Remove Fake Language Spam in Google Analytics
- What Are The Benefits Of Blocking bot Traffic In from Google Analytics?
- How to Remove Ghost Spam from Google Analytics
- Final Thoughts
Using an analytics platform like Google Analytics, you can see which URLs are driving the most traffic to your website.
With that said, you can’t always trust a referrer URL just because it’s listed in your website’s Google Analytics account.
In recent years, more and more black-hat marketers have resorted to a tactic known as referrer spam as a way to promote their websites and affiliate products or services.
In this article, we’ll explore what referrer spam is, where it comes from, how it can affect your website, and how you can protect yourself from this annoying marketing tactic.
What Is Referrer Spam?
Also known as referrer bombing, referrer spam is a black-hat marketing tactic that involves flooding a website’s traffic logs with one or more fake referrer URLs, with the goal of getting the webmaster to click the URLs in their analytics dashboardIn WordPress, the Dashboard is a central hub for managing a website's content and settings. It is the first sc... More.
Google Analytics tracks referrer URLs, allowing you to see which URLs drive the most traffic to your website. With referrer spam, some or all of the listed referrer URLs have been spoofed, meaning they didn’t really drive traffic to your website.
If your website is targeted with referral spam, you’ll discover spoofed referrer URLs in its traffic logs.
The referrer URLs might be functional and otherwise legitimate-looking web pagesIn WordPress, a page is a content type that is used to create non-dynamic pages on a website. Pages are typica... More, but they didn’t drive any real traffic to your website.
Why is Referral Spam Harmful to Websites and Their Search Engine Rankings?
Referral spam can seriously damage your website and its search engine rankings for several key reasons:
Referrer Spam Misleading Traffic Data
Referral spam inflates your site visits artificially, skewing your analytics data. This makes it tough for website owners to get an accurate picture of their traffic and user engagement. Accurate data is essential for making informed marketing and content decisions.
Referrer Spam Lowered Site Credibility
Links to low-quality websites can damage your site’s credibility. Search engines like Google value the integrity and relevance of the links on your site. If your site is associated with low-quality content, it reflects poorly on your site’s overall quality.
Negative Impact on Search Engine Rankings
Search engines strive to provide users with the most relevant and valuable results. If your site is linked to spam, it might be seen as less trustworthy or relevant, leading to a drop in search engine rankings. This can decrease your visibility and reduce organic traffic.
Referrer Spam: Resource Drain
Dealing with unwanted spam traffic can consume server resources, resulting in slower load times and a poor user experience for legitimate visitors. This degradation in user experience can further harm your site’s ranking.
Referral spam not only distorts your analytical data but also jeopardizes your website’s reputation and search engine positioning. It’s crucial for webmasters to implement measures to filter out and counteract referral spam to protect their online presence.
How Referrer Spam Is Performed
Black-hat marketers perform referrer spam by making repeated requests to a website using forged HTTP headers.
When an Internet user navigates from one website to another website, his or her web browser will create and send an HTTP header to the new website. The HTTP header contains the original website listed as the referrer URL.
During a referrer spam attack, a black-hat marketer will visit your website hundreds or even thousands of times—typically using software or scripts—with forged HTTP headers. Each of these visits sends your website a forged HTTP header containing the marketer’s website as the referrer URL:
Referer: http://spamsite.com
The marketer essentially replaces the referrer URL in an HTTP header with his or her website. When Google Analytics reads the forged HTTP header, it will track the marketer’s website as the referrer URL.
What’s the Purpose of Referrer Spam?
Many black-hat marketers use referrer spam to promote their websites.
Most webmasters, especially those familiar with search engine optimization (SEO), will likely analyze their website’s traffic logs regularly. If a listed referrer URL has driven substantially more traffic than all other referrer URLs, the webmaster may visit it to see how his or her website is being presented.
In addition to driving traffic to a marketer’s website, referrer spam can be used to promote affiliate products or services via cookie stuffing.
A black-hat marketer, for instance, may spoof an HTTP header to include his or her affiliate link as the referrer URL. When a webmaster unknowingly visits the affiliate link, it places a cookie in his or her web browser. With the cookie present, the marketer will earn a commission if the webmaster goes on to make a purchase.
Some black-hat marketers use referrer spam to build backlinks.
If a website publishes its traffic logs, it may automatically link to referrer URLs. A marketer can exploit this flaw by repeatedly visiting the website with spoofed HTTP headers. The website will discover the marketer’s website listed as the referrer URL, resulting in the creation of a link.
How Referrer Spam Can Affect Your Website
You might be wondering how referrer spam can affect your website.
Well, depending on the extent of the attack, referrer spam may slow down your website.
Each time a visitor accesses your website, it consumes some of your server’s resources. With referrer spam attacks involving potentially thousands of repeated visits, your server may exhaust its resources to the point where it no longer loads quickly for legitimate visitors.
Even if it doesn’t slow down your website, referrer spam can make it difficult to optimize your website.
If you don’t know which referrer URLs really drove traffic to your website and which ones didn’t, you may struggle to find new backlink opportunities.
Referrer URLs provide insight into how other websites link to your website. If they are spoofed, though, they won’t prove useful when building backlinks or performing other forms of off-page optimization.
How to Protect Your Website from Referrer Spam
Assuming you use Google Analytics, you can filter referrer spam from your website’s traffic logs.
From your main account dashboard, click “Admin” in the sidebar (gear icon), then click “All Filters” in the first column:
From here, click the “Add Filter” button.
Set the type to “Custom,” choose the “Exclude” option, and select “Referral” from the drop-down menuIn WordPress, a menu is a collection of links that are displayed as a navigation menu on a website. Menus are ... More.
You can then specify the referrer spam domains that frequently appear at the top of your website’s traffic logs.
You can create a new filter for each spam domain, or you can add multiple spam domains to your filter pattern by separating them with |
.
Once updated, Google Analytics will automatically filter referrer URLs from the specified domains.
Unfortunately, filtering doesn’t actually prevent referrer spam; it only conceals it. Your server will still be bombarded by an excessive number of visits from the black-hat marketer who’s behind the attack.
If your website runs WordPress, you can install a pluginA plugin is a software component that adds specific features and functionality to your WordPress website. Esse... More to protect it from referral spam.
Stop Referrer Spam is a free plugin that automatically blocks requests from URLs associated with referral spam. It cross-references requests with a databaseA database is an organized collection of data stored and accessed electronically. It is a crucial component of... More of over 1,100 referrer spam URLs. If a request contains a listed referrer spam URL, the plugin blocks it.
You can also block referral spam by modifying your website’s .htaccess
file. Just add the URLs or domains of the spam referrers to the .htaccess
file using “RewriteCond” statements, such as the following:
RewriteCond %HTTP_REFERER example.com [NC,OR]
RewriteCond %HTTP_REFERER example.com/subpage [NC,OR]
RewriteRule .* - [F]
Any requests from the URLs or domains listed in the .htaccess
file will be blocked, thereby protecting your website from referrer spam.
Can I Clean Up Historical Google Analytics Data?
Once spam has infiltrated your Google Analytics data, it can’t be removed retroactively with typical filtering methods. When you set up spam filters in Google Analytics, they only work from that point forward. This means any spam that has already affected your past data will remain.
Understanding the Impact of Spam on Historical Data
While this might seem discouraging, there are some benefits. By implementing spam filters now, you can create a clear before-and-after scenario. This allows you to compare periods and assess the volume and impact of spam. This comparison is valuable for understanding how bot traffic previously skewed your data.
Key Takeaway
Although you can’t clean up historical data directly, setting up robust spam filters now and analyzing the data comparison will provide clarity and more accurate insights for the future. Ensuring the integrity of your ongoing analytics is crucial for maintaining accurate data.
How to Remove Fake Language Spam in Google Analytics
Getting rid of fake language spam in Google Analytics can greatly improve the accuracy of your data. Here’s a simple guide to help you clean up your analytics:
Step-by-Step Guide to Removing Spam in Google Analytics
1. Access Your Account
- Log into your Google Analytics account.
2. Navigate to Filters
- Click on ‘Admin’ at the bottom left of your dashboard.
- In the ‘View’ column, select ‘Filters.’
- Click ‘Add Filter.’
3. Configure the Filter
- Name Your Filter: Give it a clear name like ‘Exclude Language Spam.’
- Filter Type: Choose ‘Custom’ for a more precise setup.
- Filter Field: Select ‘Language Settings’ from the drop-down menu.
- Filter Pattern: Enter the regex code: \s[^\s]*\s|.{15,}|.| to target the spam language strings.
4. Verify the Filter
- Use the ‘Verify this filter’ option to preview the data before and after applying the filter, ensuring it works correctly.
5. Save and Apply
- Once verified, click ‘Save’ to apply the filter to your view.
By following these steps, you should see a reduction in spam traffic. This will help ensure your analytics reflect only genuine, valuable user data, giving you better insights into your audience. Don’t forget to periodically check and update your filters as spammers often change their methods.
Can I Visit the Spam Sites Found in Google Analytics?
If you find spam links in your Google Analytics, it’s important not to click on them. Visiting these sites can validate the spammers’ efforts and expose you to security risks. Instead of going directly to the suspicious site, try researching it using Google. Just put the website’s name in quotes and search. This way, you can safely gather information from other users and online resources. Often, these spam domains have been reported and reviewed elsewhere. This approach keeps you informed and protected without aiding the spammers.
How to Block Referral Spam in Google Analytics with Third-Party Tools
Blocking referral spam in Google Analytics is crucial for keeping your data accurate. Luckily, there are several third-party tools that can help you manage and eliminate spam traffic. Here are some effective options:
Sucuri
Sucuri is a comprehensive solution that not only blocks referral spam but also enhances your website’s overall security. It actively monitors for spam and automatically removes it, protecting your site from potential DDoS attacks. This makes Sucuri a great all-around choice for website protection.
Stop Referrer Spam
For a more targeted approach, consider the Stop Referrer Spam plugin. It uses a regularly updated list of known referrer spammers curated by Matomo, the team behind Piwik (an alternative to Google Analytics). This plugin is perfect if you want a solution specifically designed to combat referrer spam.
Additional Considerations
While Sucuri and Stop Referrer Spam are reliable and up-to-date, there are other plugins available. However, some may not be updated regularly, which can lead to compatibility issues with current WordPress versions and potential security vulnerabilities. If you decide to explore these options, make sure to:
- Back up your website before installing any new plugin.
- Check the last update date and compatibility with your current WordPress setup.
By taking these precautions and using tools like Sucuri and Stop Referrer Spam, you can protect your Google Analytics data from spam referrals, ensuring cleaner and more accurate reporting.
How to Eliminate Crawler Spam in Google Analytics
Removing crawler spam from your Google Analytics data is crucial for accurate reporting and insights. Follow these steps to effectively clean up your data:
Step 1: Access Your Google Analytics Filters
- Log into your Google Analytics account.
- Go to the ‘Admin’ section.
- Under the account and property columns, click on ‘Filters’.
- Choose ‘Add Filter’ to create a new one.
Step 2: Configure Your Filter
Set up a custom filter to exclude spam:
- Name Your Filter: Choose a recognizable name for easy identification later.
- Filter Type: Select ‘Custom’ and ensure ‘Exclude’ is chosen.
- Filter Field: Set the filter field to ‘Campaign Source’ to target the traffic source.
Step 3: Enter Filter Patterns
Use specific expressions to block common crawler spam:
- Copy and paste the appropriate patterns designed to recognize and block spam sources. Example pattern: (best|dollar|success|top1)-seo|anticrawler|^scripted.|semalt|forum69|7makemon|sharebutton …
- Ensure the correct syntax to avoid excluding legitimate traffic.
Step 4: Verify and Save the Filter
- Use the ‘Verify this Filter’ option to check if the filter works without altering your data.
- After verification, click ‘Save’.
Step 5: Repeat for Additional Filters
If you have more spam expressions to exclude, repeat steps 2 through 4 for each. You may need multiple filters to cover all spam sources effectively.
Regularly updating your filters is essential as new spam sources can emerge. By following these steps, you’ll maintain cleaner, more reliable Google Analytics data. Implementing these filters will help you focus on genuine user interactions and get an accurate picture of your website’s performance.
How to Remove Fake Language Spam in Google Analytics
It is highly recommended to clean up your Google Analytics to ensure your data is accurate and reliable. Here’s a straightforward guide to help you get rid of unwanted spam traffic:
- Access Your Account: Start by logging into your Google Analytics account.
- Navigate to Filters: Go to the ‘Admin’ section at the bottom left of your dashboard. Look for the ‘View’ column and click on ‘Filters.’ Then, select ‘Add Filter.’
- Configure the Filter:
- Name Your Filter: Give your filter a clear name like ‘Exclude Language Spam’ so you can easily identify it later.
- Choose Filter Type: Opt for ‘Custom’ for a more personalized approach.
- Select Filter Field: From the drop-down menu, pick ‘Language Settings.’
- Input Filter Pattern: Use a specific pattern to catch spam language settings. You’ll need a regex (regular expression) code like \s[^\s]*\s|.{15,}|. This targets unusual strings commonly used by spammers.
- Verify the Filter: Before finalizing, use the ‘Verify this filter’ option to ensure it works correctly. You can preview how your data will look before and after applying the filter.
- Save and Apply: Once you’ve verified the filter, click ‘Save’ to apply it to your view.
Following these steps should noticeably reduce spam traffic in your analytics, allowing you to focus on genuine user data that provides valuable insights into your audience. Remember to check and update your filters periodically, as spammers often change their tactics.
What Are The Benefits Of Blocking bot Traffic In from Google Analytics?
Google Analytics is a powerful tool for tracking your website’s traffic, but not all traffic is useful. Bot traffic, which includes visits from crawlers and automated scripts, can distort your metrics. Here’s why blocking bot traffic is crucial:
Improved Data Accuracy
Bots can inflate your website’s traffic numbers, giving you a skewed view of your site’s performance. By blocking these bots, you ensure your data reflects actual human interactions, leading to more accurate analytics. This precision helps you make better business decisions and refine your strategies.
Enhanced Website Security
A lot of bot traffic is malicious, aiming to carry out harmful actions like DDoS attacks or hijacking user accounts. Blocking these bots enhances your website’s security, protecting your data and your users’ information.
Better SEO Performance
Search engines penalize sites associated with spammy links or high bounce rates, often caused by bots. Filtering out bot traffic can improve your SEO rankings and online reputation, making your site more attractive to search engines.
Cost Efficiency
If you pay for bandwidth or server resources based on traffic, reducing bot visits can lower your costs. This is especially important for small to medium-sized businesses looking to optimize their resources.
Preserving Internet Integrity
As a responsible webmaster, you play a role in maintaining the internet’s reliability. Blocking bots helps prevent the spread of spam, malicious links, and inaccurate information, contributing to a healthier online environment.
By actively managing and blocking unwanted bot traffic, you not only protect your resources but also support a more secure and truthful internet. This practice is vital for maintaining the integrity of the data that drives your strategic decisions and operational adjustments.
How to Remove Ghost Spam from Google Analytics
Clearing ghost spam from your Google Analytics can greatly improve your data accuracy. Follow these simple steps to eliminate this type of spam:
Step 1: Access Filters in Google Analytics
- Log into your Google Analytics account.
- Go to the ‘Admin’ section.
- Select the correct view where you want to apply the filter.
- Click on ‘Filters’.
Step 2: Set Up a New Filter
- Click on ‘Add Filter’.
- Name your new filter something recognizable, like “Ghost Spam Filter”.
Step 3: Configure Filter Settings
- Choose ‘Custom’ for the Filter Type.
- Select ‘Include’.
- Set the Filter Field to ‘Hostname’. This ensures Analytics only tracks visits from legitimate hostnames.
Step 4: Specify Your Valid Hostnames
- Enter your known valid hostnames.
- Use a pipe character (|) to separate each hostname.
- Place backslashes before periods and hyphens in your hostnames (e.g., example\.com|another\-site\.com).
Step 5: Verify and Save the Filter
- Use the verify function to check that your filter works.
- If verification is successful, click ‘Save’. This will start filtering your data immediately.
Additional Tip: Identify Legitimate Hostnames
- Go to Audience > Technology > Network in Google Analytics.
- Identify and include more legitimate hostnames in your filter list.
- Spot potential spam referrers to exclude from your data.
By following these steps, you’ll effectively remove ghost spam from your Google Analytics, leading to more accurate and useful insights.
Final Thoughts
As a webmaster, you shouldn’t turn a blind eye to referrer spam. It will dilute your website’s traffic logs with false data while simultaneously consuming server resources like bandwidth, CPU and memory.
You can’t always prevent black-hat marketers from targeting your website with referrer spam, but you can block their requests by using either a plugin or a modified .htaccess
file.
Have you experienced referral spam on your website? We’d love to hear your thoughts, as well as any questions you have, in the commentsComments are a feature of WordPress that allow users to engage in discussions about the content of a website. ... More below!
If you’re looking for fast wordpress hosting as well as done-for-you updates such as blocking referral spam in your WordPress site, check out our hosting packages by clicking the button below: