hide all the source codes

  • ultimate11
  • Student
  • Student
  • ultimate11
  • Posts: 86

Post 3+ Months Ago

Guys! is it possible to hide the source code when you want to view it in browser..like CTRL + U or rightclick+view source code in order that nobody knows. :?:
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6252
  • Loc: Seattle, WA

Post 3+ Months Ago

Short answer: no.

Long answer: No. The web, by its very nature, is open. You'll find a lot of scripts out there that claim to hide your source code, but they only (kind of) work in some web browsers. The bottom line is that if you want someone to see a page, the source must be present on the client's computer. No way around that.
  • sherma
  • Silver Member
  • Silver Member
  • User avatar
  • Posts: 127

Post 3+ Months Ago

Sort of curious as to why you would like to hide the code? Is it for something like templates that you want to sell and you don't want people to just copy them from source when previewing or you just don't want ANY source to show at all?
  • ultimate11
  • Student
  • Student
  • ultimate11
  • Posts: 86

Post 3+ Months Ago

both
  • UniquelyYoursPC
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2997
  • Loc: Canada "A"

Post 3+ Months Ago

I agree with spork. there is no real way to hide the code others can still take what they want.
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6252
  • Loc: Seattle, WA

Post 3+ Months Ago

You can use all the javascript hiding/obfuscation techniques you want. At the end of the day, it's still quite simple to grab the source using wget or curl.

People need to get over the false mindset that only a web browser is capable of retrieving HTML data.
  • Sceptik
  • Banned
  • Banned
  • Sceptik
  • Posts: 4

Post 3+ Months Ago

Maybe you could disable it with javascript, but if someone wants to see it they can disable javascript. And I personally would never again visit a site that disables things like right mouse click.
  • sherma
  • Silver Member
  • Silver Member
  • User avatar
  • Posts: 127

Post 3+ Months Ago

This is by no means an answer to your issue, but you know it's kind of difficult for someone to copy any work done in flash.. not impossible, but for the average person who isn't familiar with it, they're not going to be able to edit without the .fla file ... of course there is still going to be source code .. but it just isn't going to be as helpful.

On the other hand, I don't think I would hide my code if I could. If there is anyone who can learn from something I've done, it would make me feel great. I have learned a lot myself on how to do things by looking at someone else's source code to see how something on a page or site was done.
  • Poly
  • Guru
  • Guru
  • User avatar
  • Posts: 1091
  • Loc: Same place you left me.

Post 3+ Months Ago

If your doing PHP or another server sided language you can encrypt the files, which is mainly helpful if your planning on selling the scripts themselves and don't want end users redistributing them or editing portions of them. If your talking purely browser based sources(HTML, CSS, etc), as spork said, nope. You can set it up so people can't save images, which makes it more difficult to copy a template/site(more difficult meaning they would have to save your code, then take a screenshot of your site and slice it up themselves). Ultimately there is no code obfuscation or encryption that browsers will be able to read, but will prevent users from viewing your source.
  • Mustafa_Aslan
  • Beginner
  • Beginner
  • Mustafa_Aslan
  • Posts: 38

Post 3+ Months Ago

Hi Poly,

People may use whole website downloaders to download whatever attached/linked to your webpage. So, I guess, there is no way around.

What I do, if going to sell template, take a screen shot of all pages and put it on a page to show the potential buyer.

regards,
  • Poly
  • Guru
  • Guru
  • User avatar
  • Posts: 1091
  • Loc: Same place you left me.

Post 3+ Months Ago

As far as the non-server side languages you are correct, as I said there is nothing currently available that will stop people from stealing it. As far as the server side languages, encrypting and file access restrictions prevent any type of whole site downloads from working.
  • sherma
  • Silver Member
  • Silver Member
  • User avatar
  • Posts: 127

Post 3+ Months Ago

I've seen a lot of websites that provide premium templates with demos that are more than just screen shots. They're set up so that you can get a really good idea of how functional they are, but you can't download them.

Maybe you could view their source to see how they do it (how they display a sample of the template without offering the code and files I mean.. )
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23455
  • Loc: Woodbridge VA

Post 3+ Months Ago

You can't block access to source code no matter how hard you try. This topic has been beat to death at ozzu and other forums.
  • Poly
  • Guru
  • Guru
  • User avatar
  • Posts: 1091
  • Loc: Same place you left me.

Post 3+ Months Ago

sherma wrote:
I've seen a lot of websites that provide premium templates with demos that are more than just screen shots. They're set up so that you can get a really good idea of how functional they are, but you can't download them.

Maybe you could view their source to see how they do it (how they display a sample of the template without offering the code and files I mean.. )


Yes ma'am they do attempt to 'hide' it. If you open up one of those previews(Ex: LINK) and view the source code, you will see a line where they load the template:

Code: [ Select ]
<div class="liveclosei">
                        <a href="http://static.livedemo00.template-help.com/wt_36406/"><img src = "http://t.tmimgcdn.com/themes/default/images//livedemo/livedemo-close.png" alt=" " class="livecloseimg"  /></a>
                    </div>
  1. <div class="liveclosei">
  2.                         <a href="http://static.livedemo00.template-help.com/wt_36406/"><img src = "http://t.tmimgcdn.com/themes/default/images//livedemo/livedemo-close.png" alt=" " class="livecloseimg"  /></a>
  3.                     </div>


If you click the link provided there(http://static.livedemo00.template-help.com/wt_36406/) it will load the template. Then its as easy as saving the template or viewing its source code to steal whatever you want.

There are a few other ways of doing it, by loading the template based off a numbering system using Java or PHP, which will hide the full link, however anybody sufficiently advanced enough will be able to get the full URL anyway, and steal the template. Protecting work like this is ultimately a losing battle. Best solution if you have to provide a preview, is use an image that is heavy watermarked.

Post Information

  • Total Posts in this topic: 14 posts
  • Users browsing this forum: No registered users and 52 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.