Mercurial Hosting > hghosting
comparison nginx.default.conf @ 29:f83fbf2b6d4f
block openai scraper
| author | Violet7 |
|---|---|
| date | Tue, 19 May 2026 01:55:47 -0700 |
| parents | bbafc54bbd26 |
| children | b688b17bbe6b |
comparison
equal
deleted
inserted
replaced
| 28:cfedb3f6cbac | 29:f83fbf2b6d4f |
|---|---|
| 8 location ~ "^/\.well-known/acme-challenge/([-_a-zA-Z0-9]+)$" { | 8 location ~ "^/\.well-known/acme-challenge/([-_a-zA-Z0-9]+)$" { |
| 9 default_type text/plain; | 9 default_type text/plain; |
| 10 return 200 "$1.ZVfdXrOoSbmeTJ4l7OuY0SI388jxO8JHcxGPdqM1Jgk"; | 10 return 200 "$1.ZVfdXrOoSbmeTJ4l7OuY0SI388jxO8JHcxGPdqM1Jgk"; |
| 11 } | 11 } |
| 12 | 12 |
| 13 if ($http_x_openai_host_hash != "") { | |
| 14 return 403; | |
| 15 } | |
| 16 | |
| 13 location / { | 17 location / { |
| 14 proxy_pass http://127.0.0.1:8080; | 18 proxy_pass http://127.0.0.1:8080; |
| 15 } | 19 } |
