Viewing: .htaccess
<IfModule mod_rewrite.c> #AddHandler application/x-httpd-php74 .php RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteCond %{REQUEST_URI} !^public RewriteRule ^(.*)$ public/$1 [L] </IfModule> # Block spam keywords in URL RewriteCond %{THE_REQUEST} \s/+.*(togel|slot|casino|poker|judi|bet|bangla|sex|viagra)\b [NC] RewriteRule .* - [F,L] # Block suspicious user agents RewriteCond %{HTTP_USER_AGENT} (AhrefsBot|SemrushBot|MJ12bot|DotBot|BLEXBot|Bytespider) [NC] RewriteRule .* - [F,L] <Files .env> Order allow,deny Deny from all </Files>
Return