403Webshell
Server IP : 80.211.21.168  /  Your IP : 216.73.216.200
Web Server : Apache
System : Linux alex-webdesign.it 3.10.0-1160.119.1.el7.tuxcare.els22.x86_64 #1 SMP Mon Aug 18 06:07:12 UTC 2025 x86_64
User : admin_japan ( 10003)
PHP Version : 8.2.32
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/vhosts/cerchijapan.it/ferrofrt.it/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/cerchijapan.it/ferrofrt.it/.htaccess
# ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
# https://www.prestashop.com - https://www.prestashop.com/forums

<IfModule mod_rewrite.c>
<IfModule mod_env.c>
SetEnv HTTP_MOD_REWRITE On
</IfModule>

RewriteEngine on
 # Blocca il bot claudebot@anthropic.com
    RewriteCond %{HTTP_USER_AGENT} "claudebot@anthropic\.com" [NC]
    RewriteRule .* - [F,L]

    # Blocca il bot +claudebot@anthropic.com
    RewriteCond %{HTTP_USER_AGENT} "\+claudebot@anthropic\.com" [NC]
    RewriteRule .* - [F,L]
	


# >=4 "&"
RewriteCond %{QUERY_STRING} (?:[^&]*&){4,} [NC,OR]
# >=4 "?"
RewriteCond %{QUERY_STRING} (?:[^?]*\?){4,} [OR]
# >=4 "%26" (ampersand codificato)
RewriteCond %{QUERY_STRING} (?:%26){4,} [NC,OR]
# >=4 "%3F" (punto di domanda codificato)
RewriteCond %{QUERY_STRING} (?:%3[Ff]){4,} [NC]
RewriteRule ^ - [F,L]

# >= 4 sequenze "%3x" (es: %3F, %3D) o doppio-encode "%253x"
RewriteCond %{QUERY_STRING} (?:%(?:25)?3[0-9A-Fa-f]){4,} [NC]
RewriteRule ^ - [F,L]
# Blocca se "%3" compare 4 o più volte (anche in %3F, %3D, ecc.)
RewriteCond %{QUERY_STRING} ^(?:[^%]*%3){4,} [NC]
RewriteRule ^ - [F,L]
# --- BLOCCA HEAD su /2-home (opzionale ma esplicito)
RewriteCond %{REQUEST_METHOD} =HEAD
RewriteCond %{REQUEST_URI} ^/2-home [NC]
RewriteRule ^ - [F,L]

# --- QS sporca: >=4 "%3x" (anche doppio encoding %253x), >=4 "&"
RewriteCond %{QUERY_STRING} ^(?:[^%]*%(?:25)?3[0-9A-Fa-f]){4,} [NC,OR]
RewriteCond %{QUERY_STRING} (?:[^&]*&){4,} [NC]
RewriteRule ^ - [F,L]

# --- QS sporca: >=4 "%3x" (anche doppio encoding %253x), >=4 "&"
RewriteCond %{QUERY_STRING} ^(?:[^%]*%(?:25)?3[0-9A-Fa-f]){4,} [NC,OR]
RewriteCond %{QUERY_STRING} (?:[^&]*&){4,} [NC]
RewriteRule ^ - [F,L]
# Blocco per resultsPerPage=9999
RewriteCond %{QUERY_STRING} (^|&)resultsPerPage=9999(?:&|$) [NC]
RewriteRule ^ - [F,L]
# >=4 occorrenze della stringa "%3"
RewriteCond %{QUERY_STRING} (?:%3){4,} [NC]
RewriteRule ^ - [F,L]

	# Blocca il bot https://developer.amazon.com/support/amazonbot
    RewriteCond %{HTTP_USER_AGENT} "https:\/\/developer\.amazon\.com\/support\/amazonbot" [NC]
    RewriteRule .* - [F,L]

    # Blocca il bot +https://developer.amazon.com/support/amazonbot
    RewriteCond %{HTTP_USER_AGENT} "\+https:\/\/developer\.amazon\.com\/support\/amazonbot" [NC]
    RewriteRule .* - [F,L]
     # Blocca il bot +https://bing.com/bingbot.html
    RewriteCond %{HTTP_USER_AGENT} "\+http:\/\/www\.bing\.com\/bingbot\.htm" [NC]
    RewriteRule .* - [F,L]

    # Blocca il bot https://bing.com/bingbot.html
    RewriteCond %{HTTP_USER_AGENT} "http:\/\/www\.bing\.com\/bingbot\.htm" [NC]
    RewriteRule .* - [F,L]
