mirror of
https://codeberg.org/forgejo/docs.git
synced 2024-11-21 17:36:59 -05:00
developer: infrastructure: blacklist bots that do not obey robots.txt
They get /forgejo/forgejo/archive/100448a007707c049a769cb71cd170fcb5b64a25.bundle despite https://code.forgejo.org/robots.txt having Disallow: /*/*/archive/ Disallow: /*/*/archive/*.bundle
This commit is contained in:
parent
798fee5b11
commit
d1662f520e
1 changed files with 2 additions and 0 deletions
|
@ -271,6 +271,8 @@ server {
|
|||
server_name code.forgejo.org;
|
||||
|
||||
location / {
|
||||
deny 47.76.209.138; # crawler that does not obey robots.txt
|
||||
deny 47.76.99.127; # crawler that does not obey robots.txt
|
||||
proxy_pass http://10.6.83.195:8080;
|
||||
client_max_body_size 2G;
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue