restrict access to directory

Good day, i would like to restrict access to a particular folder for any externall servers.

I have tried using the "denied all" within HTTACCES file, but that i was unabled to load the songs from that folder afterwards

I would like the directory to be protected similar to the "inc folder" in dolphin root directory.

 

Thanks

Quote · 30 Aug 2011

Create a .htaccess file (or edit the one already) in the directory and add the following:

 

Options -Indexes

 

This should stop the directory contents from being displayed.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 30 Aug 2011

thanks for that it help part of my issue. 

Right now i am building a flash application which connects to a MySQL database and the database is stoared on my account that i have with HOSTFORWEB. when test the application within flash from my desktop i get connected to the database and this is great for developing purposes, but not safe. 

If someone was to somehow figure out where the php file is located on my server, that is used to connect my flash app to the database, they actually do anything that they want to.

So. what i want to do is only allow relative linking to file within a specific folder similar to the way the inc folder is dolphin is arranged. For example... you can only pull information from the header.inc.php file only if file requesting the information is on the same domain.

Thanks

Quote · 30 Aug 2011

 you can create a php file in your public_html which can then call the actual login parameters from above public_html

 

if that makes sense to you. 

thanks for that it help part of my issue. 

Right now i am building a flash application which connects to a MySQL database and the database is stoared on my account that i have with HOSTFORWEB. when test the application within flash from my desktop i get connected to the database and this is great for developing purposes, but not safe. 

If someone was to somehow figure out where the php file is located on my server, that is used to connect my flash app to the database, they actually do anything that they want to.

So. what i want to do is only allow relative linking to file within a specific folder similar to the way the inc folder is dolphin is arranged. For example... you can only pull information from the header.inc.php file only if file requesting the information is on the same domain.

Thanks

 and besides, a php file is parsed prior to being loaded in a browser, so the chances of your dbconnect parameters being located are slim to none. not even worth the hassle of trying to hide.

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 30 Aug 2011

I would just password protect the directory.

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 30 Aug 2011

 its not worth the hassle. consider all of the other applications, wordpress for example, the database parameters are not in a password protected directory

I would just password protect the directory.

 anywho, move the dbconnect.php file above public_html, then have a php file include or require that file, since the server can communicate with a file above public_html, then all is okie dokie, if you are paranoid and feel that you need to take those extra measures. 

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 30 Aug 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.