Jump to content

Recommended Posts

Is there a PHP script. That when someone tries to view the source of a website, it will not let them. Or allow them to, but it will say "You are not allowed to view the source of this website."

 

Something like that.

 

The reason is because I have a very expensive template design and do not want anyone ripping it.

 

Or even looking at the source.

Link to comment
https://forums.phpfreaks.com/topic/119036-viewing-source/
Share on other sites

As cooldude pointed out, it's impossible with any technology to stop someone from looking at the source of your web page. You can stop people from right clicking (in internet explorer), but that doesn't stop viewsource:, disabled javascript, ctrl-u, or view -> page source... disabling right clicking really only serves to annoy people who aren't trying to view your source.

Link to comment
https://forums.phpfreaks.com/topic/119036-viewing-source/#findComment-612971
Share on other sites

http://www.iwebtool.com/html_encrypter

 

if you really want to...kinda stupid if you ask me...

 

Would work if the user base wasn't very tech savvy.  All it does is hex encode it though.

 

 

 

sith717, to put it bluntly, to be able to render something on the client side, the client must know what it is rendering, yes?  That would if I were like:

 

"Ok, I'm going to ask you a math question.  I can't tell you it though.  What's the answer?"

 

lol

Link to comment
https://forums.phpfreaks.com/topic/119036-viewing-source/#findComment-613118
Share on other sites

http://www.iwebtool.com/html_encrypter

 

if you really want to...kinda stupid if you ask me...

 

Would work if the user base wasn't very tech savvy.  All it does is hex encode it though.

 

 

 

sith717, to put it bluntly, to be able to render something on the client side, the client must know what it is rendering, yes?  That would if I were like:

 

"Ok, I'm going to ask you a math question.  I can't tell you it though.  What's the answer?"

 

lol

42...duh!

Link to comment
https://forums.phpfreaks.com/topic/119036-viewing-source/#findComment-613212
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.