Hugo博客公告弹窗

屏蔽GPTbot爬虫

文档

https://platform.openai.com/docs/bots

禁止IP

sudo ufw insert 1 deny from 20.171.206.0/24 to any
sudo ufw insert 1 deny from 52.230.152.0/24 to any
sudo ufw insert 1 deny from 52.233.106.0/24 to any

阻止user-agent

Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; GPTBot/1.1; +https://openai.com/gptbot
CC BY-NC-SA 4.0 转载请注明
最后更新于 2024-11-20 16:13
clarity统计