Site AI Auditby Internet Solutions

Verify Googlebot: How to Spot Fake Search Crawlers

9 tháng 11, 20268 phút đọcBảo mật & SSL
Verify Googlebot: How to Spot Fake Search Crawlers

Short answer: Anyone can send a request that says “Googlebot” in its user agent. To be sure that a visitor is a real Google crawler, look up the host name of its IP address, check that it ends in googlebot.com or google.com, and then look up that name to confirm that it returns the same IP address. Block or limit visitors that fail this check.

Why imposters pretend to be Googlebot

Website owners usually welcome search crawlers, so many security rules and firewalls let them through. Attackers know this. A scraper, a vulnerability scanner or a bot that hunts for contact forms may copy the Googlebot user agent in the hope that it is treated kindly. Others use the name to get around rate limits, paywalls or country blocks that real visitors face.

The user agent is only a text label sent by the client. It proves nothing, just as a name badge printed at home proves nothing. The practical problem for you is twofold. Fake crawlers waste server time, and if you block everything that mentions Googlebot, you also block the real thing, which harms your search visibility.

Signs that a Googlebot visit may be fake

The two-step DNS check

Google documents a reliable method that does not depend on any list of addresses staying current. It works like calling a company back on its official number.

  1. Take the IP address from your server log. This is the address that connected to your server, not a value from a header that the client can change.
  2. Run a reverse DNS lookup. The result should be a host name that ends in googlebot.com or google.com. On Linux or macOS you can use the host command with the IP address.
  3. Run a forward lookup on that host name. The result must include the same IP address you started with.
  4. Decide. If both steps match, the visitor is a real Google crawler. If either step fails, treat it as an imposter.

The second step matters. An attacker who controls the reverse DNS of their own IP can make it say anything, but they cannot make Google’s DNS return their address. The idea is the same as in the article on reverse DNS for email, where a matching forward and reverse record shows that a name and an address belong together.

Using published IP ranges

Google also publishes lists of the IP ranges that its crawlers use, in a machine-readable format. This is useful for firewalls and bulk checks, because a lookup for every request is slow. Download the list on a schedule, refresh it regularly and compare visitor addresses with it. Do not copy an old list into a configuration and forget it, because ranges change.

Remember that Google uses several crawlers, such as those for images, ads and other products, and each has its own name. Check the current documentation for the list of user agents and for the ranges that apply to each.

What to do with fake crawlers

For wider guidance on unwanted crawlers, read the article on bad bots and aggressive crawlers.

Checking from Search Console

The Crawl Stats report in Google Search Console shows how many requests Googlebot made to your site, which response codes it received and how quickly your server answered. If your log shows many more “Googlebot” requests than this report, the difference is probably fake traffic. The guide to the Crawl Stats report explains how to read it.

Practical examples

Consider a small shop whose log shows 4,000 requests a day from “Googlebot”. The Crawl Stats report shows only 600. The difference of 3,400 is not Google. A closer look at the log shows that most of the extra requests come from two address ranges that belong to a hosting company, they all request product pages in alphabetical order and none of them ever fetches an image or a style sheet. This is a scraper copying the catalogue. Blocking those two ranges at the firewall removes the load, and the real crawler is untouched.

In another case a membership site allows Googlebot to see article text that is otherwise behind a login, so that the articles can be indexed. If the rule is based on the user agent alone, any visitor who changes the user agent reads the whole archive for free. Verifying the crawler with a DNS check, or at least with the published IP ranges, closes that gap. Remember also that showing content to crawlers that is hidden from users must follow Google’s rules for paywalled content, so read the current guidelines before you set it up.

Common mistakes

Automating the check

If you maintain your own server, the DNS check is easy to script. A short program can read new lines from the access log, select those that mention a major search bot, run the two lookups and write the results into a cache so that each address is checked only once per day. Addresses that fail go to a block list that your firewall reads. If you use a managed firewall or a content delivery network, look for a “verified bots” or “bot management” setting instead, which does the same work for you. Either way, review the block list from time to time and remove entries that are old, because addresses are reused by other customers of hosting companies.

