Помощник
Здравствуйте, гость ( Вход | Регистрация )
|
![]() |
![]() |
Сообщение
#1
|
||
![]() |
|
||
|
|||
![]() |
![]()
Сообщение
#2
|
![]() |
Я побанил многих через конфиг nginx (может и полезных тоже, но на деве на них пофигу)
if $http_user_agent отдает 403 по юзерагенту далее блок, не дающий подбирать пароли к некоторым CMS Код set $mgr_proxy "http://xxx.xxx.xxx.xxx:xxxx";
location ^~ /manimg/ { alias /usr/local/ispmgr/skins/; } if ($http_user_agent ~* (ca-crawler|mail.ru|ScreenerBot.com|LWNutch|www.warebay.com|WinHttpRequest|nikolaydo vydov|sogou.com|SemrushBot|opensiteexplorer|WebBot-FindUrl|SEOkicks-Robot|360spider|vedma.ru|bing.com|uMBot-LN|monoid.nic.ru|openhose.org|paperlibot|python-|metauri.com|linkfluence.net|crowsnest.tv|www.turnitin.com|help.coccoc.com|Baidu spider/2.0|www.exabox.com|search.msn.com|Ezooms|majestic12.co.uk|ahrefs.com|turnitin.co m|crawler.sistrix.net|webmeup-crawler.com|SputnikBot) ) { return 403; } location ~* /(wp-login\.php|administrator|admin\.php) { set $humantest 0; if ($http_cookie !~* "humans=check_this_fucking_test_d3jds") { set $humantest 1; } if ($args ~* (callback|logout|lostpassword)) { set $humantest 0; } if ($humantest = 1) { add_header Content-Type text/html; return 200 "<html><body><script>document.cookie='humans=check_this_fucking_test_d3jds;path=/';location.reload();</script></body></html>"; } error_page 404 = @fallback; } location ^~ /manager { proxy_pass $mgr_proxy; proxy_redirect $mgr_proxy /; proxy_set_header Host $host:$server_port; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Manager-Path /manager; proxy_set_header X-Secret OEQTLpOOyag3c0MY6QtPccUH; chunked_transfer_encoding off; } location ^~ /mancgi/ { proxy_pass $mgr_proxy; proxy_redirect $mgr_proxy /; proxy_set_header Host $host:$server_port; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Secret OEQTLpOOyag3c0MY6QtPccUH; chunked_transfer_encoding off; } -------------------- |
|
|
![]() |
![]()
Сообщение
#3
|
![]() |
devuser, Полезная информация.
|
|
|
![]() |
![]()
Сообщение
#4
|
![]() |
-------------------- Хостинг - The HostVille |
|
|
![]() |
![]()
Сообщение
#5
|
![]() |
Вот такой у меня .htaccess в части ботов:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / # Block bots RewriteCond %{HTTP_USER_AGENT} Firefox/2.0.0.13 [OR] RewriteCond %{HTTP_USER_AGENT} Sleuth [OR] RewriteCond %{HTTP_USER_AGENT} ezooms [OR] RewriteCond %{HTTP_USER_AGENT} MJ12bot [OR] RewriteCond %{HTTP_USER_AGENT} proximic [OR] RewriteCond %{HTTP_USER_AGENT} Lightspeedsystems [OR] RewriteCond %{HTTP_USER_AGENT} SearchBot [OR] RewriteCond %{HTTP_USER_AGENT} parser3 [OR] RewriteCond %{HTTP_USER_AGENT} TurnitinBot [OR] RewriteCond %{HTTP_USER_AGENT} Wget [OR] RewriteCond %{HTTP_USER_AGENT} SISTRIX [OR] RewriteCond %{HTTP_USER_AGENT} LinkpadBot [OR] RewriteCond %{HTTP_USER_AGENT} Wotbox [OR] RewriteCond %{HTTP_USER_AGENT} AntivirusPro [OR] RewriteCond %{HTTP_USER_AGENT} AntiVirusPro [OR] RewriteCond %{HTTP_USER_AGENT} Insitesbot [OR] RewriteCond %{HTTP_USER_AGENT} ^$ [OR] RewriteCond %{HTTP_USER_AGENT} mbot RewriteRule .* - [F,L] </IfModule> Толку от них ноль, только сервер грузят. |
|
|
![]() |
![]()
Сообщение
#6
|
![]() |
-------------------- Хостинг - The HostVille |
|
|
![]() |
![]()
Сообщение
#7
|
![]() |
|
|
|
![]() |
![]()
Сообщение
#8
|
|
![]() |
Не проще переехать на nginx и настроить фильтр в нем?) Мне кажется apache вообще отжил свое.
|
|
|
||
|
Похожие темы
Тема | Ответов | Автор | Просмотров | Последний ответ | |
---|---|---|---|---|---|
![]() |
Как YM и GA считают клики по ссылкам? | 4 | artstyle | 246 | Сегодня, 2:10 автор: Wachowski |
![]() |
Как набрать 10 000 минут просмотра в Яндекс Дзене и начать зарабатывать от 50 000 рублей i-marketing.kz - Разбираем детально Яндекс Дзен на примере кейса |
9 | r0mZet | 463 | Вчера, 16:40 автор: NormanSky |
![]() |
Давайте блокировать ботов в robots.txt | 26 | Cott | 945 | Вчера, 12:53 автор: Osipec |
![]() |
![]() |
24 | Filadelso | 2839 | Вчера, 12:42 автор: Osipec |
![]() |
Как максимально удобно принимать оплату? желательно анонимно |
20 | Wachowski | 2939 | 6.3.2021, 16:45 автор: EvilGomel |
![]() |
Текстовая версия | Сейчас: 8.3.2021, 5:11 |