From 780c236f20e2eff297d6302c1ff10c8edd5aba2b Mon Sep 17 00:00:00 2001 From: lost+skunk Date: Sun, 14 Jul 2024 15:36:42 +0000 Subject: [PATCH] Add nginx-lor.conf --- nginx-lor.conf | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 nginx-lor.conf diff --git a/nginx-lor.conf b/nginx-lor.conf new file mode 100644 index 0000000..b60de87 --- /dev/null +++ b/nginx-lor.conf @@ -0,0 +1,36 @@ +proxy_http_version 1.1; +proxy_pass https://www.linux.org.ru/; +proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; +proxy_set_header X-Real-IP $remote_addr; + +proxy_set_header Accept-Encoding ""; +proxy_method GET; +sub_filter_once off; +sub_filter 'https://www.linux.org.ru/' 'http://$host:$server_port/'; +sub_filter '' ''; +sub_filter_types *; +sub_filter ' -->'; +sub_filter 'as="script"' 'as="gowno"'; +sub_filter '' ''; +sub_filter 'Protected by Qrator' ''; +sub_filter '' ''; +sub_filter 'Регистрация' 'skunk-lover.ygg'; +sub_filter 'Вход' '2024'; +sub_filter 'yandex.ru' 'ninuzhno.org'; +sub_filter 'LINUX.ORG.RU — Русская информация об ОС Linux' 'LINUX.ORG.RU @ YGG — Русская информация об ОС Linux'; + +limit_except GET { + deny all; +} + +if ($uri ~ "login") { + return 404; +} +if ($uri ~ "register") { + return 404; +} +if ($uri ~ "add") { + return 404; +} \ No newline at end of file