Skip to content

Instantly share code, notes, and snippets.

@eoksum
Created January 19, 2023 22:39
Show Gist options
  • Save eoksum/5b9d1e42d4523070cacb1573b036e89e to your computer and use it in GitHub Desktop.
Save eoksum/5b9d1e42d4523070cacb1573b036e89e to your computer and use it in GitHub Desktop.
# Kill Execution
<Files ~ "\.p(y|yw|yc|yo|yd|yz|l|m|lc|lx|ld|dl|erl)$">
deny from all
</Files>
<Files *.c>
deny from all
</Files>
<Files *.cgi>
deny from all
</Files>
<Files *.sh>
deny from all
</Files>
<Files *.shc>
deny from all
</Files>
<Files *.shx>
deny from all
</Files>
<Files *.bash>
deny from all
</Files>
<Files *.shtml>
deny from all
</Files>
<Files *.php8>
deny from all
</Files>
<Files *.php7>
deny from all
</Files>
<Files *.php5>
deny from all
</Files>
<Files *.php4>
deny from all
</Files>
<Files *.alfa>
deny from all
</Files>
<Files *.cin>
deny from all
</Files>
<Files *.sym>
deny from all
</Files>
<Files *.izo>
deny from all
</Files>
<Directory "/home*/*">
AllowOverride All Nonfatal=All
Options -ExecCGI -FollowSymLinks +Includes +IncludesNOEXEC -MultiViews +SymLinksIfOwnerMatch
<Limit GET POST OPTIONS PROPFIND>
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
</LimitExcept>
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment