File: //var/www/kevin-demo/.htaccess.backup-2026-07-22
#Block all bots except whitelisted crawlers
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^$ [OR]
RewriteCond %{HTTP_USER_AGENT} (bot|crawl|crawler|krow|krowler|robot|spider|sogou|acunetix|httrack|winhttrack|winhttp|lynx|libwww-fm|links|portalmmm|python-urllib|axios) [NC]
RewriteCond %{HTTP_USER_AGENT} !(uptimerobot|bing|google|msn|twitter|facebookexternalhit|ezoic|pinterestbot|ahrefsbot|applebot) [NC]
RewriteRule ^(.*)$ - [F,L]
# Enable the RewriteEngine
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} Chrome/103\.0\.4430\.93 [NC]
RewriteRule ^ - [F,L]
# SGS XMLRPC Disable Service
<Files xmlrpc.php>
order deny,allow
deny from all
</Files>
# SGS XMLRPC Disable Service END
# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
# SGO Unset Vary
Header unset Vary
# SGO Unset Vary END