# Blocca il bot +http://www.apple.com/go/applebot
    RewriteCond %{HTTP_USER_AGENT} "\+http:\/\/www\.apple\.com\/go\/applebot" [NC]
    RewriteRule .* - [F,L]

    # Blocca il bot http://www.apple.com/go/applebot
    RewriteCond %{HTTP_USER_AGENT} "http:\/\/www\.apple\.com\/go\/applebot" [NC]
    RewriteRule .* - [F,L]
	# Blocca il bot +http://www.apple.com/go/applebot
    RewriteCond %{HTTP_USER_AGENT} "\+http:\/\/www\.senuto\.com" [NC]
    RewriteRule .* - [F,L]

    # Blocca il bot http://www.apple.com/go/applebot
    RewriteCond %{HTTP_USER_AGENT} "http:\/\/www\.senuto\.com" [NC]
    RewriteRule .* - [F,L]
	# Blocca il bot +https://bot.seekport.com
RewriteCond %{HTTP_USER_AGENT} "\+https:\/\/bot\.seekport\.com" [NC]
RewriteRule .* - [F,L]
# Blocca il bot +https://bot.seekport.com
RewriteCond %{HTTP_USER_AGENT} "https:\/\/bot\.seekport\.com" [NC]
RewriteRule .* - [F,L]
# Blocca il bot Majestic-12 (mj12bot)
RewriteCond %{HTTP_USER_AGENT} "mj12bot" [NC]
RewriteCond %{HTTP_USER_AGENT} "http:\/\/mj12bot\.com" [NC]
RewriteRule .* - [F,L]

# Blocca il bot SEMrush con o senza il prefisso +
RewriteCond %{HTTP_USER_AGENT} "\+http:\/\/www\.semrush\.com\/bot\.html" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "http:\/\/www\.semrush\.com\/bot\.html" [NC]
RewriteRule .* - [F,L]
# Blocca tutti i bot tranne Google e Bing
RewriteCond %{HTTP_USER_AGENT} !(googlebot|bingbot|bing) [NC]
RewriteCond %{HTTP_USER_AGENT} (bot|crawler|spider|archiver|scraper|http) [NC]
RewriteRule .* - [F,L]

#Domain: www.ferrofrt.it
RewriteRule . - [E=REWRITEBASE:/]
RewriteRule ^api(?:/(.*))?$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]
RewriteRule ^upload/.+$ %{ENV:REWRITEBASE}index.php [QSA,L]

