Elmo Erasmus
asked on
Protect HTML code
Hi All
Is there a way to hide or pasword protect HTML code so that users can not access is? I need to do this because my code contains things like passwords.
Thanks in advance
Elmo
Is there a way to hide or pasword protect HTML code so that users can not access is? I need to do this because my code contains things like passwords.
Thanks in advance
Elmo
There's no way to protect a html file, as the browser has to be able to read and interpret it, the user will be able to do it too. Not even an external js file will help. The password check has to happen server-side, as well as all sensitive information should be dealt with on the server and never be delivered to the user's browser. Have the passwords e.g. in a database and access them via server-side scripts. Never in the html/js that is being sent to the user...
ASKER
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>to post an obfuscated test page containing passwords...
Or the link to such a page.
Or the link to such a page.
ASKER
We found another way around it. Originally the company used SQL Authentication to access the data we changed it to Windows Authentication. Thanks for the help