How to Block AI Crawlers with robots.txt (GPTBot, ClaudeBot & More)
Which AI bots to block and which to allow: copy-ready robots.txt rules for GPTBot, ClaudeBot, Google-Extended, CCBot and more, without hurting Google rankings.
Generate Apache .htaccess rules: force HTTPS, www or non-www, WordPress permalinks, browser caching, GZIP compression, security headers, hotlink protection, custom error pages and IP blocking.
Runs locally — nothing is uploadedYes — they run Apache or LiteSpeed, which read .htaccess. Nginx servers ignore it; use the redirect generator’s Nginx output there.
Keep the # BEGIN WordPress block intact; WordPress may rewrite it when you save permalinks. Put your own rules above it.
Pick the rules you need and copy a tidy .htaccess for Apache or LiteSpeed hosting such as Hostinger and cPanel. Add page-by-page 301s from the Bulk Redirect Generator, control crawlers with the robots.txt generator and finish the WordPress setup with the wp-config.php Generator.
Also useful: XML Sitemap Generator · Cron Expression Generator
People find .htaccess Generator by searching for: