Post AkjpZVuKChNlcY85Im by pete_wright@nlogic.systems
 (DIR) More posts by pete_wright@nlogic.systems
 (DIR) Post #AkjpZVuKChNlcY85Im by pete_wright@nlogic.systems
       2024-08-07T22:54:45.386341Z
       
       1 likes, 1 repeats
       
       apropos of some discussions i've seen here about blocking AI bots on their servers i wanted to share a novel way to do this via haproxy and their ACL support.https://www.haproxy.com/blog/introduction-to-haproxy-acls#using-acls-to-block-requestsso you could do something like this (off the top of my head so ymmv):acl is-blockedagent hdr_sub(user-agent) -i -f /etc/haproxy/blacklist-agent.txthttp-request tarpit if is-blockedagentwhat's neat about this is that haproxy is pretty dang light weight, has an API to programaticaaly make changes at run time and allows you to tar-pit people.   i'm sure someone smarter than me can (or already has) expanded this to more robustly block AI bots.