Mercurial Hosting > hghosting
changeset 29:f83fbf2b6d4f
block openai scraper
| author | Violet7 |
|---|---|
| date | Tue, 19 May 2026 01:55:47 -0700 |
| parents | cfedb3f6cbac |
| children | 66ddf3654046 |
| files | nginx.default.conf |
| diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/nginx.default.conf Mon Feb 23 18:08:44 2026 -0800 +++ b/nginx.default.conf Tue May 19 01:55:47 2026 -0700 @@ -10,6 +10,10 @@ return 200 "$1.ZVfdXrOoSbmeTJ4l7OuY0SI388jxO8JHcxGPdqM1Jgk"; } + if ($http_x_openai_host_hash != "") { + return 403; + } + location / { proxy_pass http://127.0.0.1:8080; }
