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?

Thanks.
don237Asked:
Who is Participating?
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.
0
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..
0
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"
 "http://www.w3.org/TR/html4/loose.dtd">

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

Open in new window

0

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
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

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

I was under the impression that this also works


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

or to trap all paths.

<Directory />
  Options -Indexes
</Directory>
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.