Author Topic: How to protect show directory  (Read 13020 times)

Offline hcl

  • Jr. Member
  • **
  • Posts: 14
How to protect show directory
« on: October 18, 2007, 09:41:23 PM »
Hi all
..how to protect directory http://mail.mydomain.tld/skin/ or http://mail.mydomain.tld/program/ for not show guest on the web ?

if guest click link http://mail.mydomain.tld/skin/ there can show file, how to protect ?
let me know
I'm use RoundCube with:
Linux 2.6.18-8.el5 (Centos 5)
QMAIL 1.03
MySQL 14.12 Distrib 5.0.22
Courier-IMAP-4.0.2
Apache/2.2.3
Clamav 0.91.2 with SIMCAN 1.3.1

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: How to protect show directory
« Reply #1 on: October 18, 2007, 09:48:59 PM »
Just make a new file index.html and upload it to the sever that will keep it from showing up.

Offline hcl

  • Jr. Member
  • **
  • Posts: 14
Re: How to protect show directory
« Reply #2 on: October 18, 2007, 09:56:01 PM »
Good idea - im forget -lol- 8)

Im write custom page here:
Code: [Select]
<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01//EN&quot; &quot;[url]http://www.w3.org/TR/html4/strict.dtd&quot;>[/url]
<HTML><HEAD><TITLE>Directory listing is denied</TITLE>
<META HTTP-EQUIV=&quot;Content-Type&quot; Content=&quot;text/html; charset=Windows-1252&quot;>
<STYLE type=&quot;text/css&quot;>
 BODY { font: 8pt/12pt verdana }
 H1 { font: 13pt/15pt verdana }
 H2 { font: 8pt/12pt verdana }
 A:link { color: red }
 A:visited { color: maroon }
</STYLE>
</HEAD><BODY><TABLE width=500 border=0 cellspacing=10><TR><TD>

<h1>Directory listing is denied</h1>
The Web server is configured not to display a list of the contents of this directory.
<hr>
<p>Please try the following:</p>
<ul>
<li>Contact the Web site administrator if you believe this directory should allow browsers to display a list of its contents.</li>

</ul>
<h2>HTTP Error 403.14 - Forbidden: Directory listing denied.<br />
APACHE </h2>
<hr>
<p>Technical Information (for support personnel)</p>
<ul>
<li>Go to <a href=&quot;[url]http://httpd.apache.org/&quot;>apache[/url] </a> and perform a title search for the words <b>HTTP</b> and <b>403</b>.</li>

<li>Open <b>httpd Help</b>, which is accessible in httpd Manager (apache),
 and search for topics titled <b>Web Site Setup</b>, <b>Securing Your Site with Web Site Permissions</b>, and <b>About Custom Error Messages</b> on <a href=&quot;[url]http://httpd.apache.org/docs/&quot;>here</a>[/url] </li>
</ul>

</TD></TR></TABLE></BODY></HTML>

I'm use RoundCube with:
Linux 2.6.18-8.el5 (Centos 5)
QMAIL 1.03
MySQL 14.12 Distrib 5.0.22
Courier-IMAP-4.0.2
Apache/2.2.3
Clamav 0.91.2 with SIMCAN 1.3.1