{"id":7108,"date":"2015-10-04T08:34:38","date_gmt":"2015-10-04T08:34:38","guid":{"rendered":"http:\/\/hostileblog.com\/?p=1204"},"modified":"2020-05-30T21:46:01","modified_gmt":"2020-05-31T01:46:01","slug":"block-referrer-spam-without-plugin-and-google-analytics-filter","status":"publish","type":"post","link":"https:\/\/www.carnaghan.com\/block-referrer-spam-without-plugin-and-google-analytics-filter\/","title":{"rendered":"Block referrer spam without plugin and Google Analytics filter"},"content":{"rendered":"\n

In the last few months, my Google Analytics account has started showing a lot of referrer spam sites like SexyAli, free-social<\/span>-buttons, Semalt, etc. The spammers are screwing up my GA reports. I have some websites<\/span>. Tho site with 1000s of visitors is not affected but for my new portals, the referrers are causing high bounce rate which makes the report data confusing.<\/p>\n\n\n\n

Some referrers seem to be attacking WordPress<\/span> sites as the real-time reports show 30+ visitors (from spam sites) from various parts of the world.<\/p>\n\n\n\n

I tried blocking spam<\/span> referrers IP address from the hosting<\/span> account control panel, but sometimes, this didn’t work. I searched for some tutorials for the same on Google.com, and I found a solution in the form of Google Analytics filter.<\/p>\n\n\n\n

\"Block<\/a><\/figure><\/div>\n\n\n\n

The filters are powerful, and they support limited sites at a time. For example, each filter will have a domain, characters limit.<\/p>\n\n\n\n

I think, the filter will exclude the reports from m showing them, but they’re stored in your account records. If you accidentally delete it, you’ll have to setup the filters again.<\/p>\n\n\n\n

This best possible way to stop referral<\/span> spam would be using the htaccess file<\/span>. The 1st file<\/span> that any spam bot will access is the htaccess. Thus you can use it to block sites like SexyAli, free-floating-buttons, quality market zone from accessing your blog<\/span> and appearing in GA reports.<\/p>\n\n\n\n

This list on GitHub<\/a> has a full list of referrer spam sites along with htaccess rules to block them. You just have to open your CPanel<\/span>, access root directory of your site and paste it at the bottom or top of the htaccess file<\/span> to get rid of ghost spam.<\/p>\n\n\n\n

You don’t have to use any WordPress<\/span> plugin<\/span>, nor you have to purchase premium security services to get rid of Analytics<\/span> referral spams. Simply bookmark the GitHub<\/span> link<\/span> we’ve shared above and do visit the URL<\/span> once or twice a week to get updated list of spam websites.<\/p>\n\n\n\n

Must Read: Best free WordPress spam blocker plugins (2016)<\/a><\/p>\n\n\n\n

The result will be instant. Your GA reports will be clean, and only valid visitors<\/span> (from search engines, direct and social<\/span> networks) will be shown.<\/p>\n","protected":false},"excerpt":{"rendered":"

In the last few months, my Google Analytics account has started showing a lot of referrer spam sites like SexyAli, free-social-buttons, Semalt, etc. The spammers are screwing up my GA reports. I have some websites. Tho site with 1000s of visitors is not affected but for my new portals, the referrers are causing high bounce rate […]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[11413,34,7047],"post_series":[],"yoast_head":"\nBlock referrer spam without plugin and Google Analytics filter - Ian Carnaghan<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.carnaghan.com\/block-referrer-spam-without-plugin-and-google-analytics-filter\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Block referrer spam without plugin and Google Analytics filter - Ian Carnaghan\" \/>\n<meta property=\"og:description\" content=\"In the last few months, my Google Analytics account has started showing a lot of referrer spam sites like SexyAli, free-social-buttons, Semalt, etc. The spammers are screwing up my GA reports. I have some websites. Tho site with 1000s of visitors is not affected but for my new portals, the referrers are causing high bounce rate […]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.carnaghan.com\/block-referrer-spam-without-plugin-and-google-analytics-filter\/\" \/>\n<meta property=\"og:site_name\" content=\"Ian Carnaghan\" \/>\n<meta property=\"article:published_time\" content=\"2015-10-04T08:34:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-05-31T01:46:01+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.carnaghan.com\/wp-content\/uploads\/2015\/10\/referral-spam.jpg\" \/>\n<meta name=\"author\" content=\"Pramod\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@icarnaghan\" \/>\n<meta name=\"twitter:site\" content=\"@icarnaghan\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pramod\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.carnaghan.com\/block-referrer-spam-without-plugin-and-google-analytics-filter\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.carnaghan.com\/block-referrer-spam-without-plugin-and-google-analytics-filter\/\"},\"author\":{\"name\":\"Pramod\",\"@id\":\"https:\/\/www.carnaghan.com\/#\/schema\/person\/f52a97a0d4f7b309922ab0381d337bbb\"},\"headline\":\"Block referrer spam without plugin and Google Analytics filter\",\"datePublished\":\"2015-10-04T08:34:38+00:00\",\"dateModified\":\"2020-05-31T01:46:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.carnaghan.com\/block-referrer-spam-without-plugin-and-google-analytics-filter\/\"},\"wordCount\":373,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.carnaghan.com\/#\/schema\/person\/c689c24d516c51968a88b628860740a5\"},\"image\":{\"@id\":\"https:\/\/www.carnaghan.com\/block-referrer-spam-without-plugin-and-google-analytics-filter\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.carnaghan.com\/wp-content\/uploads\/2015\/10\/referral-spam.jpg\",\"keywords\":[\"Affiliate\",\"analytics\",\"Spam\"],\"articleSection\":[\"Blogging\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.carnaghan.com\/block-referrer-spam-without-plugin-and-google-analytics-filter\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.carnaghan.com\/block-referrer-spam-without-plugin-and-google-analytics-filter\/\",\"url\":\"https:\/\/www.carnaghan.com\/block-referrer-spam-without-plugin-and-google-analytics-filter\/\",\"name\":\"Block referrer spam without plugin and Google Analytics filter - Ian Carnaghan\",\"isPartOf\":{\"@id\":\"https:\/\/www.carnaghan.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.carnaghan.com\/block-referrer-spam-without-plugin-and-google-analytics-filter\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.carnaghan.com\/block-referrer-spam-without-plugin-and-google-analytics-filter\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.carnaghan.com\/wp-content\/uploads\/2015\/10\/referral-spam.jpg\",\"datePublished\":\"2015-10-04T08:34:38+00:00\",\"dateModified\":\"2020-05-31T01:46:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.carnaghan.com\/block-referrer-spam-without-plugin-and-google-analytics-filter\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.carnaghan.com\/block-referrer-spam-without-plugin-and-google-analytics-filter\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.carnaghan.com\/block-referrer-spam-without-plugin-and-google-analytics-filter\/#primaryimage\",\"url\":\"http:\/\/www.carnaghan.com\/wp-content\/uploads\/2015\/10\/referral-spam.jpg\",\"contentUrl\":\"http:\/\/www.carnaghan.com\/wp-content\/uploads\/2015\/10\/referral-spam.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.carnaghan.com\/block-referrer-spam-without-plugin-and-google-analytics-filter\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.carnaghan.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Block referrer spam without plugin and Google Analytics filter\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.carnaghan.com\/#website\",\"url\":\"https:\/\/www.carnaghan.com\/\",\"name\":\"Ian Carnaghan\",\"description\":\"Software Developer, Blogger, Educator\",\"publisher\":{\"@id\":\"https:\/\/www.carnaghan.com\/#\/schema\/person\/c689c24d516c51968a88b628860740a5\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.carnaghan.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.carnaghan.com\/#\/schema\/person\/c689c24d516c51968a88b628860740a5\",\"name\":\"Ian Carnaghan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.carnaghan.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f2aa5baca80c2be728de43a975185d91?s=96&d=retro&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f2aa5baca80c2be728de43a975185d91?s=96&d=retro&r=g\",\"caption\":\"Ian Carnaghan\"},\"logo\":{\"@id\":\"https:\/\/www.carnaghan.com\/#\/schema\/person\/image\/\"},\"description\":\"I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.\",\"sameAs\":[\"http:\/\/www.carnaghan.com\",\"https:\/\/x.com\/icarnaghan\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.carnaghan.com\/#\/schema\/person\/f52a97a0d4f7b309922ab0381d337bbb\",\"name\":\"Pramod\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.carnaghan.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9b9cc255f2495f5394b801428d7d6929?s=96&d=retro&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9b9cc255f2495f5394b801428d7d6929?s=96&d=retro&r=g\",\"caption\":\"Pramod\"},\"description\":\"My name is Pramod. I\u2019m a software developer (with good knowledge on PHP, JAVA \u2013 Android, JavaScript, CSS), blogger and online marketing professional. I\u2019ve 3 years of experience as a blogger and 2 years of full time experience as a software developer.\",\"url\":\"https:\/\/www.carnaghan.com\/author\/prhost78\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Block referrer spam without plugin and Google Analytics filter - Ian Carnaghan","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.carnaghan.com\/block-referrer-spam-without-plugin-and-google-analytics-filter\/","og_locale":"en_US","og_type":"article","og_title":"Block referrer spam without plugin and Google Analytics filter - Ian Carnaghan","og_description":"In the last few months, my Google Analytics account has started showing a lot of referrer spam sites like SexyAli, free-social-buttons, Semalt, etc. The spammers are screwing up my GA reports. I have some websites. Tho site with 1000s of visitors is not affected but for my new portals, the referrers are causing high bounce rate […]","og_url":"https:\/\/www.carnaghan.com\/block-referrer-spam-without-plugin-and-google-analytics-filter\/","og_site_name":"Ian Carnaghan","article_published_time":"2015-10-04T08:34:38+00:00","article_modified_time":"2020-05-31T01:46:01+00:00","og_image":[{"url":"http:\/\/www.carnaghan.com\/wp-content\/uploads\/2015\/10\/referral-spam.jpg"}],"author":"Pramod","twitter_card":"summary_large_image","twitter_creator":"@icarnaghan","twitter_site":"@icarnaghan","twitter_misc":{"Written by":"Pramod","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.carnaghan.com\/block-referrer-spam-without-plugin-and-google-analytics-filter\/#article","isPartOf":{"@id":"https:\/\/www.carnaghan.com\/block-referrer-spam-without-plugin-and-google-analytics-filter\/"},"author":{"name":"Pramod","@id":"https:\/\/www.carnaghan.com\/#\/schema\/person\/f52a97a0d4f7b309922ab0381d337bbb"},"headline":"Block referrer spam without plugin and Google Analytics filter","datePublished":"2015-10-04T08:34:38+00:00","dateModified":"2020-05-31T01:46:01+00:00","mainEntityOfPage":{"@id":"https:\/\/www.carnaghan.com\/block-referrer-spam-without-plugin-and-google-analytics-filter\/"},"wordCount":373,"commentCount":0,"publisher":{"@id":"https:\/\/www.carnaghan.com\/#\/schema\/person\/c689c24d516c51968a88b628860740a5"},"image":{"@id":"https:\/\/www.carnaghan.com\/block-referrer-spam-without-plugin-and-google-analytics-filter\/#primaryimage"},"thumbnailUrl":"http:\/\/www.carnaghan.com\/wp-content\/uploads\/2015\/10\/referral-spam.jpg","keywords":["Affiliate","analytics","Spam"],"articleSection":["Blogging"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.carnaghan.com\/block-referrer-spam-without-plugin-and-google-analytics-filter\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.carnaghan.com\/block-referrer-spam-without-plugin-and-google-analytics-filter\/","url":"https:\/\/www.carnaghan.com\/block-referrer-spam-without-plugin-and-google-analytics-filter\/","name":"Block referrer spam without plugin and Google Analytics filter - Ian Carnaghan","isPartOf":{"@id":"https:\/\/www.carnaghan.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.carnaghan.com\/block-referrer-spam-without-plugin-and-google-analytics-filter\/#primaryimage"},"image":{"@id":"https:\/\/www.carnaghan.com\/block-referrer-spam-without-plugin-and-google-analytics-filter\/#primaryimage"},"thumbnailUrl":"http:\/\/www.carnaghan.com\/wp-content\/uploads\/2015\/10\/referral-spam.jpg","datePublished":"2015-10-04T08:34:38+00:00","dateModified":"2020-05-31T01:46:01+00:00","breadcrumb":{"@id":"https:\/\/www.carnaghan.com\/block-referrer-spam-without-plugin-and-google-analytics-filter\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.carnaghan.com\/block-referrer-spam-without-plugin-and-google-analytics-filter\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.carnaghan.com\/block-referrer-spam-without-plugin-and-google-analytics-filter\/#primaryimage","url":"http:\/\/www.carnaghan.com\/wp-content\/uploads\/2015\/10\/referral-spam.jpg","contentUrl":"http:\/\/www.carnaghan.com\/wp-content\/uploads\/2015\/10\/referral-spam.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.carnaghan.com\/block-referrer-spam-without-plugin-and-google-analytics-filter\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.carnaghan.com\/"},{"@type":"ListItem","position":2,"name":"Block referrer spam without plugin and Google Analytics filter"}]},{"@type":"WebSite","@id":"https:\/\/www.carnaghan.com\/#website","url":"https:\/\/www.carnaghan.com\/","name":"Ian Carnaghan","description":"Software Developer, Blogger, Educator","publisher":{"@id":"https:\/\/www.carnaghan.com\/#\/schema\/person\/c689c24d516c51968a88b628860740a5"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.carnaghan.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.carnaghan.com\/#\/schema\/person\/c689c24d516c51968a88b628860740a5","name":"Ian Carnaghan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.carnaghan.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f2aa5baca80c2be728de43a975185d91?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f2aa5baca80c2be728de43a975185d91?s=96&d=retro&r=g","caption":"Ian Carnaghan"},"logo":{"@id":"https:\/\/www.carnaghan.com\/#\/schema\/person\/image\/"},"description":"I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.","sameAs":["http:\/\/www.carnaghan.com","https:\/\/x.com\/icarnaghan"]},{"@type":"Person","@id":"https:\/\/www.carnaghan.com\/#\/schema\/person\/f52a97a0d4f7b309922ab0381d337bbb","name":"Pramod","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.carnaghan.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9b9cc255f2495f5394b801428d7d6929?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9b9cc255f2495f5394b801428d7d6929?s=96&d=retro&r=g","caption":"Pramod"},"description":"My name is Pramod. I\u2019m a software developer (with good knowledge on PHP, JAVA \u2013 Android, JavaScript, CSS), blogger and online marketing professional. I\u2019ve 3 years of experience as a blogger and 2 years of full time experience as a software developer.","url":"https:\/\/www.carnaghan.com\/author\/prhost78\/"}]}},"views":120,"_links":{"self":[{"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/posts\/7108"}],"collection":[{"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/comments?post=7108"}],"version-history":[{"count":0,"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/posts\/7108\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/media?parent=7108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/categories?post=7108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/tags?post=7108"},{"taxonomy":"post_series","embeddable":true,"href":"https:\/\/www.carnaghan.com\/wp-json\/wp\/v2\/post_series?post=7108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}