Skip to content

Instantly share code, notes, and snippets.

@xombra
Last active August 5, 2017 20:30
Show Gist options
  • Save xombra/11310791 to your computer and use it in GitHub Desktop.
Save xombra/11310791 to your computer and use it in GitHub Desktop.
Aumentando seguridad .htaccess
Options +FollowSymlinks
FileETag None
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} libwww [NC,OR]
RewriteCond %{QUERY_STRING} ^(.*)=http [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteCond %{QUERY_STRING} (\<|%3C).*iframe.*(\>|%3E) [NC,OR]
SetEnv SERVER_ADMIN info@viserproject.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment