{"id":2715,"date":"2026-12-02T13:22:13","date_gmt":"2026-12-02T11:22:13","guid":{"rendered":"https:\/\/html-online.com\/articles\/?p=2715"},"modified":"2026-12-02T13:24:01","modified_gmt":"2026-12-02T11:24:01","slug":"detect-website-bot-traffic","status":"publish","type":"post","link":"https:\/\/html-online.com\/articles\/detect-website-bot-traffic\/","title":{"rendered":"Detect Website Bot Traffic"},"content":{"rendered":"<p>5 days ago a website I run with free online tools went from about 5,000 to 40,000 daily users in Google Analytics in four days. Nobody shared it and no article went viral. Almost every new visitor arrived as &#8220;Direct&#8221; traffic and left within a few&nbsp;seconds.<\/p>\n<p class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2026\/12\/increased-bot-traffic.jpg\" alt=\"GA4 Acquisition overview: active users jump from about 5,000 to 40,000 a day, almost all Direct\" width=\"800\" height=\"261\" \/><\/p>\n<p>It was a bot flood. This article shows how I tracked it down with GA4 and Cloudflare, why the first set of security rules failed and what finally&nbsp;worked.<\/p>\n<p><!--more--><\/p>\n<h2>How much web traffic comes from&nbsp;bots?<\/h2>\n<p>According to the <a rel=\"nofollow\" target=\"_blank\" href=\"https:\/\/cpl.thalesgroup.com\/resources\/application-security\/2026-bad-bot-report\">2026 Thales Bad Bot Report<\/a>, which analyzed full-year 2025 traffic, bots now make up 53% of all internet&nbsp;traffic:<\/p>\n<ul>\n<li>47% human traffic \ud83d\ude4d&zwj;\u2642\ufe0f<\/li>\n<li>40% bad bots \ud83d\udc7e<\/li>\n<li>13% other bots (the remainder), such as search engine crawlers&nbsp;\ud83e\udd16<\/li>\n<\/ul>\n<p>The same report found that 41% of bots use Chrome to look legitimate. That matches what I saw: nearly all the fake visitors identified themselves as an up-to-date&nbsp;Chrome.<\/p>\n<p>Fake visits cause problems even when your server copes with them. They distort your <a target=\"_blank\" href=\"https:\/\/analytics.google.com\/analytics\/web\/#\/\">analytics<\/a>, so you can&#8217;t tell which pages perform well or where real visitors come&nbsp;from.<\/p>\n<p>This is worth keeping in mind if you <a target=\"_blank\" href=\"https:\/\/richads.com\/blog\/where-to-buy-cheap-website-traffic\/\">buy website traffic<\/a> to promote a new product or website. Set up your analytics before starting the campaign so you have a baseline to compare the results with. 1000 cheap visits aren&#8217;t worth much if none of the visitors are interested in your site.<\/p>\n<p>Be especially careful if your website runs display ads. Invalid traffic can put your advertising account at&nbsp;risk.<\/p>\n<h2>\ud83d\udd0d Finding bots in Google Analytics&nbsp;4<\/h2>\n<p>GA4 already filters out known bots. <a target=\"_blank\" href=\"https:\/\/support.google.com\/analytics\/answer\/9888366\">Google&#8217;s documentation<\/a> says you cannot turn this off or see how much traffic it&nbsp;removed.<\/p>\n<p>Bots that run a real browser get through anyway. Headless Chrome loads <a href=\"\/articles\/category\/javascript\/\">JavaScript<\/a>, accepts cookies and fires analytics events like a normal visitor. Look for these&nbsp;signs:<\/p>\n<ul>\n<li>A sudden <a href=\"\/articles\/analyze-website-traffic\/\">spike in traffic<\/a> with no matching increase in sales, sign-ups or ad&nbsp;revenue.<\/li>\n<li>Almost all of the new sessions in one channel, usually&nbsp;<strong>Direct<\/strong>.<\/li>\n<li>Engagement rates in single digits and average engagement time of 0-6&nbsp;seconds.<\/li>\n<li>One browser and operating system combination taking an unrealistic share of your&nbsp;users.<\/li>\n<li>Traffic concentrated on a single page, often one that isn&#8217;t popular in&nbsp;search.<\/li>\n<li>Referral traffic from unfamiliar or suspicious&nbsp;domains.<\/li>\n<\/ul>\n<p>Don&#8217;t assume that every short visit comes from a bot. Someone looking up a CSS property might find the answer and leave five seconds later. Look for patterns across thousands of sessions, not single&nbsp;visits.<\/p>\n<h3>Step 1: Compare channels in Traffic&nbsp;acquisition<\/h3>\n<p>Open <em>Reports &gt; Acquisition &gt; Traffic acquisition<\/em> and set the date range to include the&nbsp;spike.<\/p>\n<p class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2026\/12\/traffic-acquisition.jpg\" alt=\"GA4 Traffic acquisition report: Direct traffic is 98.6% of sessions with a 19% engagement rate\" width=\"800\" height=\"490\" loading=\"lazy\" \/><\/p>\n<p>In my report, Direct traffic produced 98.6% of all 174,094 sessions. Its engagement rate was 19% with an average of 6 seconds, while Organic Search visitors had a 51% engagement rate and stayed 50 seconds. Referral visitors engaged 86% of the time. When one channel grows tenfold and behaves completely differently from the others, the growth isn&#8217;t&nbsp;human.<\/p>\n<h3>Step 2: Break users down by browser and operating&nbsp;system<\/h3>\n<p>Go to <em>Reports &gt; User &gt; Tech &gt; Tech details<\/em>, keep Browser as the primary dimension and add <em>Operating system<\/em> as a secondary&nbsp;dimension.<\/p>\n<p class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2026\/12\/ga-browser-operating-system.jpg\" alt=\"GA4 Tech details by browser and operating system: Chrome on Linux 62% of users, Chrome on Windows 2.77% engagement rate\" width=\"800\" height=\"414\" loading=\"lazy\" \/><\/p>\n<p>This was the clearest evidence:<\/p>\n<ul>\n<li><strong>Chrome on Linux:<\/strong> 62.45% of 165,549 users. Desktop Linux is a small minority among real visitors, so this alone is a red&nbsp;flag.<\/li>\n<li><strong>Chrome on Windows:<\/strong> 34.36% of users with a 2.77% engagement rate and 1 second of average engagement&nbsp;time.<\/li>\n<li><strong>Edge on Windows<\/strong> (62%), <strong>Chrome on Android<\/strong> (81%) and <strong>Safari on iOS<\/strong> (54%): normal engagement rates. These are the real&nbsp;people.<\/li>\n<\/ul>\n<p>Two browser and OS combinations made up 96.8% of the audience. Compare each row&#8217;s engagement rate with the rest. Real browsers vary; bots cluster around&nbsp;zero.<\/p>\n<h3>Step 3: Check the events in&nbsp;Realtime<\/h3>\n<p>Open <em>Reports &gt; Realtime overview<\/em> while the bots are active. In my case, 81% of all page views went to a single tool page, and nearly every session fired <code>first_visit<\/code>. That means every &#8220;visitor&#8221; arrived without cookies, a typical sign of a fresh automated browser&nbsp;profile.<\/p>\n<p>There were also more <code>view_search_results<\/code> events than page views. GA4&#8217;s enhanced measurement fires that event when the URL contains a search parameter such as <code>q<\/code>, <code>s<\/code> or <code>search<\/code>. Unique query strings are also a common way for bots to get past a CDN cache, so the request reaches your origin server every&nbsp;time.<\/p>\n<h2>What your server logs can tell&nbsp;you<\/h2>\n<p>Google Analytics only sees visitors that run its JavaScript. A simple script can fetch every HTML page on your site without ever appearing in&nbsp;GA4.<\/p>\n<p>Your server access logs record every request. You can usually find them in your hosting control panel. On a VPS running Apache or Nginx, check the log directory, typically under <code>\/var\/log\/<\/code>. If your site is behind Cloudflare, <em>Security &gt; Analytics<\/em> shows the same information with each visitor&#8217;s network (ASN), country and user agent, even on the free&nbsp;plan.<\/p>\n<p class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2026\/12\/cloudflare-mitigated-vs-served.jpg\" alt=\"Cloudflare Security Analytics: 1.97M requests in 24 hours, mitigated, served from cache and served by origin\" width=\"800\" height=\"268\" loading=\"lazy\" \/><\/p>\n<p>In 24 hours my site received 1.97 million requests. Cloudflare challenged or blocked 919,600 of them, served 583,500 from its cache and passed 468,400 to the origin&nbsp;server.<\/p>\n<p>The busiest IP address wasn&#8217;t one of the bots in GA at all. It belonged to KeenableBot, a verified search crawler running on Google Cloud, with 4,380 requests in a day. It doesn&#8217;t run JavaScript, so it never showed up in Analytics. Only the logs revealed&nbsp;it.<\/p>\n<p>A log line names the client in its User-Agent string:<\/p>\n<pre><code>192.0.2.20 - \"GET \/ HTTP\/1.1\" 200 \"Googlebot\"\n192.0.2.20 - \"GET \/contact\/ HTTP\/1.1\" 200 \"Googlebot\"\n192.0.2.20 - \"GET \/login\/ HTTP\/1.1\" 200 \"Googlebot\"<\/code><\/pre>\n<p>Is that really Googlebot? Anyone can send a request with that User-Agent. Try it yourself with&nbsp;cURL:<\/p>\n<pre><code>curl -A \"Googlebot\" https:\/\/example.com\/<\/code><\/pre>\n<p>The server sees Googlebot, even though the request came from your own computer. Never allow or block visitors based on the User-Agent&nbsp;alone.<\/p>\n<h2>How to check if a crawler is&nbsp;real<\/h2>\n<p>The major crawler operators let you verify their bots by reverse DNS, by published IP lists, or&nbsp;both.<\/p>\n<table>\n<thead>\n<tr>\n<th>Crawler<\/th>\n<th>Company<\/th>\n<th>Purpose<\/th>\n<th>Verification<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Googlebot<\/td>\n<td>Google<\/td>\n<td>Search indexing<\/td>\n<td><a target=\"_blank\" href=\"https:\/\/developers.google.com\/crawling\/docs\/crawlers-fetchers\/verify-google-requests\">googlebot.com or IP&nbsp;ranges<\/a><\/td>\n<\/tr>\n<tr>\n<td>Bingbot<\/td>\n<td>Microsoft<\/td>\n<td>Search indexing<\/td>\n<td>search.msn.com<\/td>\n<\/tr>\n<tr>\n<td>Applebot<\/td>\n<td>Apple<\/td>\n<td>Siri and Spotlight&nbsp;search<\/td>\n<td><a target=\"_blank\" href=\"https:\/\/support.apple.com\/en-us\/119829\">applebot.apple.com or IP&nbsp;ranges<\/a><\/td>\n<\/tr>\n<tr>\n<td>GPTBot<\/td>\n<td>OpenAI<\/td>\n<td>AI training&nbsp;data<\/td>\n<td><a target=\"_blank\" href=\"https:\/\/openai.com\/gptbot.json\">IP ranges<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Let&#8217;s say your logs show a &#8220;Googlebot&#8221; request from 66.249.66.1. On Windows, open Command Prompt and run a reverse&nbsp;lookup:<\/p>\n<pre><code>nslookup 66.249.66.1\nName:    crawl-66-249-66-1.googlebot.com\nAddress:  66.249.66.1<\/code><\/pre>\n<p>The hostname ends in <code>googlebot.com<\/code>. Now look up that hostname and make sure it points back to the same&nbsp;IP:<\/p>\n<pre><code>nslookup crawl-66-249-66-1.googlebot.com\nName:    crawl-66-249-66-1.googlebot.com\nAddress:  66.249.66.1<\/code><\/pre>\n<p>Both checks match, so this is the real Googlebot. On Linux or macOS, <code>host 66.249.66.1<\/code> does the same job. A convincing hostname alone isn&#8217;t enough: anyone who controls an IP address can set its reverse DNS to any name, but they can&#8217;t make Google&#8217;s DNS point back to&nbsp;it.<\/p>\n<p>Cloudflare does this verification for you. Its <code>cf.client.bot<\/code> field, shown as <em>Known Bots<\/em> in the rule builder, is true only for verified crawlers. Add <code>and not cf.client.bot<\/code> to your rules to keep search engines&nbsp;out.<\/p>\n<h3>Can&#8217;t I just block bots in robots.txt?<\/h3>\n<p>You can ask them to stay away from certain pages:<\/p>\n<pre><code>User-agent: *\nDisallow: \/private\/<\/code><\/pre>\n<p>Well-behaved crawlers respect this. Malicious ones ignore it. The robots.txt file is a set of instructions, not access&nbsp;control.<\/p>\n<h2>Why Cloudflare challenges didn&#8217;t stop the&nbsp;bots<\/h2>\n<p>Cloudflare&#8217;s free plan allows 5 custom rules. Mine all challenged suspicious traffic, including a site-wide Managed Challenge for every visitor that wasn&#8217;t a verified&nbsp;bot:<\/p>\n<p class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2026\/12\/cloudfleare-security-rules.jpg\" alt=\"Cloudflare custom rules before the fix: five challenge rules, including a site-wide Managed Challenge\" width=\"800\" height=\"236\" loading=\"lazy\" \/><\/p>\n<p>It looked airtight. Yet the GA numbers kept climbing. The <em>Security actions<\/em> card in Security Analytics showed&nbsp;why:<\/p>\n<p class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2026\/12\/cloudflare-security-actions.jpg\" alt=\"Cloudflare Security actions: 711K Managed Challenges and 452K Managed Challenge Bypassed requests\" width=\"387\" height=\"213\" loading=\"lazy\" \/><\/p>\n<p>Of 711,150 Managed Challenges, 452,060 requests were &#8220;Managed Challenge Bypassed&#8221;. These requests already carried a <code>cf_clearance<\/code> cookie from an earlier, successfully solved challenge, so Cloudflare let them through without checking&nbsp;again.<\/p>\n<p>When I filtered the analytics to just the bypassed requests, none of them had been mitigated. 98% claimed to be Chrome and 63% ran on Linux, the same fingerprint as the fake GA users. A bot running a real Chrome browser solves the Managed Challenge once, usually without any visible puzzle, and then reuses the cookie. According to <a target=\"_blank\" href=\"https:\/\/developers.cloudflare.com\/cloudflare-challenges\/challenge-types\/challenge-pages\/challenge-passage\/\">Cloudflare&#8217;s documentation<\/a>, the cookie lasts 30 minutes by&nbsp;default.<\/p>\n<p>A challenge filters out simple scripts. It doesn&#8217;t stop automated real&nbsp;browsers.<\/p>\n<h3>What worked: blocking by network, not by&nbsp;behavior<\/h3>\n<p>The sampled logs in Security Analytics showed where the bypassed traffic came from: data center networks such as DigitalOcean. Real people browse from home and mobile ISPs, not from rented servers. I changed my rules in three&nbsp;ways.<\/p>\n<p><strong>1. Block cloud hosting networks instead of challenging them.<\/strong> This expression matches the ASNs of Alibaba Cloud (45102), HostRoyale (203020), Microsoft Azure (8075), DigitalOcean (14061), Hetzner (24940), OVH (16276), Linode\/Akamai (63949), Vultr (20473) and Amazon AWS (16509, 14618), but leaves verified crawlers&nbsp;alone:<\/p>\n<pre><code>(ip.src.asnum in {45102 203020 8075 14061 24940 16276 63949 20473 16509 14618} and not cf.client.bot)<\/code><\/pre>\n<p><strong>2. Challenge desktop Linux Chrome interactively.<\/strong> Only 1,500 interactive challenges were solved in a day, while hundreds of thousands of requests passed managed&nbsp;challenges. I added the Linux user agent to an existing rule, because all 5 free slots were&nbsp;taken:<\/p>\n<pre><code>(not cf.client.bot and ((http.user_agent contains \"Windows NT\" and (http.user_agent contains \"Chrome\/13\" or http.user_agent contains \"Chrome\/14\")) or http.user_agent contains \"X11; Linux x86_64\"))<\/code><\/pre>\n<p><strong>3. Put the Block rule first.<\/strong> Cloudflare stops evaluating rules at the first Block or challenge that matches. If the challenge rule ran first, a bot that solved it would never reach the Block&nbsp;rule.<\/p>\n<p class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2026\/12\/cloudflare-security-rules-after.jpg\" alt=\"Cloudflare custom rules after the fix: Bot ASN block rule first, with Block action\" width=\"800\" height=\"232\" loading=\"lazy\" \/><\/p>\n<p>The Block rule started working immediately. Within half an hour it had stopped about 1,900 requests, and the logs showed the same headless Chrome fingerprint from&nbsp;DigitalOcean:<\/p>\n<p class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2026\/12\/cloudflare-blocked-request.jpg\" alt=\"Cloudflare sampled log: headless Chrome on Linux from DigitalOcean ASN 14061 blocked by a custom rule\" width=\"800\" height=\"357\" loading=\"lazy\" \/><\/p>\n<p>Blocking hosting networks has a cost. Some VPN users and a few legitimate services run on the same networks. On a content site, that trade-off is usually worth it. On a SaaS app or an API, check your logs for good traffic from these ASNs&nbsp;first.<\/p>\n<h3>Keep the remaining bots out of your&nbsp;analytics<\/h3>\n<p>The Chrome-on-Windows bots came through residential IP addresses all over the world. Cloudflare can&#8217;t separate them from real visitors without hurting real visitors, too. Since these bots stayed for about one second and almost never interacted with the page, you can load the analytics tag only after a real&nbsp;interaction:<\/p>\n<pre><code>&lt;script&gt;\n(function () {\n    var loaded = false;\n    function loadAnalytics() {\n        if (loaded) return;\n        loaded = true;\n        var s = document.createElement('script');\n        s.async = true;\n        s.src = 'https:\/\/www.googletagmanager.com\/gtag\/js?id=G-XXXXXXXXXX';\n        document.head.appendChild(s);\n        window.dataLayer = window.dataLayer || [];\n        window.gtag = function () { dataLayer.push(arguments); };\n        gtag('js', new Date());\n        gtag('config', 'G-XXXXXXXXXX');\n    }\n    ['scroll', 'pointerdown', 'keydown', 'touchstart'].forEach(function (e) {\n        window.addEventListener(e, loadAnalytics, { once: true, passive: true });\n    });\n})();\n&lt;\/script&gt;<\/code><\/pre>\n<p>Replace <code>G-XXXXXXXXXX<\/code> with your measurement ID. This doesn&#8217;t stop the bots, but it keeps them out of your reports. The trade-off: real visitors who leave without scrolling, clicking or typing won&#8217;t be counted&nbsp;either.<\/p>\n<h2>\ud83c\udf6f Catch form spam with a&nbsp;honeypot<\/h2>\n<p>If your contact form gets flooded with spam, try a honeypot before making everyone solve a CAPTCHA. Add an extra text field and hide it with CSS. Humans won&#8217;t see it, but many spam scripts fill in every&nbsp;field.<\/p>\n<pre><code>&lt;form action=\"contact.php\" method=\"post\"&gt;\n    &lt;label for=\"email\"&gt;Email:&lt;\/label&gt;\n    &lt;input type=\"email\" name=\"email\" id=\"email\" required&gt;\n    &lt;label for=\"message\"&gt;Message:&lt;\/label&gt;\n    &lt;textarea name=\"message\" id=\"message\" required&gt;&lt;\/textarea&gt;\n    &lt;div style=\"display:none\" aria-hidden=\"true\"&gt;\n        &lt;input type=\"text\"\n               name=\"website_url\"\n               tabindex=\"-1\"\n               autocomplete=\"off\"&gt;\n    &lt;\/div&gt;\n    &lt;button type=\"submit\"&gt;Send&lt;\/button&gt;\n&lt;\/form&gt;<\/code><\/pre>\n<p>Check the extra field in your PHP script before processing the&nbsp;message:<\/p>\n<pre><code>&lt;?php\n$website = $_POST['website_url'] ?? '';\nif (!is_string($website) || trim($website) !== '') {\n    http_response_code(400);\n    exit('Invalid submission.');\n}\n\/\/ Continue with normal form validation.\n?&gt;<\/code><\/pre>\n<p>The check must run on the server. JavaScript validation won&#8217;t help against scripts that post directly to your PHP file. Test the form with browser autofill and password managers, since some fill hidden fields by&nbsp;mistake.<\/p>\n<p class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2026\/12\/bot-website-traffic.jpg\" alt=\"bot website traffic\" width=\"400\" height=\"268\" loading=\"lazy\" \/><\/p>\n<p>A honeypot stops basic form spam, but smarter bots skip hidden fields. If spam continues, add rate limiting or Cloudflare&nbsp;Turnstile.<\/p>\n<h2>Other ways to reduce unwanted bot&nbsp;traffic<\/h2>\n<ul>\n<li><strong>Rate limiting:<\/strong> Limit how many requests one IP can make to a page or endpoint. It works against aggressive scrapers, but not against bot networks that send a few requests from thousands of&nbsp;IPs.<\/li>\n<li><strong>Caching:<\/strong> Serve public pages from the <abbr title=\"Content Delivery Network like Cloudflare\">CDN<\/abbr> cache so repeated requests don&#8217;t reach your&nbsp;server.<\/li>\n<li><strong>Server-side validation:<\/strong> Never rely on JavaScript alone to protect forms and&nbsp;APIs.<\/li>\n<li><strong>Review your rules weekly:<\/strong> Bot operators change user agents and networks when they get blocked. Mine had switched from a Mac fingerprint to Linux within a few&nbsp;weeks.<\/li>\n<\/ul>\n<p>Be careful with country-wide blocks and strict IP limits. An entire office, school or mobile network may share one IP address. You could end up blocking hundreds of real people because of one suspicious&nbsp;visitor.<\/p>\n<h2>Check your traffic before celebrating a&nbsp;spike<\/h2>\n<p>More traffic doesn&#8217;t always mean more readers or customers. Before you pay for a traffic source or redesign pages based on your reports, check where the numbers come&nbsp;from.<\/p>\n<p>Start in GA4 with channels, then browser and OS, then Realtime events. Confirm what you find in your server or Cloudflare logs. If challenges are being bypassed, block the networks the bots run on. You don&#8217;t need expensive bot detection software for this. The free tools are enough to spot the&nbsp;problem.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>5 days ago a website I run with free online tools went from about 5,000 to 40,000 daily users in Google Analytics in four days. Nobody shared it and no article went viral. Almost every new visitor arrived as &#8220;Direct&#8221; traffic and left within a few&nbsp;seconds. It was a bot flood. This article shows how &hellip; <a href=\"https:\/\/html-online.com\/articles\/detect-website-bot-traffic\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Detect Website Bot Traffic&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2715","post","type-post","status-publish","format-standard","hentry","category-articles"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Detect Website Bot Traffic - HTML Online<\/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:\/\/html-online.com\/articles\/detect-website-bot-traffic\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Detect Website Bot Traffic - HTML Online\" \/>\n<meta property=\"og:description\" content=\"5 days ago a website I run with free online tools went from about 5,000 to 40,000 daily users in Google Analytics in four days. Nobody shared it and no article went viral. Almost every new visitor arrived as &#8220;Direct&#8221; traffic and left within a few&nbsp;seconds. It was a bot flood. This article shows how &hellip; Continue reading &quot;Detect Website Bot Traffic&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/html-online.com\/articles\/detect-website-bot-traffic\/\" \/>\n<meta property=\"og:site_name\" content=\"HTML Online\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/htmlcoding\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-12-02T11:22:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-12-02T11:24:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2026\/12\/increased-bot-traffic.jpg\" \/>\n<meta name=\"author\" content=\"HTML Editor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"HTML Editor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/html-online.com\\\/articles\\\/detect-website-bot-traffic\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/html-online.com\\\/articles\\\/detect-website-bot-traffic\\\/\"},\"author\":{\"name\":\"HTML Editor\",\"@id\":\"https:\\\/\\\/html-online.com\\\/articles\\\/#\\\/schema\\\/person\\\/019f9afa07f209153df0fecfc90b8c1d\"},\"headline\":\"Detect Website Bot Traffic\",\"datePublished\":\"2026-12-02T11:22:13+00:00\",\"dateModified\":\"2026-12-02T11:24:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/html-online.com\\\/articles\\\/detect-website-bot-traffic\\\/\"},\"wordCount\":2026,\"publisher\":{\"@id\":\"https:\\\/\\\/html-online.com\\\/articles\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/html-online.com\\\/articles\\\/detect-website-bot-traffic\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/html-online.com\\\/articles\\\/wp-content\\\/uploads\\\/2026\\\/12\\\/increased-bot-traffic.jpg\",\"articleSection\":[\"Articles\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/html-online.com\\\/articles\\\/detect-website-bot-traffic\\\/\",\"url\":\"https:\\\/\\\/html-online.com\\\/articles\\\/detect-website-bot-traffic\\\/\",\"name\":\"Detect Website Bot Traffic - HTML Online\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/html-online.com\\\/articles\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/html-online.com\\\/articles\\\/detect-website-bot-traffic\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/html-online.com\\\/articles\\\/detect-website-bot-traffic\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/html-online.com\\\/articles\\\/wp-content\\\/uploads\\\/2026\\\/12\\\/increased-bot-traffic.jpg\",\"datePublished\":\"2026-12-02T11:22:13+00:00\",\"dateModified\":\"2026-12-02T11:24:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/html-online.com\\\/articles\\\/detect-website-bot-traffic\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/html-online.com\\\/articles\\\/detect-website-bot-traffic\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/html-online.com\\\/articles\\\/detect-website-bot-traffic\\\/#primaryimage\",\"url\":\"https:\\\/\\\/html-online.com\\\/articles\\\/wp-content\\\/uploads\\\/2026\\\/12\\\/increased-bot-traffic.jpg\",\"contentUrl\":\"https:\\\/\\\/html-online.com\\\/articles\\\/wp-content\\\/uploads\\\/2026\\\/12\\\/increased-bot-traffic.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/html-online.com\\\/articles\\\/detect-website-bot-traffic\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/html-online.com\\\/articles\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Detect Website Bot Traffic\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/html-online.com\\\/articles\\\/#website\",\"url\":\"https:\\\/\\\/html-online.com\\\/articles\\\/\",\"name\":\"HTML Online Articles\",\"description\":\"Tips, tricks, tutorials\u2026\",\"publisher\":{\"@id\":\"https:\\\/\\\/html-online.com\\\/articles\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/html-online.com\\\/articles\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/html-online.com\\\/articles\\\/#organization\",\"name\":\"HTML Online\",\"url\":\"https:\\\/\\\/html-online.com\\\/articles\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/html-online.com\\\/articles\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/html-online.com\\\/articles\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/logo.jpg\",\"contentUrl\":\"https:\\\/\\\/html-online.com\\\/articles\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/logo.jpg\",\"width\":350,\"height\":350,\"caption\":\"HTML Online\"},\"image\":{\"@id\":\"https:\\\/\\\/html-online.com\\\/articles\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/htmlcoding\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/ferencdenes\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCn38Jw1sJzbjVHO95Zp0Sww\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/html-online.com\\\/articles\\\/#\\\/schema\\\/person\\\/019f9afa07f209153df0fecfc90b8c1d\",\"name\":\"HTML Editor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7c1d8f5e7f1dc3e261766a96ac50c6a907fa5c236e87ab73379c57c9114e92cd?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7c1d8f5e7f1dc3e261766a96ac50c6a907fa5c236e87ab73379c57c9114e92cd?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7c1d8f5e7f1dc3e261766a96ac50c6a907fa5c236e87ab73379c57c9114e92cd?s=96&d=mm&r=g\",\"caption\":\"HTML Editor\"},\"description\":\"In 2013, while wrestling with a mountain of client articles and an uncooperative CMS, I decided enough was enough. So, I created an online HTML editor purely out of necessity (and mild frustration). What began as a tool for my own sanity quickly evolved into a gift for the world\u2014or at least for anyone trying to avoid breaking their website's code. Since then, I've shared my tech notes on my blog, which serves as both a handy reference and a digital diary of the adventures and misadventures of a coder.\",\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/ferencdenes\\\/\",\"https:\\\/\\\/www.youtube.com\\\/@htmlg\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Detect Website Bot Traffic - HTML Online","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:\/\/html-online.com\/articles\/detect-website-bot-traffic\/","og_locale":"en_GB","og_type":"article","og_title":"Detect Website Bot Traffic - HTML Online","og_description":"5 days ago a website I run with free online tools went from about 5,000 to 40,000 daily users in Google Analytics in four days. Nobody shared it and no article went viral. Almost every new visitor arrived as &#8220;Direct&#8221; traffic and left within a few&nbsp;seconds. It was a bot flood. This article shows how &hellip; Continue reading \"Detect Website Bot Traffic\"","og_url":"https:\/\/html-online.com\/articles\/detect-website-bot-traffic\/","og_site_name":"HTML Online","article_publisher":"https:\/\/www.facebook.com\/htmlcoding\/","article_published_time":"2026-12-02T11:22:13+00:00","article_modified_time":"2026-12-02T11:24:01+00:00","og_image":[{"url":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2026\/12\/increased-bot-traffic.jpg","type":"","width":"","height":""}],"author":"HTML Editor","twitter_card":"summary_large_image","twitter_misc":{"Written by":"HTML Editor","Estimated reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/html-online.com\/articles\/detect-website-bot-traffic\/#article","isPartOf":{"@id":"https:\/\/html-online.com\/articles\/detect-website-bot-traffic\/"},"author":{"name":"HTML Editor","@id":"https:\/\/html-online.com\/articles\/#\/schema\/person\/019f9afa07f209153df0fecfc90b8c1d"},"headline":"Detect Website Bot Traffic","datePublished":"2026-12-02T11:22:13+00:00","dateModified":"2026-12-02T11:24:01+00:00","mainEntityOfPage":{"@id":"https:\/\/html-online.com\/articles\/detect-website-bot-traffic\/"},"wordCount":2026,"publisher":{"@id":"https:\/\/html-online.com\/articles\/#organization"},"image":{"@id":"https:\/\/html-online.com\/articles\/detect-website-bot-traffic\/#primaryimage"},"thumbnailUrl":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2026\/12\/increased-bot-traffic.jpg","articleSection":["Articles"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/html-online.com\/articles\/detect-website-bot-traffic\/","url":"https:\/\/html-online.com\/articles\/detect-website-bot-traffic\/","name":"Detect Website Bot Traffic - HTML Online","isPartOf":{"@id":"https:\/\/html-online.com\/articles\/#website"},"primaryImageOfPage":{"@id":"https:\/\/html-online.com\/articles\/detect-website-bot-traffic\/#primaryimage"},"image":{"@id":"https:\/\/html-online.com\/articles\/detect-website-bot-traffic\/#primaryimage"},"thumbnailUrl":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2026\/12\/increased-bot-traffic.jpg","datePublished":"2026-12-02T11:22:13+00:00","dateModified":"2026-12-02T11:24:01+00:00","breadcrumb":{"@id":"https:\/\/html-online.com\/articles\/detect-website-bot-traffic\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/html-online.com\/articles\/detect-website-bot-traffic\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/html-online.com\/articles\/detect-website-bot-traffic\/#primaryimage","url":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2026\/12\/increased-bot-traffic.jpg","contentUrl":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2026\/12\/increased-bot-traffic.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/html-online.com\/articles\/detect-website-bot-traffic\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/html-online.com\/articles\/"},{"@type":"ListItem","position":2,"name":"Detect Website Bot Traffic"}]},{"@type":"WebSite","@id":"https:\/\/html-online.com\/articles\/#website","url":"https:\/\/html-online.com\/articles\/","name":"HTML Online Articles","description":"Tips, tricks, tutorials\u2026","publisher":{"@id":"https:\/\/html-online.com\/articles\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/html-online.com\/articles\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/html-online.com\/articles\/#organization","name":"HTML Online","url":"https:\/\/html-online.com\/articles\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/html-online.com\/articles\/#\/schema\/logo\/image\/","url":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2022\/06\/logo.jpg","contentUrl":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2022\/06\/logo.jpg","width":350,"height":350,"caption":"HTML Online"},"image":{"@id":"https:\/\/html-online.com\/articles\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/htmlcoding\/","https:\/\/www.linkedin.com\/in\/ferencdenes\/","https:\/\/www.youtube.com\/channel\/UCn38Jw1sJzbjVHO95Zp0Sww"]},{"@type":"Person","@id":"https:\/\/html-online.com\/articles\/#\/schema\/person\/019f9afa07f209153df0fecfc90b8c1d","name":"HTML Editor","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/7c1d8f5e7f1dc3e261766a96ac50c6a907fa5c236e87ab73379c57c9114e92cd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/7c1d8f5e7f1dc3e261766a96ac50c6a907fa5c236e87ab73379c57c9114e92cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7c1d8f5e7f1dc3e261766a96ac50c6a907fa5c236e87ab73379c57c9114e92cd?s=96&d=mm&r=g","caption":"HTML Editor"},"description":"In 2013, while wrestling with a mountain of client articles and an uncooperative CMS, I decided enough was enough. So, I created an online HTML editor purely out of necessity (and mild frustration). What began as a tool for my own sanity quickly evolved into a gift for the world\u2014or at least for anyone trying to avoid breaking their website's code. Since then, I've shared my tech notes on my blog, which serves as both a handy reference and a digital diary of the adventures and misadventures of a coder.","sameAs":["https:\/\/www.linkedin.com\/in\/ferencdenes\/","https:\/\/www.youtube.com\/@htmlg"]}]}},"_links":{"self":[{"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/posts\/2715","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/comments?post=2715"}],"version-history":[{"count":2,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/posts\/2715\/revisions"}],"predecessor-version":[{"id":2717,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/posts\/2715\/revisions\/2717"}],"wp:attachment":[{"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/media?parent=2715"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/categories?post=2715"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/tags?post=2715"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}