From 327b9128fea47c2d8db622933d79ee8cf0c1f86f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A2=D0=B0=D1=82=D1=8C=D1=8F=D0=BD=D0=B0=20=D0=A4=D0=B0?= =?UTF-8?q?=D1=80=D0=B1=D0=B5=D1=80?= Date: Thu, 22 Oct 2026 00:10:41 +0400 Subject: php2shell add --- nginx.conf | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 nginx.conf (limited to 'nginx.conf') diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..2f87043 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,28 @@ +http { + + lua_shared_dict banned_ips 10m; + lua_shared_dict limits 2m; + + map $http_user_agent $is_bot { + default 0; + ~*googlebot|yandex|bingbot|baiduspider|mail.ru_bot|ia_archiver|facebot|facebookexternalhit|twitterbot|://google.com|ahrefsbot|semrushbot|telegrambot|vkshare|whatsapp 1; + } + + server { + listen 443 ssl; + server_name test.ru; + server_tokens off; + + location ~* /(wp-content|wp-includes|wp-admin|wp-login\.php|xmlrpc\.php|\.git|\.env|vendor|phpmyadmin|adminer\.php|\.htaccess|config\.init) { + access_log off; + log_not_found off; + return 444; + } + + location / { + access_log off; + access_by_lua_file /home/example.lua; + } + } + +} -- cgit v1.2.3