-
Home
-
User Agent Directory
- GTmetrix
GTmetrix
What is GTmetrix?
GTmetrix is a popular website performance testing tool that analyzes page load speed and provides optimization recommendations. The bot uses Google's Lighthouse and custom metrics to evaluate performance, structure, and user experience. GTmetrix provides detailed waterfall charts, video capture of page loads, and historical performance tracking. The service is widely used by developers and SEO professionals to identify performance bottlenecks and monitor improvements over time. With both free and paid options, GTmetrix has become a standard tool for web performance optimization.
User Agent String
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 GTmetrix
How to Control GTmetrix
Block Completely
To prevent GTmetrix from accessing your entire website, add this to your robots.txt file:
Block Specific Directories
To restrict access to certain parts of your site while allowing others:
Set Crawl Delay
To slow down the crawl rate (note: not all bots respect this directive):
How to Verify GTmetrix
Tests originate from GTmetrix servers
Learn more in the official documentation.
Detection Patterns
Multiple ways to detect GTmetrix in your application:
Basic Pattern
/GTmetrix/i
Strict Pattern
/^Mozilla/5\.0 \(X11; Linux x86_64\) AppleWebKit/537\.36 \(KHTML, like Gecko\) Chrome/120\.0\.0\.0 Safari/537\.36 GTmetrix$/
Flexible Pattern
/GTmetrix[\s\/]?[\d\.]*?/i
Vendor Match
/.*GTmetrix.*GTmetrix/i
Implementation Examples
Should You Block This Bot?
Recommendations based on your website type:
| Site Type | Recommendation | Reasoning |
|---|---|---|
| E-commerce | Optional | Evaluate based on bandwidth usage vs. benefits |
| Blog/News | Allow | Increases content reach and discoverability |
| SaaS Application | Block | No benefit for application interfaces; preserve resources |
| Documentation | Selective | Allow for public docs, block for internal docs |
| Corporate Site | Limit | Allow for public pages, block sensitive areas like intranets |
Advanced robots.txt Configurations
E-commerce Site Configuration
Publishing/Blog Configuration
SaaS/Application Configuration
Quick Reference
User Agent Match
GTmetrix
Robots.txt Name
GTmetrix
Category
monitoring, seo
Respects robots.txt
Yes