Skip to content

Instantly share code, notes, and snippets.

@ostark
Created March 25, 2014 10:27
Show Gist options
  • Save ostark/9758796 to your computer and use it in GitHub Desktop.
Save ostark/9758796 to your computer and use it in GitHub Desktop.
Disallow PHP Easter Eggs
############################################
## Disallow PHP Easter Eggs (can be used in fingerprinting attacks to determine
## your PHP version).
RewriteCond %{QUERY_STRING} \=PHP[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12} [NC]
RewriteRule .* - [F]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment