Skip to content

Instantly share code, notes, and snippets.

@dotherightthing
Last active November 1, 2018 09:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dotherightthing/0e9cd608d456675cd8bfc4655a31b51c to your computer and use it in GitHub Desktop.
Save dotherightthing/0e9cd608d456675cd8bfc4655a31b51c to your computer and use it in GitHub Desktop.
[Get PHP version used by a website] #php #curl #security

Get PHP version used by a website

In web browser

  1. curl -I http://www.websitename.com
  2. Append a PHP string to the URL, to display an image-based easter egg that corresponds to a version of PHP

To disable on server

# php.ini
expose_php = off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment