Skip to content

Instantly share code, notes, and snippets.

@gwarnants
Last active February 24, 2016 12:42
Show Gist options
  • Save gwarnants/31d4a065fc6a676cfd60 to your computer and use it in GitHub Desktop.
Save gwarnants/31d4a065fc6a676cfd60 to your computer and use it in GitHub Desktop.
Hijack PHP easter eggs using .htaccess. This could be an alternative solution when no possibility to disable expose_php in php.ini
RewriteEngine On
RewriteCond %{QUERY_STRING} ^=PHPE9568F3[4-6]-D428-11d2-A769-00AA001ACF42$ [OR]
RewriteCond %{QUERY_STRING} ^=PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000$
RewriteRule (.*) - [F]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment