Skip to content

Instantly share code, notes, and snippets.

@imelgrat
Last active August 23, 2017 19:42
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 imelgrat/cbe7a48ba8aaca9a00dd to your computer and use it in GitHub Desktop.
Save imelgrat/cbe7a48ba8aaca9a00dd to your computer and use it in GitHub Desktop.
Use .htaccess to disable execution (and send files to the browser) of CGI-based files. Full article at: http://imelgrat.me/security/wordpress-htaccess-file-protect/
AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi
Options -ExecCGI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment