What is GTmetrix?

GTmetrix is a bot in the monitoring and analytics bots category, operated by GTmetrix.

Bot name
GTmetrix
Operator
GTmetrix
Type
Bot
Respects robots.txt
Not confirmed
robots.txt user agent
GTmetrix
Signs requests (Web Bot Auth)
No

About GTmetrix

GTmetrix is a free tool that analyzes a page's speed performance. Using PageSpeed and YSlow, GTmetrix generates scores for pages and offers actionable recommendations on how to fix them.

Monitoring bots check uptime, performance and page changes on behalf of a site owner or a third party. Allow the services you run yourself and exclude them from analytics so they do not inflate page views.

GTmetrix user agent

GTmetrix identifies itself with this user agent string:

  • Mozilla/5.0 (X11; Linux x86_64; GTmetrix https://gtmetrix.com/) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36

Anyone can copy a user agent string. Transfon Security also checks where each request comes from, so a request that claims to be a known crawler but comes from the wrong network is treated as a fake, not as the real crawler.

How to block GTmetrix in robots.txt

We have not confirmed whether GTmetrix follows robots.txt. Add a rule, then check your logs to see that it stopped. robots.txt is a plain text file at the root of your domain, such as https://example.com/robots.txt.

Block GTmetrix from the whole site

User-agent: GTmetrix
Disallow: /

Block GTmetrix from some folders

User-agent: GTmetrix
Disallow: /private/
Disallow: /search

Allow GTmetrix only on some folders

User-agent: GTmetrix
Allow: /blog/
Disallow: /

Allow GTmetrix and block other crawlers

User-agent: GTmetrix
Allow: /

User-agent: *
Disallow: /

Things to know

  • Each host needs its own file. Rules on www.example.com do not apply to shop.example.com.
  • A crawler obeys only the most specific group that names it. Once you add a User-agent: GTmetrix group, GTmetrix ignores your User-agent: * rules, so repeat any that should still apply.
  • The user agent name is not case sensitive. We take GTmetrix from GTmetrix's user agent; check GTmetrix's own documentation if it publishes a different robots.txt name.
  • Crawlers cache robots.txt, so changes can take up to a day to apply. Disallow stops crawling but does not remove pages already collected or indexed.

Limits of robots.txt

  1. GTmetrix may not follow the rule. robots.txt is a request that nothing enforces, and we have not confirmed that GTmetrix follows it. Check your logs after adding a rule.
  2. The user agent could be fake. robots.txt matches the name a request claims. Anyone can send GTmetrix's user agent, and a scraper using it is not bound by GTmetrix's robots.txt policy. Only checking the source network tells a real GTmetrix from a fake one.

Treat robots.txt as a statement of your policy, and enforce it where requests arrive.

Who should care about GTmetrix

Publishers

Allow GTmetrix if it is a service you use, and keep its visits out of page views and ad requests either way.

Transfon Security for publishers

Media buyers and advertisers

GTmetrix is not a person. Exclude it from campaign and conversion data so reports reflect real visitors.

Transfon Security for advertisers

E-commerce

Allow GTmetrix only if it works for your store, and keep it away from cart and checkout.

Transfon Security for e-commerce

SaaS and APIs

If GTmetrix is a service you use, allow it on the endpoints it needs and block it elsewhere.

Transfon Security for SaaS and APIs

Block GTmetrix with Transfon Security

robots.txt is a request, not an enforcement. Transfon Security shows GTmetrix by name in the Top Bots report, so you can see how often it visits and which pages it reads. Block or allow it with a User Agent rule, or slow it down with a rate limit decision rule.

Transfon Security

Control GTmetrix on your site

  • See every GTmetrix visit and the pages it reads
  • Spot bots that fake trusted crawler names
  • Block, allow or rate limit GTmetrix with one rule
  • Works with or without robots.txt support

Frequently asked questions

What is GTmetrix?

GTmetrix is a bot in the monitoring and analytics bots category, operated by GTmetrix. GTmetrix is a free tool that analyzes a page's speed performance. Using PageSpeed and YSlow, GTmetrix generates scores for pages and offers actionable recommendations on how to fix them.

Does GTmetrix respect robots.txt?

We have not confirmed whether GTmetrix follows robots.txt. Add a robots.txt rule, then check your logs to see that it stopped, and block it by user agent if it did not.

How do I block GTmetrix?

Add "User-agent: GTmetrix" followed by "Disallow: /" to the robots.txt file at the root of your site. To enforce it, block requests whose user agent contains "GTmetrix" at your WAF. In Transfon Security that is one User Agent block rule.

Is robots.txt enough to block GTmetrix?

No. robots.txt is voluntary, so GTmetrix may not follow it, and anyone can send GTmetrix's user agent, so a fake GTmetrix ignores your rule. Enforce the rule where requests arrive, at your WAF, and check the source network.

Should I block GTmetrix?

Monitoring bots check uptime, performance and page changes on behalf of a site owner or a third party. Allow the services you run yourself and exclude them from analytics so they do not inflate page views.

Related bots

All monitoring and analytics bots · Full bot directory

See Which Bots Visit Your Site

Transfon Security identifies every bot in this directory in your traffic reports, flags fake search crawlers, and lets you allow, block or rate limit each bot.

Stay ahead of the publishing curve

Privacy, security, monetization, and performance insights. A few emails a month, no spam.

By subscribing you agree to our privacy policy.