# Images
RewriteCond %{HTTP_HOST} ^www.ferrofrt.it$
RewriteRule ^(([\d])(?:\-[\w-]*)?)/.+(\.(?:jpe?g|webp|png|avif))$ %{ENV:REWRITEBASE}img/p/$2/$1$3 [L]
RewriteCond %{HTTP_HOST} ^www.ferrofrt.it$
RewriteRule ^(([\d])([\d])(?:\-[\w-]*)?)/.+(\.(?:jpe?g|webp|png|avif))$ %{ENV:REWRITEBASE}img/p/$2/$3/$1$4 [L]
RewriteCond %{HTTP_HOST} ^www.ferrofrt.it$
RewriteRule ^(([\d])([\d])([\d])(?:\-[\w-]*)?)/.+(\.(?:jpe?g|webp|png|avif))$ %{ENV:REWRITEBASE}img/p/$2/$3/$4/$1$5 [L]
RewriteCond %{HTTP_HOST} ^www.ferrofrt.it$
RewriteRule ^(([\d])([\d])([\d])([\d])(?:\-[\w-]*)?)/.+(\.(?:jpe?g|webp|png|avif))$ %{ENV:REWRITEBASE}img/p/$2/$3/$4/$5/$1$6 [L]
RewriteCond %{HTTP_HOST} ^www.ferrofrt.it$
RewriteRule ^(([\d])([\d])([\d])([\d])([\d])(?:\-[\w-]*)?)/.+(\.(?:jpe?g|webp|png|avif))$ %{ENV:REWRITEBASE}img/p/$2/$3/$4/$5/$6/$1$7 [L]
RewriteCond %{HTTP_HOST} ^www.ferrofrt.it$
RewriteRule ^(([\d])([\d])([\d])([\d])([\d])([\d])(?:\-[\w-]*)?)/.+(\.(?:jpe?g|webp|png|avif))$ %{ENV:REWRITEBASE}img/p/$2/$3/$4/$5/$6/$7/$1$8 [L]
RewriteCond %{HTTP_HOST} ^www.ferrofrt.it$
RewriteRule ^(([\d])([\d])([\d])([\d])([\d])([\d])([\d])(?:\-[\w-]*)?)/.+(\.(?:jpe?g|webp|png|avif))$ %{ENV:REWRITEBASE}img/p/$2/$3/$4/$5/$6/$7/$8/$1$9 [L]
RewriteCond %{HTTP_HOST} ^www.ferrofrt.it$
RewriteRule ^c/([\d]+)(\-[\.*\w-]*)/.+(\.(?:jpe?g|webp|png|avif))$ %{ENV:REWRITEBASE}img/c/$1$2$3 [L]
RewriteCond %{HTTP_HOST} ^www.ferrofrt.it$
RewriteRule ^c/([a-zA-Z_-]+)(-[\d]+)?/.+(\.(?:jpe?g|webp|png|avif))$ %{ENV:REWRITEBASE}img/c/$1$2$3 [L]
# AlphaImageLoader for IE and fancybox
RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ %{ENV:REWRITEBASE}js/jquery/plugins/fancybox/images/$1.$2 [L]

# Dispatcher
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L]
</IfModule>

AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf
AddType application/font-woff .woff
AddType font/woff2 .woff2
<IfModule mod_headers.c>
	<FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|svg)$">
		Header set Access-Control-Allow-Origin "*"
	</FilesMatch>
</IfModule>

<Files composer.lock>
    # Apache 2.2
    <IfModule !mod_authz_core.c>
        Order deny,allow
        Deny from all
    </IfModule>

    # Apache 2.4
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
</Files>
<IfModule mod_expires.c>
	ExpiresActive On
    AddType image/webp .webp
    ExpiresByType image/webp "access plus 1 month"
    ExpiresByType image/avif "access plus 1 month"
	ExpiresByType image/gif "access plus 1 month"
	ExpiresByType image/jpeg "access plus 1 month"
	ExpiresByType image/png "access plus 1 month"
	ExpiresByType text/css "access plus 1 week"
	ExpiresByType text/javascript "access plus 1 week"
	ExpiresByType application/javascript "access plus 1 week"
	ExpiresByType application/x-javascript "access plus 1 week"
	ExpiresByType image/x-icon "access plus 1 year"
	ExpiresByType image/svg+xml "access plus 1 year"
	ExpiresByType image/vnd.microsoft.icon "access plus 1 year"
	ExpiresByType application/font-woff "access plus 1 year"
	ExpiresByType application/x-font-woff "access plus 1 year"
	ExpiresByType font/woff2 "access plus 1 year"
	ExpiresByType application/vnd.ms-fontobject "access plus 1 year"
	ExpiresByType font/opentype "access plus 1 year"
	ExpiresByType font/ttf "access plus 1 year"
	ExpiresByType font/otf "access plus 1 year"
	ExpiresByType application/x-font-ttf "access plus 1 year"
	ExpiresByType application/x-font-otf "access plus 1 year"
</IfModule>

<IfModule mod_headers.c>
    Header unset Etag
</IfModule>
FileETag none
<IfModule mod_deflate.c>
    <IfModule mod_filter.c>
        AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/x-javascript font/ttf application/x-font-ttf font/otf application/x-font-otf font/opentype image/svg+xml
    </IfModule>
</IfModule>

#If rewrite mod isn't enabled
ErrorDocument 404 /index.php?controller=404

# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again

Youez - 2016 - github.com/yon3zu
LinuXploit