krlaboratories

security .htaccess hooks Joomla

Oct 30th, 2021 (edited)
582
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.40 KB | None | 0 0
  1. # Send all blocked request to homepage with 403 Forbidden error
  2. RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
  3. RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
  4. RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
  5. RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
  6. RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
  7. RewriteRule ^(.*)$ index.php [F,L]
Add Comment
Please, Sign In to add comment