Hi all,
I'm using shared hosting in JaguarPC, and I want others can't browser my directory, they can only see the web pages by links in browser.
Can you give me solution ? Thanks
Regards
Thang Nguyen
This is a discussion on How to prevent browsing directory ? in the Shared & Semi-Dedicated forum
Hi all,
I'm using shared hosting in JaguarPC, and I want others can't browser my directory, they can only see the web pages by links ...
Hi all,
I'm using shared hosting in JaguarPC, and I want others can't browser my directory, they can only see the web pages by links in browser.
Can you give me solution ? Thanks
Regards
Thang Nguyen
I put the following in the root .htaccess file (/public_html/ directory):
Give it a try: http://www.lenon.com/public/Code:# NO FILES will be listed in folders, even if index files are missing. Options -Indexes![]()
DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.
Thanks Vin DSL,
I made .htaccess file and uploaded to folder i want to prevent, however then I can't access files by web browser. I checked in Error Log and its error is .htaccess:
Invalid command '\xef\xbb\xbfOptions', perhaps mis-spelled or defined by a module not included in the server configuration
Thanks
Regards
The .htaccess file contents should only contain "Options -Indexes" (without the quotes). It looks as though you are trying to specify a path within that file and that is incorrect. As a security precaution, Apache prevents any access to the content controlled by an .htaccess file when there is an error in the .htaccess.
.htaccess files apply to the directory in which they reside and any directories below that directory and are cumulative, so an .htaccess file placed at the top of your site will control the entire site, a second placed at /services will control /services/abc, /services/def, etc.
--Jason
Thanks alot, Jason. Problem was fixed.
Copyright © 2011 JaguarPC.com
Bookmarks