1
0
mirror of https://github.com/balkian/gists.git synced 2024-11-13 05:42:29 +00:00

Add 'repos/25ed1a7b291a47399ae5/' from commit '9806834e5f6ff59ddab4115b2cac9c16a67a409c'

git-subtree-dir: repos/25ed1a7b291a47399ae5
git-subtree-mainline: f2ca3b2455
git-subtree-split: 9806834e5f
This commit is contained in:
J. Fernando Sánchez 2021-10-30 15:12:54 +02:00
commit 710c067e29

View File

@ -0,0 +1,14 @@
# Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL.
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL.
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]