Script or HTTP library · run by Anyone
Python-urllib in your traffic
Python-urllib is the user agent of Python's built-in web library. Scripts that don't name themselves show up like this.
Safe to block It sends no visitors. Unless you use it on purpose, blocking it only saves server time.
Python-urllib on real sites
Counted on the sites we run, Nov 29 to Dec 5, 2026. Updated daily. How we count.
How to block Python-urllib
robots.txt won't help: scripts don't read it. Block the user agent instead.
Cloudflare (WAF custom rule, action Block)
(http.user_agent contains "Python-urllib")
nginx
if ($http_user_agent ~* "Python-urllib") { return 444; }
Or copy the prompt Growbeat writes for each heavy bot on your site, and your AI applies the right rule for where your app lives.
Questions
What is Python-urllib?
Python-urllib is the user agent of Python's built-in web library. Scripts that don't name themselves show up like this.
Should I block Python-urllib?
Safe to block. It sends no visitors. Unless you use it on purpose, blocking it only saves server time.
Can robots.txt block Python-urllib?
No. Scripts don't read robots.txt. Block the user agent at Cloudflare, in nginx or in your app.
More Scripts and HTTP libraries
See which bots hit your site
Real visitors, bots and AI assistants, every day, with a prompt for your AI for each problem. Free for one site.