How Site AI Audit helps

Site AI Audit does not read your server logs, so it cannot tell you which visitors are fake. It checks the public side that decides what real crawlers can see: robots.txt, the sitemap, noindex rules, redirects and server response time, along with security headers and SSL. Run it before you tighten bot rules, so that you know your robots.txt and sitemap are in order. The free check covers up to 50 pages and needs no sign-up. You can run a free check of your website or look at the plans.

Related reading

The bottom line

A user agent is a claim, not proof. Confirm real Google crawlers with a reverse and forward DNS check or the published ranges, and treat everything else with caution. This protects your server from scrapers and keeps the real Googlebot welcome.

FAQ

Can I trust the user agent in my logs?

No. It is text supplied by the client and can be copied by anyone. Use it as a hint and confirm important cases with a DNS check.

Will blocking fake Googlebot hurt my rankings?

Not if you block only visitors that fail verification. Real Googlebot passes the check, so your indexing is not affected.

Do I need to verify every request?

No. Verify when you see suspicious volume or behaviour, or let a firewall do it for you. Checking every request by hand is not practical.

Are other search engines verified the same way?

Major search engines usually document a similar reverse and forward DNS method or publish IP ranges. Check each engine’s own documentation for the host names to expect.

What if a real crawler is blocked by mistake?

Check the Crawl Stats report and the URL Inspection tool in Search Console, then loosen the rule. Real crawlers back off when blocked, so fix mistakes quickly.

#Crawling#Technical SEO#Website security
Kiểm tra website của bạn.Trang web của bạn có được bảo vệ khỏi tấn công không?
Bắt đầu miễn phí
Internet Solutions

Sản phẩm khác từ đội ngũ chúng tôi

Do Internet Solutions phát triển. Hãy thử các sản phẩm khác của chúng tôi — mỗi sản phẩm giúp bạn tiết kiệm thời gian theo một cách riêng.

internet-solutions.net ↗
01Tự động đăng mạng xã hội
PostRSS

Bài mới từ nguồn cấp RSS của bạn được tự động đăng lên Facebook, X, LinkedIn, Telegram và hơn 60 mạng khác.

Gói miễn phí · từ 2014Truy cập →
02Chat trực tuyến AI cho website
Talkmio

Website của bạn trả lời khách truy cập 24/7 từ chính nội dung của bạn, bằng ngôn ngữ của họ.

Gói miễn phí · không cần thẻTruy cập →
03Trợ lý AI
Ask Mio

Trò chuyện, viết code, thiết kế, viết bài và nghiên cứu. Mio chọn mô hình tốt nhất cho từng việc.

Gói miễn phíTruy cập →
04Lái tự động AI cho blog và mạng xã hội
AI Blog Autopilot

AI viết bài SEO dài 2.000–3.000 từ và chia sẻ từng bài lên hơn 60 mạng xã hội.

3 bài đầu tiên miễn phíTruy cập →
05Thu thập SEO chuyên sâu
Site SEO AI Audit

Thu thập SEO toàn diện trên 7 lĩnh vực, gồm cả khả năng hiển thị trong tìm kiếm AI, với cách sửa xếp theo mức tác động.

Lần kiểm tra đầu tiên miễn phíTruy cập →
06Nguồn cấp RSS và sản phẩm
RSS Feed Creator

Tạo RSS từ bất kỳ trang web nào, cùng nguồn cấp sản phẩm cho Google và Meta tự động cập nhật.

Gói miễn phíTruy cập →
07Phát triển website và SEO
Internet Solutions

Website, cửa hàng trực tuyến và hệ thống theo yêu cầu, do đội ngũ của chúng tôi thiết kế, xây dựng và vận hành.

Từ 2011Truy cập →