Jump to content


Photo

Hide html code from users


  • Please log in to reply
4 replies to this topic

#1 Gruzin

Gruzin
  • Members
  • PipPipPip
  • Advanced Member
  • 448 posts
  • LocationGeorgia

Posted 23 September 2006 - 01:02 AM

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
I don't need your script, I'll try to write it myself

#2 michaellunsford

michaellunsford
  • Members
  • PipPipPip
  • Advanced Member
  • 1,023 posts
  • LocationLouisiana, USA

Posted 23 September 2006 - 03:33 AM

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

#3 Gruzin

Gruzin
  • Members
  • PipPipPip
  • Advanced Member
  • 448 posts
  • LocationGeorgia

Posted 23 September 2006 - 08:00 PM

Thanks a lot mate ;)
I don't need your script, I'll try to write it myself

#4 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 25 September 2006 - 04:02 AM

Don't bother... whatever you're coding, other people have as well.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.

#5 oatssi46

oatssi46
  • Members
  • Pip
  • Newbie
  • 8 posts

Posted 27 September 2006 - 06:17 PM

a




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users