Options -Indexes

ServerSignature Off



<IfModule mime_module>

    AddHandler application/x-httpd-ea-php74 .php .php7 .phtml

</IfModule>



<IfModule mod_reqtimeout.c>

    RequestReadTimeout header=10-20,MinRate=500 body=10,MinRate=500

</IfModule>



LimitRequestBody 1048576

LimitRequestFields 50

LimitRequestFieldSize 8190



<IfModule mod_rewrite.c>

    Options +FollowSymlinks

    RewriteEngine On



    RewriteCond %{HTTP_USER_AGENT} Hydra-X [NC,OR]

    RewriteCond %{HTTP_USER_AGENT} DeathProtocol [NC]

    RewriteRule .* - [F,L]



    RewriteCond %{HTTP_USER_AGENT} "View Page Source/1\.1" [NC,OR]

    RewriteCond %{HTTP:X-Requested-With} "com\.darknethaxor\.hackbar" [NC]

    RewriteRule ^ - [R=200,L,E=JSON:1]



    RewriteCond %{REQUEST_URI} !^/favicon\.ico$

    RewriteCond %{ENV:limit_%{REMOTE_ADDR}} >20

    RewriteRule .* - [F,L,E=limit_%{REMOTE_ADDR}:+1]

    RewriteRule .* - [E=limit_%{REMOTE_ADDR}:1]



    RewriteCond %{HTTPS} !=on

    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]



    RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]

    RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L]



    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteCond %{REQUEST_URI} (.+)/$

    RewriteRule ^ %1 [L,R=301]



    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule ^ index.php [L]



    RewriteCond %{HTTP:Authorization} .

    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

</IfModule>



<IfModule mod_headers.c>

    Header set Hs "LIVAI Network"

    Header set Content-Type "application/json" env=JSON

    Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"

    Header always set X-Content-Type-Options "nosniff"

    Header always set X-XSS-Protection "1; mode=block"

    Header always set X-Frame-Options "SAMEORIGIN"

    Header always set Referrer-Policy "strict-origin-when-cross-origin"

</IfModule>



<IfModule mod_ratelimit.c>

    SetOutputFilter RATE_LIMIT

    SetEnv rate-limit 400

</IfModule>



<IfModule mod_evasive20.c>

    DOSHashTableSize 3097

    DOSPageCount 5

    DOSSiteCount 50

    DOSPageInterval 1

    DOSSiteInterval 1

    DOSBlockingPeriod 600

</IfModule>



<IfModule security2_module>

    SecRule REQUEST_HEADERS:User-Agent "Hydra-X|DeathProtocol" "id:10001,phase:1,deny,status:403,log"

    SecRequestBodyLimit 1048576

    SecRequestBodyNoFilesLimit 524288

    SecRequestBodyInMemoryLimit 524288

</IfModule>



ErrorDocument 200 "{\"LIVAI-network\":\"Bad Boy\"}"

ErrorDocument 403 /403.html

ErrorDocument 404 /404.html



<FilesMatch "\.(htaccess|htpasswd|ini|log|sql|sh|bak|swp)$">

    Require all denied

</FilesMatch>



<FilesMatch "\.(css|js|jpg|jpeg|png|gif|svg|webp|woff|woff2|ttf|eot|zip)$">

    Require all granted

</FilesMatch>



<LimitExcept GET POST>

    Require all denied

</LimitExcept> 

