iCreatAI News
Skip to content
Trending storyUpdating

Blogger shares method to block rule-breaking AI crawlers with an Apache honeypot

1 reports1 sources52 min agoUpdated

Understand this story

AI overview

Blogger speckx shared a configuration method for blocking AI crawlers that ignore robots.txt using an Apache server: using LogFormat, SetEnvIf and RewriteMap to write the IPs of visitors accessing directories disallowed by robots.txt to a log, then reading that log back as a blacklist and returning 402 Payment Required for matching requests. The approach originates from an idea by commenter Armin Wolfermann under Terence's post, which speckx organized and explained. The report does not state the method's actual blocking effectiveness or scope of applicability.

AI overview based on source reports · Updated 43 min ago

Coverage timeline

Follow the coverage to explore different perspectives.

Nov 25
  1. Hacker News AI
    AI Ban Hammer

    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.

Activity for this story

Not enough continuous observations to show a trend yet.