mirror of
https://github.com/ai-robots-txt/ai.robots.txt.git
synced 2025-04-04 11:03:59 +00:00
Create .htaccess
.htaccess rule to block user-agents
This commit is contained in:
parent
ca8620e28b
commit
0777befd36
1 changed files with 6 additions and 0 deletions
6
.htaccess
Normal file
6
.htaccess
Normal file
|
@ -0,0 +1,6 @@
|
|||
# Ai bots don't respect robots.txt files. You can use the following .htaccess rule to block them.
|
||||
# Use user-agent names from robots.txt file in this repository to edit the following rule. Replace or add bot names with ones that cause your website trouble.
|
||||
|
||||
RewriteEngine On
|
||||
RewriteCond %{HTTP_USER_AGENT} ^.*(ClaudeBot|NBot|GPTBot|).*$ [NC]
|
||||
RewriteRule .* - [F,L]
|
Loading…
Reference in a new issue