Customizing SMF > SMF Coding Discussion

[TIP] Disable access to backup files (*.php~) from browser

(1/1)

phantomm:
If you want to disable access to backup files add in .htaccess this code:


--- Code: ---<Files ~ "\.php~$">
Order allow,deny
Deny from all
</Files>

--- End code ---

Useful if you have custom style, and after installing some mods SMF creates backup files - anyone can see their content.

Navigation

[0] Message Index

Go to full version