How to block Bytespider
Add this rule to your robots.txt at the root of your domain:
User-agent: Bytespider Disallow: /
Because Bytespider reportedly ignores robots.txt at times, WAF-level blocking by autonomous-system number is the only enforcement that holds.
How to allow Bytespider
If you want Bytespider to crawl your site, make sure no rule disallows it. An explicit allow looks like this:
User-agent: Bytespider Allow: /
Then confirm from the live fetch with the AI crawler checker, which reads your published robots.txt the way a crawler would.
How to verify Bytespider
The reliable check is reverse DNS on the fetching IP address. Run the lookup below against any visitor claiming the Bytespider token; a genuine fetch resolves inside ByteDance's address space, and a spoofed one does not.
dig +short -x 203.0.113.5 # e.g. for fetching-ip # A genuine Bytespider fetch resolves to an ByteDance address
Frequently asked questions
Does Bytespider honor robots.txt?+
Its behavior is reported to be inconsistent, so treat a Disallow rule as advisory. Verify from your logs rather than assuming.
How do I actually stop Bytespider?+
Block its autonomous system at your WAF or edge provider. Cloudflare, which likely fronts your DNS, offers managed rules for AI scraper blocking by ASN.
How do I verify a Bytespider visitor?+
Reverse DNS on its IPs is inconsistent, which is exactly why user-agent verification alone is unreliable for this crawler.
Related: all AI crawlers, how to block AI crawlers, how to allow AI crawlers, robots.txt guide.