Obfuscating text element value in HTML code

Hi everyone!

I am trying to prevent data theft from webpage. One of the best option is obfuscating HTML code.

In webpage, there are text elements that have values in human readable format (plaintext). I need them to be remained as plaintext, but encoded in HTML code.

I tried the following:

  1. Added HTML element in webpage (UI designer).
  2. Inserted Javascript to obfuscate elements by their ID. For this, I assigned name.
  3. Inserted ID name in the ID attribute of text element.

This does not work. Is my approach correct? Could you please suggest some script?

Thanks,
Orkhan

How do stop viewers from “stealing” rendered elements? Once a value is rendered in a browser there are so many ways of “stealing” whats on screen.

Off course, I understand that there is not absolute guarantee that data will not be stolen. Screenshots, bots and etc. are ways of stealing. My question is about masking HTML code which adds some layer and makes hard to steal data.

This topic was automatically closed after 70 days. New replies are no longer allowed.