Results 1 to 8 of 8
  1. #1

    Question preven them to see the contents of your directory

    hello i have a problem does anyone know a script or knows any tricks that will prevent users or visitors from seeing the contents of my directory this is the example of site which visitors can see its contents that would allow anyone and everyone to see the contents of that folder and it might steal your files or edit some files so its not completely secure, does anyone knows how to prevent it? i dont want to put a password or password protect that directory since i have links that points there.

    any help would be greatly appreciated.
    i7 hassle free

  2. #2
    You may use .htaccess

  3. #3
    Join Date
    Jan 2005
    UK, London
    yea, use a .htaccess file with any of the following options ->

  4. #4
    Join Date
    Apr 2009
    USA / UK
    the easiest and most fool-proof way would be to just create a file named "index.html" in that folder.
    RAM Host -- Premium & Budget Linux Hosting From The USA & EU
    █ Featuring Powerful cPanel CloudLinux Shared Hosting
    █ & Cheap Premium Virtual Dedicated Servers
    Follow us on Twitter

  5. #5
    Personally, I do the same way like ramnet said. Just make a blank "index.html" in the directory.

  6. #6
    I agree with the last two. Just dump a blank index.html file in there. Simple, and you don't have to mess with the htaccess file.

  7. #7
    Join Date
    Aug 2002
    Superior, CO, USA
    I'd dump Bluehost for having 147 hosts on your IP with stupid defaults.

    A blank index.html is a very effective band-aid but what other poorly configured defaults are lurking?
    Need Java help? Want to help people who do? Sit down with a cup of Java at the hotjoe forums.

  8. #8
    Join Date
    Jan 2006
    Or you can use Index manager facility from CPanel(if you are using it) to do it visually.
    ►ExpertWebHost.NET- Instant reliable CPanel hosting since 2008+
    ►Quality Shared, Reseller and VPS hosting
    ►Choose to host from US/Uk/Canada/Netherlands/Australia - 10 locations

Similar Threads

  1. Replies: 7
    Last Post: 01-04-2008, 01:09 AM
  2. Replies: 3
    Last Post: 01-29-2005, 05:00 PM
  3. Php help. Php to show contents of a directory
    By impudicity in forum Programming Discussion
    Replies: 1
    Last Post: 12-04-2002, 08:43 PM
  4. Command to zip up all contents within a directory?
    By GeorgeC in forum Hosting Security and Technology
    Replies: 10
    Last Post: 03-26-2002, 10:32 AM
  5. protecting directory contents
    By jahsh in forum Dedicated Server
    Replies: 4
    Last Post: 10-16-2001, 05:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts