Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Apr 2004
    Posts
    21

    Default Authorizing Folders - protect from public view

    Hello,

    I am wondering if anyone knows how to protect a folder's contents (ie images files) from public view while still allowing the page that contains the images to be viewed. If I put the address (for example) - www.mysite.com/images/ - I get a page with the list of my images - I would like the public to see a "You are not authorized to view this page" page instead but I know my permissions must be 755. Does anyone have a solution to this?

    I tried password protection, but that is not what I need . . .

    Thanks!!!
    Last edited by desi6n; 05-29-2004 at 11:52 AM.

  2. #2
    Member
    Join Date
    Apr 2004
    Posts
    21

    Default

    I found the answer! Index manager!

    Is there any way to create a default page that people will view if they try to access the index of a folder?

  3. #3
    Member mickalo's Avatar
    Join Date
    Apr 2002
    Location
    N.W. Iowa
    Posts
    753

    Default

    Originally posted by desi6n
    I found the answer! Index manager!

    Is there any way to create a default page that people will view if they try to access the index of a folder?
    create a simple 'index.html' and put into the folder, then when they try to view this folder, they will get the index file instead of the 403 access denied error

    Mickalo

    Thunder Rain Internet Publishing

    Providing Internet Solutions that work!
    Custom Perl and Database Programming

  4. #4
    Member GeekPatrolMille's Avatar
    Join Date
    Mar 2004
    Location
    McKinney, Texas, USA
    Posts
    84

    Default

    This seems to be a common question... One that I was in search of as well up till a short while ago... I worked this into the /etc/httpd/conf/httpd.conf file just after the section
    <Directory /home/*/public_html>
    ...
    ...
    ...
    </Directory>

    #################################################################################################### gmiller 2004/05/13
    # added to restrict Directory Listing by default to all sites server-wide

    <Directory /home/*/public_html>
    Options -Indexes
    </Directory>

    ####################################################################################################


    Causes the directory listings to be disabled completely unless the .htaccess file in the site directory explicitly enables the feature.

    Hope this helps...
    -greg

  5. #5
    Member
    Join Date
    Apr 2004
    Posts
    21

    Default

    Thanks for the help!!!

Similar Threads & Tags
Similar threads

  1. view accounts public html with ~cpuser
    By DavidS in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-28-2010, 08:17 PM
  2. Webalizer - public view
    By Arvy in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-06-2008, 08:47 AM
  3. Public View Awstats CGI
    By Planet_Master in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 04-17-2007, 12:12 PM
  4. How to protect some folders to be in cpanel backup?
    By monoblue in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-02-2006, 06:41 AM
  5. Can you have 2 public folders?
    By clarocque in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 12-08-2005, 12:11 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube