File: /var/www/www-root/data/www/wowik.click/.htaccess1
RewriteEngine On
SetEnvIf CF-IPCountry ^US$ BlockCountry
Deny from env=BlockCountry
php_value display_errors 1
php_value display_startup_errors 1
<IfModule mod_deflate.c>
# Включаем сжатие для указанных MIME типов
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/json
# Отключаем сжатие для изображений, архивов и т.д. (они уже сжаты)
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|rar|zip|avi|mov|mp4)$ no-gzip dont-vary
</IfModule>
# Block bots
# ГЛОБАЛЬНАЯ БЛОКИРОВКА ВСЕХ БОТОВ
SetEnvIfNoCase User-Agent "SecurityScan" bad_bot
SetEnvIfNoCase User-Agent "Google-Site-Verification" bad_bot
SetEnvIfNoCase User-Agent "Google-Safety" bad_bot
SetEnvIfNoCase User-Agent "yandex" bad_bot
SetEnvIfNoCase User-Agent "yandexbot" bad_bot
SetEnvIfNoCase User-Agent "duckduckbot" bad_bot
SetEnvIfNoCase User-Agent "rambler" bad_bot
SetEnvIfNoCase User-Agent "mail\.ru" bad_bot
SetEnvIfNoCase User-Agent "bingbot" bad_bot
SetEnvIfNoCase User-Agent "google" bad_bot
SetEnvIfNoCase User-Agent "googleBot" bad_bot
SetEnvIfNoCase User-Agent "Crawler" bad_bot
SetEnvIfNoCase User-Agent "Spider" bad_bot
SetEnvIfNoCase User-Agent "msnbot" bad_bot
SetEnvIfNoCase User-Agent "yahoo" bad_bot
SetEnvIfNoCase User-Agent "AlphaBot" bad_bot
SetEnvIfNoCase User-Agent "SemrushBot" bad_bot
SetEnvIfNoCase User-Agent "ltx71" bad_bot
SetEnvIfNoCase User-Agent "GuzzleHttp" bad_bot
SetEnvIfNoCase User-Agent "MegaIndex" bad_bot
SetEnvIfNoCase User-Agent "MegaIndex\.ru" bad_bot
SetEnvIfNoCase User-Agent "MauiBot" bad_bot
SetEnvIfNoCase User-Agent "Baiduspider" bad_bot
SetEnvIfNoCase User-Agent "Zauba" bad_bot
SetEnvIfNoCase User-Agent "dotbot" bad_bot
SetEnvIfNoCase User-Agent "Slurp" bad_bot
SetEnvIfNoCase User-Agent "MJ12bot" bad_bot
SetEnvIfNoCase User-Agent "AhrefsBot" bad_bot
SetEnvIfNoCase User-Agent "Wget" bad_bot
SetEnvIfNoCase User-Agent "SputnikBot" bad_bot
SetEnvIfNoCase User-Agent "SputnikImageBot" bad_bot
SetEnvIfNoCase User-Agent "PetalBot" bad_bot
SetEnvIfNoCase User-Agent "Applebot" bad_bot
SetEnvIfNoCase User-Agent "FacebookBot" bad_bot
SetEnvIfNoCase User-Agent "BingPreview" bad_bot
SetEnvIfNoCase User-Agent "phish" bad_bot
SetEnvIfNoCase User-Agent "malware" bad_bot
SetEnvIfNoCase User-Agent "Google-SafeBrowsing" bad_bot
# БЛОКИРОВКА ПО УНИВЕРСАЛЬНЫМ ПРИЗНАКАМ (дополнительная страховка)
SetEnvIfNoCase User-Agent "bot" bad_bot
SetEnvIfNoCase User-Agent "parser" bad_bot
SetEnvIfNoCase User-Agent "crawler" bad_bot
SetEnvIfNoCase User-Agent "spider" bad_bot
SetEnvIfNoCase User-Agent "scan" bad_bot
SetEnvIfNoCase User-Agent "^leacher" bot
SetEnvIfNoCase User-Agent "^grabber" bot
# БЛОКИРОВКА ЗАПРОСОВ БЕЗ USER-AGENTА
SetEnvIf User-Agent "^$" bad_bot
# ЗАПРЕТ ДОСТУПА ДЛЯ ВСЕХ ОПОЗНАННЫХ БОТОВ
Deny from env=bad_bot
RewriteCond %{HTTP_USER_AGENT} ^$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^(Java|curl|Wget|WinHTTP|GuzzleHttp) [NC]
RewriteRule .* - [F,L]