Friday, January 17, 2025

robots.txt syntax to exclude specific bots

 https://stackoverflow.com/questions/56049660/how-to-exclude-all-robots-except-googlebot-and-bingbot-with-both-robots-txt-and

So for allowing googlebot and bingbot and nothing else, the syntax would be:

User-agent: *
Disallow: /

User-agent: Bingbot
Disallow:

User-agent: Googlebot
Disallow:

No comments:

Post a Comment