Why Nostr? What is Njump?
2024-06-24 13:34:47
in reply to

Ric on Nostr: hopefully useful to people: It's actually pretty easy to block these scrapers by ...

hopefully useful to people: It's actually pretty easy to block these scrapers by their UA strings. Just add this to a .htaccess file in the root (assuming you run an Apache server), adding whatever UAs you need to block between the paranthesis, separated by pipes:

SetEnvIfNoCase ^User-Agent$ .*(ClaudeBot|GoogleOther|GPTBot) BADBOTHAMMER
Deny from env=BADBOTHAMMER

I'm planning to at some point collate all the known AI bot UAs into a public list. There's obviously way more than these three!
Author Public Key
npub1nuac25kqza8vgl3v4lfyhufvfnum9dnmvm469wgjf3s32fh9wkcslddu5u