{"id":347,"date":"2017-11-30T17:18:00","date_gmt":"2017-11-30T17:18:00","guid":{"rendered":"http:\/\/www.infotheme.in\/blog\/?p=347"},"modified":"2022-08-10T11:44:00","modified_gmt":"2022-08-10T11:44:00","slug":"kickback-trick-prevent-bot-traffic-using-google-analytics-htaccess","status":"publish","type":"post","link":"https:\/\/infotheme.net\/blog\/kickback-trick-prevent-bot-traffic-using-google-analytics-htaccess\/","title":{"rendered":"KickBack Trick : How to Prevent Bot Traffic using Google Analytics &#038; Htaccess"},"content":{"rendered":"<p>Hello Guys! Hope you are not well \ud83d\ude41 due to some boat traffic on your website. Which will affect your website&#8217;s <strong>Search Engine Ranking<\/strong>. So guys are you planning to prevent your blog \/ site from <strong>lifehac\u0138er.com<\/strong>&nbsp;and few other spam bot&#8217;s biggest spam. So here I am ready with a new trick, which is <strong>KickBack Trick for Bot<\/strong>. So guys here we will discuss, How bot can affect your website&#8217;s ranking on popular search engines like Google, Bing. Hmm! so are you ready \ud83d\ude41 , hmm, why you are sad there, Don&#8217;t worry dude i have best solution here to&nbsp;prevent it.<\/p>\n<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">Contents<\/p><ul class=\"toc_list\"><li><a href=\"#What_is_a_bot_How_it_Works\"><span class=\"toc_number toc_depth_1\">1<\/span> What is a bot &amp; How it Works?<\/a><ul><li><a href=\"#How_Bot_Traffic_can_Affect_your_Website\"><span class=\"toc_number toc_depth_2\">1.1<\/span> How Bot Traffic can Affect your Website ?<\/a><\/li><li><a href=\"#How_to_Prevent_a_Bot_to_Access_your_Website\"><span class=\"toc_number toc_depth_2\">1.2<\/span> How to Prevent a Bot to Access your Website ?<\/a><\/li><\/ul><\/li><li><a href=\"#How_to_Prevent_Bots_Using_htaccess_File\"><span class=\"toc_number toc_depth_1\">2<\/span> How to Prevent Bots Using .htaccess File ?<\/a><\/li><li><a href=\"#How_to_Prevent_Bots_Traffic_Using_Google_Analyticsnbsp\"><span class=\"toc_number toc_depth_1\">3<\/span> How to Prevent Bots Traffic Using Google Analytics&nbsp;?<\/a><ul><li><a href=\"#Conclusion_How_to_Prevent_Bots_Traffic\"><span class=\"toc_number toc_depth_2\">3.1<\/span> Conclusion : How to Prevent Bots Traffic<\/a><\/li><\/ul><\/li><\/ul><\/div>\n<h2><span id=\"What_is_a_bot_How_it_Works\"><strong>What is a bot &amp; How it Works?<\/strong><\/span><\/h2>\n<p>A bot is known as Internet Robot, Web Robot and WWW bot etc. So it is a program designed to run automated task in a timely manner. Robot can be use to grab content from your sites, this type of robots called as Web Scraper. I m too good in it \ud83d\ude42 but just for dummy content. So&nbsp;<strong>lifehac\u0138er&#8217;s bot&nbsp;<\/strong>is a simple bot which is just visiting your website \/ we can say it just send HTTP REQUESTS. Hope you got what&#8217;s going on there with your website.<\/p>\n<figure id=\"attachment_355\" aria-describedby=\"caption-attachment-355\" style=\"width: 650px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" class=\"size-full wp-image-355\" src=\"http:\/\/www.infotheme.in\/blog\/wp-content\/uploads\/2016\/11\/How-to-Prevent-Bot-Traffic-from-Google-Analytics-Htaccess.png\" alt=\"Prevent Bot Traffic from Google Analytics &amp; Htaccess\" width=\"650\" height=\"350\"><figcaption id=\"caption-attachment-355\" class=\"wp-caption-text\">KICKBACK TRICK to Prevent Bot Traffic from Google Analytics &amp; Htaccess<\/figcaption><\/figure>\n<h3><span id=\"How_Bot_Traffic_can_Affect_your_Website\">How Bot Traffic can Affect your Website ?<\/span><\/h3>\n<p>Here I wanna clear some doubts of your whenever we thought about a bot, we figure it as a Machinery Robot in our mind. Hmm! as I already told you these are just some program nothing else. As our web is much secured from last few years but due to all security things, we face this type of problem. So here I wanna tell you How these bots can affect your website.<\/p>\n<p><strong>Affect 1:<\/strong> Bots can damage your Search Engine Ranking.<\/p>\n<p><strong>Affect 2:<\/strong> For those who have cheap servers they can face a server downtime due to heavy load on server.<\/p>\n<p><strong>Affect 3:<\/strong> Basically they increase our server&#8217;s resource limit.<\/p>\n<p><strong>Affect 4:<\/strong> It can make a bad effects on your CPC \/ eCPM.<\/p>\n<p><strong>Affect 5:<\/strong> You can totally loss your website, if it will send some bad \/ harmful HTTP REQUESTS to your Website.<\/p>\n<p><strong>Affect 6:<\/strong> Last but not least Google can Penalize your site, due to High Bounce Rate on Traffic, which counts as fake content.<\/p>\n<h3><span id=\"How_to_Prevent_a_Bot_to_Access_your_Website\">How to Prevent a Bot to Access your Website ?<\/span><\/h3>\n<p>If you are facing this type of problem at the moment and totally frustrated with bots and unnecessary HTTP Request. So Don&#8217;t worry \ud83d\ude42 &nbsp;(For Indians <strong>&#8220;HUM ABHI JINDA HE MERE DOST&#8221; means &#8220;I&nbsp;am here&nbsp;to help you and get rid from this problem&#8221;<\/strong>). So here i suggest you to <strong>Get SSL Certificate<\/strong>, which can make your site <strong>bot infection free<\/strong> for lifetime. But anyway here are some free tips which will help you to get rid from it.<\/p>\n<h2><span id=\"How_to_Prevent_Bots_Using_htaccess_File\">How to Prevent Bots Using .htaccess File ?<\/span><\/h2>\n<p>Here is a simple code you have to write on your .htaccess file, to prevent access of spammy bot and and kick back on their ASS.<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\n\n&amp;lt;IfModule mod_rewrite.c&amp;gt;\nRewriteCond %{HTTP_REFERER} ^http:\/\/([^.]+\\.)*lifehac\u0138er\\.com [NC]\nRewriteRule (.*) http:\/\/www.lifehac\u0138er.com [R=301,L]\n\n&amp;lt;\/IfModule&amp;gt;\n\n<\/pre>\n<p>In this code instead of&nbsp;lifehac\u0138er.com you can use host url of any spammy host \/ ip too. And instead of .com just replace it by desired domain&#8217;s extension.<\/p>\n<h2><span id=\"How_to_Prevent_Bots_Traffic_Using_Google_Analyticsnbsp\">How to Prevent Bots Traffic Using Google Analytics&nbsp;?<\/span><\/h2>\n<p>Here you can&#8217;t prevent bots but with this way you can keep alive on Google Search Engine Ranking. Otherwise google can penalize you. But as we all know these are unnecessary bots. So just follow below steps to get rid from this problem.<\/p>\n<p><strong>Step 1:<\/strong> In your web browser Open <strong><a href=\"http:\/\/www.google.com\/analytics\" rel=\"nofollow noopener\" target=\"_blank\">Google Analytics<\/a> Account.<\/strong><\/p>\n<p><strong>Step 2:<\/strong> After that click to <strong>Web Property&nbsp;-&gt; All Website Data&nbsp;<\/strong>and Click to <strong>Admin Tab<\/strong>.<\/p>\n<p><strong>Step 3:<\/strong> When you will done with Step 2, Click to <strong>All Filters<\/strong> menu in left hand side.<\/p>\n<p><strong>Step 4:&nbsp;<\/strong>And click to Add Filter Button.<\/p>\n<p><strong>Step 5:<\/strong> Follow Below Screenshot , But must select <strong>Filter Type Custom.<\/strong><\/p>\n<figure id=\"attachment_352\" aria-describedby=\"caption-attachment-352\" style=\"width: 828px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" class=\"size-full wp-image-352\" src=\"http:\/\/www.infotheme.in\/blog\/wp-content\/uploads\/2016\/11\/Prevent-Bots-Access-from-Google-Analytics.png\" alt=\"How to Prevent Bot Access from Google Analytics\" width=\"828\" height=\"467\"><figcaption id=\"caption-attachment-352\" class=\"wp-caption-text\">Prevent Bots Access from Google Analytics<\/figcaption><\/figure>\n<p>After doing this task click to All Website Data and Click to Add button, when it will be done as explained here, Click to save button and get rid from this problem.<\/p>\n<h3><span id=\"Conclusion_How_to_Prevent_Bots_Traffic\">Conclusion : How to Prevent Bots Traffic<\/span><\/h3>\n<p>So here in this whole article we saw <strong>how a bot can affect our website very worstly<\/strong>&nbsp;but that&#8217;s not a reason to worry. As I tried to mention here how you can solve this problem within few minutes and keep alive always without frustration. Now the <strong>KICKBack Trick<\/strong> was we were Redirecting bots to their host, Hope you already got this why I told it <strong>KickBack Trick to Prevent Unnecessary Bot Access<\/strong>. Don&#8217;t forget to Like&nbsp;my Facebook Page&nbsp;<a href=\"http:\/\/fb.me\/Mr.Rahul.Negi\" rel=\"nofollow noopener\" target=\"_blank\">http:\/\/fb.me\/Mr.Rahul.Negi<\/a>&nbsp;and commenting below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello Guys! Hope you are not well \ud83d\ude41 due to some boat traffic on your website. Which will affect your website&#8217;s Search Engine Ranking. So [&hellip;] <span class=\"read-more-link\"><a class=\"read-more\" href=\"https:\/\/infotheme.net\/blog\/kickback-trick-prevent-bot-traffic-using-google-analytics-htaccess\/\">Read More<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":355,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[135,139],"tags":[162,163,164],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/infotheme.net\/blog\/wp-json\/wp\/v2\/posts\/347"}],"collection":[{"href":"https:\/\/infotheme.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/infotheme.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/infotheme.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/infotheme.net\/blog\/wp-json\/wp\/v2\/comments?post=347"}],"version-history":[{"count":2,"href":"https:\/\/infotheme.net\/blog\/wp-json\/wp\/v2\/posts\/347\/revisions"}],"predecessor-version":[{"id":1472,"href":"https:\/\/infotheme.net\/blog\/wp-json\/wp\/v2\/posts\/347\/revisions\/1472"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/infotheme.net\/blog\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/infotheme.net\/blog\/wp-json\/wp\/v2\/media?parent=347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/infotheme.net\/blog\/wp-json\/wp\/v2\/categories?post=347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/infotheme.net\/blog\/wp-json\/wp\/v2\/tags?post=347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}