Apache Security

Hi I have an Apache Server, I am going to have a folder structure that would be impossible for anyone to guess. I intend on disabling directory browsing. The directories will contain customer call recordings. I have another web application hooking into these recordings to allow the customer to play the mp3 file.

From a security point of view is there any way that the public could possibly browse or gain access to the files by other means and thus gaining access to these files?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
If they can get an actual URL for one, they can start guessing others.  There are ways to store files outside your web directories (if it is your server) and use your web application to deliver them to the customer indirectly instead of with a valid URL.  Of course when you do that, you need to make sure the listener is a valid logged in customer.  Use HTTPS to deliver and access all your content.
don237Author Commented:
Thanks Dave, don't suppose you have any pointers to "deliver this indirectly instead of a valid url"?  I have never used a technique like this before. I'm using php in my application..
Dave BaldwinFixer of ProblemsCommented:
It's like this.  This is on Windows.  The only catch is that you have to have permission to read the files from the web server.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

<title>fread outside web root file</title>
<h1>fread outside web root file</h1>
$handle = fopen("C:\\dibsplace\\lptracert.txt", "r");
$contents = fread($handle, 8192);
echo "<pre>$contents</pre>";

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

don237Author Commented:
Thanks Dave
Dave BaldwinFixer of ProblemsCommented:
You're welcome, glad to help.

I was under the impression that this also works

<Directory /var/www/html>
  Options -Indexes

or to trap all paths.

<Directory />
  Options -Indexes
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.