RewriteCond %{REQUEST_URI} xmlrpc\.php [NC]
RewriteRule .* - [F]
# Block WordPress xmlrpc.php requests
Order Deny,Allow
Deny from all
Allow From 122.248.245.244
Allow From 54.217.201.243
Allow From 54.232.116.4
Allow From 192.0.80.0/20
Allow From 192.0.96.0/20
Allow From 192.0.112.0/20
ErrorDocument 403 "Acess Denied! If you need it, please contact support"
SetEnvIfNoCase User-Agent "MegaIndex|spbot|simplecrawler|SLCC1|MJ12bot|AhrefsBot|ia_archiver|okhttp|Baiduspider|SemrushBot|WPScan|SMTBot|AspiegelBot|ManoManoBot|PetalBot|Bytespider|Amazonbot|openai|claude" bad_bot
Deny from env=bad_bot
# BEGIN LSCACHE
## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
# BEGIN WordPress
# Le direttive (linee) tra "BEGIN WordPress" e "END WordPress" sono
# generate dinamicamente, e dovrebbero essere modificate solo tramite i filtri di WordPress.
# Ogni modifica alle direttive tra questi marcatori verrĂ sovrascritta.
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]
# END WordPress