ZenphotoCMS Forum
Protect you zp-config.php via .htaccess - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Protect you zp-config.php via .htaccess (/thread-2000.html)



Protect you zp-config.php via .htaccess - nilswindisch - 2007-12-30

just place a .htaccess file in zp-core with

`

``

Order deny,allow

deny from all

`

[i]adapted from the wordpress security guide (blog).[/i]




Protect you zp-config.php via .htaccess - sbillard - 2007-12-30

Will this still allow setup.php to read this and possibly write to it?




Protect you zp-config.php via .htaccess - nilswindisch - 2007-12-30

reading is no problem (otherwise the zenphoto installation would be unaccessible immediately) and writing should work as well. "deny" protects against wget and alike but server files (like setup.php) will still have full access.