mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Update Backup / Restore, now streams backup and restore to disk instead of memory causing memory to run out, sets timeout limit to unlimited, checks backup file contents for anything bad, use php instead shell exec for import of db, added .htaccess for apache to prevent php execution in /uploads/ directory as this is intended for file download only
This commit is contained in:
11
uploads/.htaccess
Normal file
11
uploads/.htaccess
Normal file
@@ -0,0 +1,11 @@
|
||||
php_flag engine off
|
||||
RemoveHandler .php .phtml .php3 .php4 .php5 .php7 .php8
|
||||
RemoveType application/x-httpd-php
|
||||
<FilesMatch "\.(php|phtml|php[0-9])$">
|
||||
Deny from all
|
||||
</FilesMatch>
|
||||
Options -ExecCGI
|
||||
AddHandler cgi-script .cgi .pl .sh .bash .zsh
|
||||
<FilesMatch "\.(cgi|pl|sh|bash|zsh)$">
|
||||
Deny from all
|
||||
</FilesMatch>
|
||||
Reference in New Issue
Block a user