new_ratan
Nov 2 2011, 04:09 PM
Hi,
I want to restrict users to access js folder and files directly from url.
To achieve this I have added one .htaccess file within the js folder having following code
Options -Indexes
But because of this I'm getting 500 internal server error stating
"You have reached this page due to a malfunctioning .htaccess file"
Please help me to fix this issue
Thanking in advance
Thanks,
Ratan Pal
ssfdre38
Nov 2 2011, 04:21 PM
you can not change the index options on our servers
new_ratan
Nov 2 2011, 04:31 PM
QUOTE(ssfdre38 @ Nov 2 2011, 04:21 PM)

you can not change the index options on our servers
Is there any way to achieve what I want to do?
Thanks,
Ratan Pal
ssfdre38
Nov 2 2011, 05:24 PM
no cause its a server wide setting and we do not allow users to change it
cofa
Feb 3 2012, 04:09 AM
Best way to deal with this is to make sure every folder has an index file, then that will be all people can see when they try to view a directory. All it needs is a message something like, "sorry, this folder is not browsable" and maybe a link back to the main page?
HarshGupta
May 23 2012, 09:38 AM
How a user or your website visitor would know the full path of JS files? Ofcourse, there is one possible way, is you have defined the complete path in HTML section. You shouldn't do this.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.