Guest User

Untitled

a guest
Jun 18th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. diff --git a/assets/.htaccess b/assets/.htaccess
  2. index ac6412a..ff02f99 100644
  3. --- a/assets/.htaccess
  4. +++ b/assets/.htaccess
  5. @@ -1,2 +1,29 @@
  6. -RemoveHandler .php .phtml .php3 .php4 .php5 .inc
  7. -RemoveType .php .phtml .php3 .php4 .php5 .inc
  8. +# We disable PHP via several methods
  9. +# Replace the handler with the default plaintext handler
  10. +AddHandler default-handler php phtml php3 php4 php5 inc
  11. +
  12. +# Whitelist appropriate assets files.
  13. +# Note that you will need to maintain this whitelist yourself if you modify File::$allowed_extensions
  14. +#
  15. +# To add an extension to the list, you need to put another string of the form "ext|" on the
  16. +# FilesMatch line, inside the parentheses.
  17. +#
  18. +# For example, to add *.exe files to list, change this line:
  19. +#
  20. +# <FilesMatch "\.(html|htm|xhtml...
  21. +#
  22. +# To this:
  23. +#
  24. +# <FilesMatch "\.(exe|html|htm|xhtml...
  25. +#
  26. +# Once you do this, visitors will be able to download *.exe files that are uploaded to the assets
  27. +# directory.
  28. +#
  29. +Deny from all
  30. +<FilesMatch "\.(html|htm|xhtml|js|css|bmp|png|gif|jpg|jpeg|ico|pcx|tif|tiff|au|mid|midi|mpa|mp3|ogg|m4a|ra|wma|wav|cda|avi|mpg|mpeg|asf|wmv|m4v|mov|mkv|mp4|swf|flv|ram|rm|doc|docx|txt|rtf|xls|xlsx|pages|ppt|pptx|pps|csv|cab|arj|tar|zip|zipx|sit|sitx|gz|tgz|bz2|ace|arc|pkg|dmg|hqx|jar|xml|pdf)$">
  31. + Allow from all
  32. +</FilesMatch>
  33. +
  34. +# Turn the PHP engine off
  35. +php_flag engine off
  36. +
Add Comment
Please, Sign In to add comment