{"id":1953,"date":"2016-05-09T11:02:54","date_gmt":"2016-05-09T11:02:54","guid":{"rendered":"http:\/\/www.maria-johnsen.com\/million-dollar-blog\/?p=1953"},"modified":"2025-11-20T21:33:51","modified_gmt":"2025-11-20T21:33:51","slug":"stopping-bot-referral-traffic","status":"publish","type":"post","link":"https:\/\/www.maria-johnsen.com\/million-dollar-blog\/stopping-bot-referral-traffic\/","title":{"rendered":"Stopping bot referral traffic in Google Analytics"},"content":{"rendered":"<p>Many businesses\u00a0have been bothered by Ghost referral spam websites. They usually appear in your websites&#8217; statistics and Google Analytics. Should you be worried about these irrelevant sites stealing your band weight? They do not harm your website nor do they have access to your webpages.\u00a0These spammers use dynamic IPs and scripts in order to drive traffic to their websites. Some of them use CloudFlare IP. Their scripts target your websites. They\u00a0hit random blocks of Google Analytics tracking IDs. We\u2019ve seen this porn spam show up in some of our clients&#8217; Google Analytics\u00a0accounts. It is\u00a0important to understand between ghost spams and scripts\u00a0that do actually scrape your\u00a0websites&#8217; contents.Many website owners are wondering\u00a0why Google\u2019s bot filter doesn&#8217;t stop\u00a0these spammers? It is because they never actually click at your websites.If you see them in your website &#8216;statistic\u00a0do not click at them. If you do, more spammy sites will be pointed to your website.<\/p>\n<img decoding=\"async\" src=\"http:\/\/www.maria-johnsen.com\/million-dollar-blog\/wp-content\/uploads\/2016\/05\/Stopping-bot-referral-traffic-in-Google-Analytics.jpg\" class=\"img-responsive oscitas-res-image\" alt=\"\">\n<p>Spammers want to get website owners\u00a0click at the referral sources. By clicking, they are driving you to another website with more spam and irrelevant ads. These spammers are hitting thousands of websites on daily basis, in an attempt to drive traffic back to their crappy websites. They may also be directing traffic to their affiliate sites, where they earn money if visitors buy something. Spammers don\u2019t know whose websites they are targeting to, hence their scripts are not set on various hostnames.<\/p>\n<p>Many of these websites\u00a0use\u00a0CloudFlare IP. The following shows an example of spammy sites.<\/p>\n<p><strong>Stopping bot referral traffic in Google Analytics<\/strong><\/p>\n<p>Here are some of spammy websites which spam via cpanel. These are called ghost spams:<\/p>\n<ul>\n<li>Click at\u00a0the Admin in your Google Analytics at the top of your screen.<\/li>\n<li>Go to the view in which you want to set the filter. Make sure to always have an unfiltered view of your traffic. Filtered traffic cannot be retrieved. Monitor your websites and keep an eye on &#8220;All Website Data view&#8221;, with no filters, and then create a new view where you will place your custom filters, turn on Google\u2019s bot filter, set up your goals, etc.<\/li>\n<\/ul>\n<p>Name your filter. In our example we\u2019ve used Block\u00a0 Spam.<\/p>\n<p>&nbsp;<\/p>\n<p>For Filter Type, choose Custom.<\/p>\n<ul>\n<li>For Filter Field, choose Campaign Source.<\/li>\n<li>Add the referrer to the Filter Pattern field.<\/li>\n<li>To block several referrers, you can use a regular expression.<\/li>\n<li>Click Save.<\/li>\n<\/ul>\n<p>Here is how to filter these spammy websites.<\/p>\n<ol>\n<li>Click Add Segment on your screen.<\/li>\n<li>Choose New Segment.<\/li>\n<li>Under Advanced, click Conditions.<\/li>\n<li>Change \u201cInclude\u201d to \u201cExclude.\u201d<\/li>\n<li>Change the default \u201cAd Content\u201d to \u201cSource.\u201d<\/li>\n<li>Use \u201cmatches regex.\u201d<\/li>\n<li>Start to type the referrer. It should come up in the auto fill drop down, so you know you have a legitimate referrer to you site.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>Another way is to write the following code in your htaccess file:<\/p>\n<p><strong>BrowserMatchNoCase <span style=\"color: #ff0000;\">spammydomain.com<\/span>\u00a0bad_agent<\/strong><br \/>\n<strong> Order Deny,Allow<\/strong><br \/>\n<strong> Deny from env=bad_agent<\/strong><\/p>\n<p>The red color in the code above is the domain which I\u00a0want to block. \u00a0You can use the same code for your own website just replace the red color domain with the one you want to block.<\/p>\n<p>The following list below is websites which feed off one of my domain&#8217;s\u00a0band weight and spam via Cpanel\u00a0in hopes of getting clicks.\u00a0To stop them i just\u00a0add these rewrite rules\u00a0in my\u00a0htaccess file. Legitimate websites\u2019s URLs \u00a0are hidden, the ones which are showing excluding the buffly urls are spam. If you click at these URLS, you land on their pages and there is no trace of your link on those pages. They do it to get click, so the best thing is not to click at them.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>RewriteCond %{HTTP_REFERER} spammydomain.com [NC,OR]<\/strong><br \/>\n<strong> RewriteCond %{HTTP_REFERER} www.spammydomain.com [NC,OR]<\/strong><br \/>\n<strong> RewriteCond %{HTTP_REFERER} ^([^.]+.)*?spammydomain.com [NC,OR]<\/strong><br \/>\n<strong> RewriteCond %{HTTP_REFERER} ^([^.]+.)*?jetsli.de\/crawler [NC,OR]<\/strong><br \/>\n<strong> RewriteCond %{HTTP_REFERER} ^([^.]+.)*?touropia.ru [NC,OR]<\/strong><br \/>\n<strong> RewriteCond %{HTTP_REFERER} ^([^.]+.)*?storinka.com.ua [NC,OR]<\/strong><br \/>\n<strong> RewriteCond %{HTTP_REFERER} ^([^.]+.)*?pornoblood.com [NC,OR]<\/strong><br \/>\n<strong> RewriteCond %{HTTP_REFERER} jetsli.de\/crawler [NC,OR]<\/strong><br \/>\n<strong> RewriteCond %{HTTP_REFERER} touropia.ru[NC]<\/strong><br \/>\n<strong> RewriteRule .* &#8211; [F]<\/strong><\/p>\n<p>You can also block these URLS&#8217;s IP addresses in your .htaccess or robot.txt files. However they use dynamic IP addresses and blocking is no use. Just don&#8217;t click at these urls when you see them and follow my instruction above.<\/p>\n<p>&nbsp;<\/p>\n<p>Need help with <strong>Google Analytics or website analytics<\/strong>?\u00a0Let&#8217;s hear it. \u00a0<span style=\"color: #0000ff;\"><strong><a style=\"color: #0000ff;\" href=\"http:\/\/www.maria-johnsen.com\/contact\/\">Contact here<\/a><\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many businesses\u00a0have been bothered by Ghost referral spam websites. They usually appear in your websites&#8217; statistics and Google Analytics. Should you be worried about these irrelevant sites stealing your band weight? They do not harm your website nor do they have access to your webpages.\u00a0These spammers use dynamic IPs and scripts in order to drive traffic to their websites. Some<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85],"tags":[190,191,5,189,86,192],"class_list":["post-1953","post","type-post","status-publish","format-standard","hentry","category-website-analysis","tag-cloudflare-ip","tag-google-analytics","tag-seo","tag-stopping-ghost-referral","tag-website-analysis-2","tag-website-traffic"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.maria-johnsen.com\/million-dollar-blog\/wp-json\/wp\/v2\/posts\/1953","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.maria-johnsen.com\/million-dollar-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.maria-johnsen.com\/million-dollar-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.maria-johnsen.com\/million-dollar-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.maria-johnsen.com\/million-dollar-blog\/wp-json\/wp\/v2\/comments?post=1953"}],"version-history":[{"count":61,"href":"https:\/\/www.maria-johnsen.com\/million-dollar-blog\/wp-json\/wp\/v2\/posts\/1953\/revisions"}],"predecessor-version":[{"id":4204,"href":"https:\/\/www.maria-johnsen.com\/million-dollar-blog\/wp-json\/wp\/v2\/posts\/1953\/revisions\/4204"}],"wp:attachment":[{"href":"https:\/\/www.maria-johnsen.com\/million-dollar-blog\/wp-json\/wp\/v2\/media?parent=1953"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.maria-johnsen.com\/million-dollar-blog\/wp-json\/wp\/v2\/categories?post=1953"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.maria-johnsen.com\/million-dollar-blog\/wp-json\/wp\/v2\/tags?post=1953"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}