GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Webmaster Q & Fuckin' A (https://gfy.com/forumdisplay.php?f=27)
-   -   Protecting XML config files (https://gfy.com/showthread.php?t=906861)

Project Manager 05-23-2009 08:42 PM

Protecting XML config files
 
How can I protect xml config files from viewing by the user, yet allow my script to read it?

if in .htaccess I deny .xml, then the script can't read it...

Any solution to this?

lacuna 05-26-2009 08:21 PM

Put it outside your web directory, access it via path.

SilentSound 05-27-2009 03:06 AM

...if you put it in .htaccess, the script will be able to read it. htaccess controls files served by apache to the OUTSIDE world - if your script is on the same machine with the right permissions you will be able to read it.

sysk 05-27-2009 08:23 AM

How are you reading the XML file? .htaccess shouldn't block you from reading it unless you use a URL to open it. Use the local path instead.


All times are GMT -7. The time now is 04:53 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123