Forum Moderators: open

Message Too Old, No Replies

How to block HTML source?

block HTML source

         

TheKing66

7:06 pm on Feb 2, 2005 (gmt 0)

10+ Year Member



Ok, I had some issues in the past with people stealing the content from my website and claiming it as their own.

Now i did block the right click but im still getting some problems

So i was wondering if there was any way to block the "view source" and "select all" boutons from IE menu

encyclo

7:14 pm on Feb 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld [webmasterworld.com], TheKing66.

There is no effective way to block access to the source code of any page: for the page to be readable by browsers and search engines, the source code has to be accessible, and so can be copied. That's just how the web works: HTML is sent as a text document and interpreted client-side.

Disabling right-click is little more than an annoyance, and it works sporadically in alternative browsers. Even if you succeed, the View Source option in the menu is always present. The person could also use a download tool such as wget, or even get the page from the Google cache without visiting your site at all.

MatthewHSE

7:15 pm on Feb 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



First, Welcome to Webmaster World!

To answer your question, there is no way to fix it so your source code can't be viewed. It's being downloaded to the visitor's computer, and therefore they can view your source no matter what you do.

You can check out this script [dynamicdrive.com] from DynamicDrive; however, it depends on JavaScript to encrypt your source code and I really don't recommend its use.

TheKing66

7:45 pm on Feb 2, 2005 (gmt 0)

10+ Year Member



Thanks guys,

I have also heard about programs that can block text selection.

do you know how it does work?

MatthewHSE

8:10 pm on Feb 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That won't work well either. Anything like that would be javascript, which can easily be turned off with a few clicks. Besides which, you still can't block viewing the page source, and therefore can't keep people from getting your text.

It's also not such a good idea to block text selection. There can be very legitimate uses for selecting text for copy-and-paste.

If you're really concerned about people stealing your content, the best thing to do is to put up a copyright notice, then run periodic searches for a few key phrases. If you find someone who's taken your content, you may then be able to get them to remove it, or if they won't, their ISP may shut them down. In extreme cases you might even take them to court, but most of the advice I've heard on that subject is that yu'd be lucky to even recover your costs, much less gain anything by it.

If you put it on the Internet, anyone can take it. You can't stop it; all you can do is go after the ones who infringe on your rights.

tbear

9:21 pm on Feb 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



If people steal your content deal with it!
Please don't make 'me' pay when I want to open one of your pages in another window (for instance).
As indicated above, those thieves will find a way around your blocks. Innocent users are just miffed by the petty javascript (or whatever) ways of a avoiding view source. (Well, I can check my cache if all else fails).
I'm not a content thief, I feel somewhat upset when you treat me like a thief!
If your content is truly unique, you will have no problems proving that to authorities, if the need arises.
Just my 2 pesetas worth......LOL

TheKing66

9:26 pm on Feb 2, 2005 (gmt 0)

10+ Year Member



yeah i know that some user can find thing to complain about.

but you can still open in a new window by shift+left click
beside i could code all my text to make it harder to other to steal it.

well thanks guys

victor

10:51 pm on Feb 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The solution is trivial.

Don't use HTML -- it's too vulnerable to being copied.

Simply write your own plugin (look at a plugin like Flash for inspiration).

Talk between the server and the plugin in an encrypted binary format of your own devising.

Yes, of course that would inconvenience many potential users who would have to download your plugin before they could get to the content.

But inconveniencing users appears to be acceptable to you, so that shouldn't be a problem for you with this application.

bhartzer

10:55 pm on Feb 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you truly don't want people to steal your content then you'll have to cloak it. Lots of people have been cloaking their sites' content for a while now because of the content-theft problem.

TheKing66

11:00 pm on Feb 2, 2005 (gmt 0)

10+ Year Member



and how can i cloak it?

and a plugin would be way to much trouble and would increase the website size many times.

Harry

3:37 pm on Feb 5, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How about posting contents as images? No one can copy directly and the level of annoyance to viewers is lessened, although present...

RammsteinNicCage

3:44 pm on Feb 5, 2005 (gmt 0)

10+ Year Member



There are a lot of problems with posting your content as images, including much higher bandwidth usage, much slower loading for modem users, people that do not or cannot view images, etc.

Jennifer

Orbite

4:04 pm on Feb 5, 2005 (gmt 0)

10+ Year Member



The rule is simple : if you can display it in a browser, it can be stolen. There is no perfect technical solution.

If your content is worth stealing/protecting, you have 2 choices:

1- Don't publish it on the Web.
or
2- Hire a copyright lawyer.

Harry

4:24 pm on Feb 5, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Jennifer, I'm fully aware of the problems of publishing images. I'm just having a little fun here. ;)

chiron

6:41 am on Feb 9, 2005 (gmt 0)

10+ Year Member



I used some code obfuscation as a sort of "eh, that's cool" client-side trick a few years back, but one drawback I didn't see noted before, one that applies to several methods discussed, was the fact that if isn't beautiful, theft-prone HTML, any attempt at SEO, inclusion, or rank whatsoever is rather handicapped.

Although I guess if you combine encryption with being invisible to the bots, that's a pretty winning combo to keep naughty people from nabbing your masterpiece?

Reid

11:05 am on Feb 9, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



One copyright trick is to deliberatly unclude some wrong info in your content. Some useless little details. If they other guy is publishing the same BS it is a way to prove plagurism.

rocknbil

5:16 pm on Feb 9, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



quote] .... Please don't make 'me' pay when I want to open one of your pages in another window (for instance)..... I'm not a content thief, I feel somewhat upset when you treat me like a thief! ....[/quote]

^ ^ ^ Amen to that! :-)

Here is how **I** (IMO, my take, opinion only, yada yada) resolve this whole issue in my mind.

Those little tricks to disable right-clicks, etc - they are more of an annoyance than security as previously descibed. You are doing more harm than good by using them. Anyone who wants to steal can get around them.

But let's talk about why I (or you, or anyone) want to prevent content theft in the first place. Obviously it's plagiarism. No argument there. But how many times have you viewed source? "Borrowed" an image? Seen a great effect on a website and used part of it in your own design?

I know there is a great difference between stealing and eclecticism, but the point is that imitation is the greatest form of flattery. If someone's stealing from you, then you have something worth stealing. If that's the case, you also have something worth suing for, and there are many ways to prove it.

So focus on making your content most accessable to your valid visitors (remove those right-click thingies! :-) ) and go after the thieves. or thank them for the compliment, and let them know how sorry for them you are for their lack of creativity to the extent of borrowing yours.

Xander4HIM

7:47 pm on Feb 9, 2005 (gmt 0)

10+ Year Member



Hey King there are a few things that you can do to protect your stuff but the first thing you need to do is get a copyright set up for your page. I'll keep you posted.