I use a whitelist in htaccess to only allow certain bots.
It works fine on apache servers but I get a 403 error when I try and deploy on a litespeed server.
Is there anything I can do to get over this problem.
Thanks.
It works fine on apache servers but I get a 403 error when I try and deploy on a litespeed server.
Is there anything I can do to get over this problem.
Thanks.
Code:
# wp-login IP whitelist - block all brute force attempts and limit access to YOUR IPs only
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$
RewriteCond %{REMOTE_ADDR} !^234\.234\.226\.78$
RewriteCond %{REMOTE_ADDR} !^234\.234\.234\.234$
RewriteRule ^(.*)$ - [R=403,L]
</IfModule>
# START WHITELIST
#Google
BrowserMatchNoCase Google good_pass
#Yahoo
BrowserMatchNoCase Slurp good_pass
BrowserMatchNoCase YahooSeeker good_pass
#Bing
BrowserMatchNoCase MSNbot good_pass
BrowserMatchNoCase Adidxbot good_pass
BrowserMatchNoCase BingPreview good_pass
BrowserMatchNoCase bingbot good_pass
#ASK
BrowserMatchNoCase Jeeves good_pass
#DuckDuckGo
BrowserMatchNoCase DuckDuckBot good_pass
#Baidu (uncomment if you need this)
#BrowserMatchNoCase Baiduspider good_pass
#Yandex (uncomment if you need this)
#BrowserMatchNoCase YandexBot good_pass
#Regular Visitors
BrowserMatchNoCase Gecko good_pass
BrowserMatchNoCase Windows good_pass
BrowserMatchNoCase Macintosh good_pass
BrowserMatchNoCase Android good_pass
Order Deny,Allow
Deny from all
Allow from env=good_pass
# END WHITELIST
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress