# Prevent LLM scrapers/trawlers?

**URL:** <https://forum.yunohost.org/t/prevent-llm-scrapers-trawlers/35060>\
**Category:** Discuss\
**Tags:** english\
**Created:** [January 28, 2025, 11:56am UTC](https://forum.yunohost.org/t/prevent-llm-scrapers-trawlers/35060 "2025-01-28T11:56:38Z")\
**Posts on this page:** 6\
**Page:** 3

<div class="post-metadata">

**Author:** ![frisur](https://forum.yunohost.org/user_avatar/forum.yunohost.org/frisur/32/12769_2.png) [@frisur](https://forum.yunohost.org/u/frisur)\
**Post date:** [August 28, 2026, 4:34pm UTC](https://forum.yunohost.org/t/prevent-llm-scrapers-trawlers/35060/42 "2026-08-28T16:34:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tituspijean](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tituspijean/32/3584_2.png) [@tituspijean](https://forum.yunohost.org/u/tituspijean)\
**Post date:** [August 28, 2026, 5:11pm UTC](https://forum.yunohost.org/t/prevent-llm-scrapers-trawlers/35060/43 "2026-08-28T17:11:53Z")

</div>

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](https://doc.yunohost.org/fr/dev/packaging/advanced/hooks#how-to-add-a-custom-hook-on-a-specific-instance) way. 😛

---

<div class="post-metadata">

**Author:** ![lnoferin](https://forum.yunohost.org/user_avatar/forum.yunohost.org/lnoferin/32/2043_2.png) [@lnoferin](https://forum.yunohost.org/u/lnoferin)\
**Post date:** [September 18, 2026, 11:45am UTC](https://forum.yunohost.org/t/prevent-llm-scrapers-trawlers/35060/44 "2026-09-18T11:45:18Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![mouse](https://forum.yunohost.org/user_avatar/forum.yunohost.org/mouse/32/5678_2.png) [@mouse](https://forum.yunohost.org/u/mouse)\
**Post date:** [October 14, 2026, 11:34am UTC](https://forum.yunohost.org/t/prevent-llm-scrapers-trawlers/35060/45 "2026-10-14T11:34:26Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![mouse](https://forum.yunohost.org/user_avatar/forum.yunohost.org/mouse/32/5678_2.png) [@mouse](https://forum.yunohost.org/u/mouse)\
**Post date:** [October 14, 2026, 11:38am UTC](https://forum.yunohost.org/t/prevent-llm-scrapers-trawlers/35060/46 "2026-10-14T11:38:41Z")

</div>

anubis would be ideal, really.

---

<div class="post-metadata">

**Author:** ![mouse](https://forum.yunohost.org/user_avatar/forum.yunohost.org/mouse/32/5678_2.png) [@mouse](https://forum.yunohost.org/u/mouse)\
**Post date:** [November 5, 2026, 10:21am UTC](https://forum.yunohost.org/t/prevent-llm-scrapers-trawlers/35060/48 "2026-11-05T10:21:29Z")

</div>

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](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:

```auto

$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)"

```

[Previous page](https://forum.yunohost.org/t/prevent-llm-scrapers-trawlers/35060.md?page=2)
