Prevent LLM scrapers/trawlers?

Is there advantage in putting this (lovely snippet) to
/usr/share/yunohost/hooks/conf_regen/
instead of
/etc/yunohost/hooks.d/conf_regen/
?

Thank you for pointing this out. @Josue you should put your file in /etc/yunohost/hooks.d/conf_regen. /usr/share/yunohost could be overridden during a YunoHost upgrade. That’s also the documented way. :stuck_out_tongue:

I would try this snippet but I don’t have a /etc/yunohost/hooks.d/conf.regen/ directory to put in: do I need to create this directory before creating the file?

just chiminig in to say some ynh default available blocking would be appreciated. my ynh server is being run into the ground.

can an updated of the above script be added to ynh by default?

anubis would be ideal, really.

i am using @Josue 's set up, and data from https://raw.githubusercontent.com/ai-robots-txt/ai.robots.txt/refs/heads/main/nginx-block-ai-bots.conf but i still notice that bots that are on the block list are hitting my server (Petalbot, Amazon bot)… looks like bing bot also not on there, but maybe it is “just” a search engine crawler?

an example petalbot log entry looks like so:


$IP-address - - [05/Nov/2026:10:19:16 +0100] "GET /tags/$tag HTTP/1.1" 444 0 $URL "Mozilla/5.0 (Linux; Android 7.0;) AppleWebKit/537.36 (HTML, like Gecko) Mobile Safari/537.36 (compatible; PetalBot;+https://webmaster.petalsearch.com/site/petalbot)"