Forum Moderators: open
<BODY>
<SCRIPT LANGUAGE="JavaScript">
var password = ''
password=prompt('Please enter your password:','');
if (password!= null) {
location.href= password + ".html";
}
</SCRIPT>
</BODY>
So my question is:
Is it possible for a website viewer to see all the filenames on my server? Perhaps to bring up some kind of index to see all the files on my server?
If so they would be able to crack this password system. Tragedy!
By the way - I know that server side is the way to go for security - but just humour me. I am trying to do it with javascript.
Would really appreciate some advice. Thanks guys.
Thanks for your post mate. Just wondering what u mean by the above - I know that I can access my directories with Perl and CGI. Do u mean visitors to my website - who hypothesise a weakness and with their own server - could use Perl and CGI on their server to access my directories, on my server?