Link to home
Start Free TrialLog in
Avatar of Elmo Erasmus
Elmo ErasmusFlag for Namibia

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
Avatar of TName
TName

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...
Avatar of Elmo Erasmus

ASKER

Hi
I found something called HTML Guardian at www.portware.com
ASKER CERTIFIED SOLUTION
Avatar of TName
TName

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
>to post an obfuscated test page containing passwords...
Or the link to such a page.
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