Hiding specific directories from others (related to server)

Discussion in 'Site & Server Administration' started by cchetanonline, Jul 11, 2008.

  1. #1
    suppose i have

    Google.com/index.php << should be visible to all

    but i want specific folder e.g.
    Google.com/includefiles/

    to be hidden from others
    i know about robots.txt (but its for search engine)
    i need solutions so that i can disallow Direct access to such directories to public.

    That folder doesnt have any index page, so it shows direct file structure.(and files can be download, thats what my problem is)
    I am on CPanel on Liteon server

    Please give me solution.
    Thanks in advance
     
    cchetanonline, Jul 11, 2008 IP
  2. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #2
    You could:

    - Use an equivalent .htaccess to deny access to that folder
    - Create a blank index.php file (and hope people don't guess your filenames)

    Hope that helps you :)
     
    jayshah, Jul 12, 2008 IP
    cchetanonline likes this.
  3. cchetanonline

    cchetanonline Banned

    Messages:
    2,143
    Likes Received:
    244
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks
    Created Blank Index.html files
    Now files are somewhat hidden :)
     
    cchetanonline, Jul 12, 2008 IP