Jump to content

Archived

This topic is now archived and is closed to further replies.

Gruzin

Hide html code from users

Recommended Posts

Hi guys,
I need to hide hmlt code from user, any ideas how can I do that? actually I've googled it, but... I don't need to disable right click, just to disable from View>Source

Thanks for your help,
George

Share this post


Link to post
Share on other sites
it's tough to know what to do without knowing what you're trying to hide, but here are a few ideas:

1. you _could_ put the secret parts in an attached javascript file that writes the HTML back to your document. then compress (obfuscate) the javascript file with something like packer.
http://dean.edwards.name/packer/
revealing source wouldn't show any of your code. Even if they have the wherewithall to view the javascript page separately, the compression would likely be too confusing to figure out.

2. you could use PHPs GDlib to embed the magic part of your page in an image -- so all they get is a big jpeg, which really doesn't have source to reveal.

3. use Macromedia (Adobe) Flash

Share this post


Link to post
Share on other sites
Don't bother... whatever you're coding, other people have as well.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.