🔒 Locked
[web] JavaScript help
Advertisement
Original Post
Firstly, if this is for web pages, you should be posting in the web development forum. Thus, I will move this post.
Secondly... please describe in more detail what you are trying to achieve. What sort of file are you hoping to access, and why? Remember javascript runs on the client, not the server. If you allowed a browser to edit a file on any web server the entire web would probably have been destroyed long ago. Therefore you would usually have to access a certain page on your server which is written in a server-side language, which then performs the edits for you. javascript is probably not the correct tool for the job.
Secondly... please describe in more detail what you are trying to achieve. What sort of file are you hoping to access, and why? Remember javascript runs on the client, not the server. If you allowed a browser to edit a file on any web server the entire web would probably have been destroyed long ago. Therefore you would usually have to access a certain page on your server which is written in a server-side language, which then performs the edits for you. javascript is probably not the correct tool for the job.
If you were wanting to do something like that wouldn't you use PERL?
Using client-side script for authentication is a mistake, as the user can trivially bypass it (in most cases).
If you have a file containing usernames and passwords that javascript can read, so can the end-user.
Even if you encrypt the passwords using a one-way function, the user can still do dictionary attacks and/or bypass it.
Mark
If you have a file containing usernames and passwords that javascript can read, so can the end-user.
Even if you encrypt the passwords using a one-way function, the user can still do dictionary attacks and/or bypass it.
Mark
Yes. There are many libraries that allow C programs (or programs written in any language) to access the internet. The curl library seems to be a popular choice. But that's more a topic for the multiplayer and network programming forum.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement