iCreatAI News
Skip to content
Hacker News AI· speckx·· 1 hr agoAI score22

AI Ban Hammer

AI Ban Hammer

AI summary

The author describes a method for blocking AI bots that ignore robots.txt, adapted from Terence's PHP/.htaccess approach and Armin Wolfermann's Apache RewriteMap technique: a hidden honeypot link to a robots.txt-disallowed directory logs the IPs of bots that request it, and Apache then blocks those IPs with a 402 Payment Required response. After trying the PHP version for about 24 hours, the author switched to the Apache log-and-RewriteMap setup to avoid running PHP on the server. The logs showed several apparent AI bots, including one that identified as Meta-operated and one Python crawling library, with most disguising themselves as browsers.

Source: Hacker News AI · yunzi.co.uk