-
Home
-
User Agent Directory
- PetalBot
PetalBot
What is PetalBot?
PetalBot is the web crawler for Huawei's Petal Search, a search engine developed as part of Huawei's push for technological independence. Launched as Huawei faced restrictions on using Google services, Petal Search has become the default search engine on Huawei devices. PetalBot indexes content globally with particular strength in Asian markets. The crawler supports modern web standards and respects robots.txt directives. For developers and content creators targeting Huawei's ecosystem of over 700 million devices, PetalBot represents an important channel for content discovery.
User Agent String
Mozilla/5.0 (Linux; Android 7.0;) AppleWebKit/537.36 (KHTML, like Gecko) Mobile Safari/537.36 (compatible; PetalBot;+https://webmaster.petalsearch.com/site/petalbot)
How to Control PetalBot
Block Completely
To prevent PetalBot 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 PetalBot
Check published IP ranges and user agent
Learn more in the official documentation.
Detection Patterns
Multiple ways to detect PetalBot in your application:
Basic Pattern
/PetalBot/i
Strict Pattern
/^Mozilla/5\.0 \(Linux; Android 7\.0;\) AppleWebKit/537\.36 \(KHTML, like Gecko\) Mobile Safari/537\.36 \(compatible; PetalBot;\+https\://webmaster\.petalsearch\.com/site/petalbot\)$/
Flexible Pattern
/PetalBot[\s\/]?[\d\.]*?/i
Vendor Match
/.*Huawei.*PetalBot/i
Implementation Examples
Should You Block This Bot?
Recommendations based on your website type:
| Site Type | Recommendation | Reasoning |
|---|---|---|
| E-commerce | Allow | Essential for product visibility in search results |
| Blog/News | Allow | Increases content reach and discoverability |
| SaaS Application | Block | No benefit for application interfaces; preserve resources |
| Documentation | Allow | Improves documentation discoverability for developers |
| Corporate Site | Allow | 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
PetalBot
Robots.txt Name
PetalBot
Category
search
Respects robots.txt
Yes