Forum Moderators: open

Message Too Old, No Replies

Control the browser - disable View Source

Can this be done?

         

creative craig

1:59 pm on Sep 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



My new boss has said that he has seen a site that disabled the user from looking at the source code through the Veiw - Source in IE.

I have never seen it done like that before, Has anyone else seen this?

Thought I best investigate to keep the new boss happy ;)

Craig

benihana

2:17 pm on Sep 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



could you pop-up a window with no tool bars, as you would for an ordinary pop up, and then use a no-right-click javascript?

only way i can think of...

skipfactor

2:18 pm on Sep 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You should advise against this practice, but here's some discussion [webmasterworld.com]

NickH

2:20 pm on Sep 2, 2003 (gmt 0)

10+ Year Member



I doubt this possible, though I'm sure obstacles can be placed in the way of the casual user. Can "Save As" be disabled? What's to stop someone viewing the source for the Google cache? Or validating the page at W3C, and selecting "Show Source"!

If I happened to notice this while I was viewing a site, I'd leave immediately. Firstly, I'd wonder what they were trying to hide. It also goes against the open ethos of the Web.

Nick

benihana

2:22 pm on Sep 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



i dont think the right/wrong or ways round such a thing are the question, craig just wants to do whats hes asked by his new boss...

NickH

2:32 pm on Sep 2, 2003 (gmt 0)

10+ Year Member



i dont think the right/wrong or ways round such a thing are the question, craig just wants to do whats hes asked by his new boss...

Surely Craig's feedback should mention the potential pitfalls of such a move, not just whether it's technically feasible?

Nick

creative craig

2:45 pm on Sep 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks for posts :)

I know its a bad idea, I have just moved into a job where the whole 600 page site has the no right click script on it. People keep pinching his images :( so for now I will leave it as it is.

Thats ok skipfactor, I know the pitfalls of it :)

Craig

skipfactor

3:18 pm on Sep 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've read of images being snagged simply because of the silly no right-click.

A water mark, "sample" stamp on your images, or a transparent gif on top of your images might deter the technically challenged, but if they want it they can get it.

A few sites link to my webcam image (not the page itself) but it doesn't bother me; they show up in my backlinks. :)

creative craig

3:59 pm on Sep 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



These images are the guys own that have been collected over several years and are of a very high quality.

In the travel industry, everyone seems to be lazy and steal his photos!

Craig

ronin

4:29 pm on Sep 2, 2003 (gmt 0)

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



Craig>

I have a similar problem with the photography on my site!
I think what you need to explain to your boss is that a different approach is needed.

Once the image has downloaded onto someone's computer, it doesn't matter how much the source code or the right click has been disabled... the image is on the computer and can easily be retrieved by going to the 'Temporary Internet Files' folder on windows (for example).

Anytime the IE browser menu bar is disabled, all you need to do is press CTRL+N and a new browser comes up, displaying exactly the same page, but with a menu bar.

Just two examples, but it shows how easy it is to steal code and images if you're determined.

I think the best solution by far is to watermark the images. Send me a sticky if you're interested and I'll show you how I watermarked mine non-invasively in a way that practically guarantees, the only way someone can use and display my images means they will be advertising my site at the same time.

txbakers

4:30 pm on Sep 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If he wants to post his pictures, he has to bear the risk of them being taken.

If he wants to sell his pictures, he will have to watermark each one he displays on line and sell the real file.

Take a look at any of the big stock photography houses online. Comstock comes to mind right away.

creative craig

4:42 pm on Sep 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The pictures are just to display areas that we offer holidays to (being as general as I can).

I know about the ctrl+n, the temp files etc...

Ronin, I will sticky you about the watermark info.

Cheers everyone ;)

Craig

BergtheRed

11:36 pm on Sep 2, 2003 (gmt 0)

10+ Year Member



NickH: Firstly, I'd wonder what they were trying to hide. It also goes against the open ethos of the Web.

maybe nothing. maybe the operative word should be "protect", not hide. spend a couple hours ( or days even ) coding up a page layout or some script. then have some "right-click kiddie" come rip it off and proudly proclaim it as their own. possibly rip your whole site even. possibly find a way to make a buck or two ( or many even ) off of it.

as for the "open ethos" of the web --i thought the ethos was that the "information" is free, not the "skull sweat" that went into making the back end of it work or the decorations on the "pretty store front" ...

creative craig

10:22 am on Sep 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



BergtheRed got it one :)

Craig

NickH

11:26 am on Sep 3, 2003 (gmt 0)

10+ Year Member



I'm not trying to condone image theft, or any other kind of theft.

There are all kinds of legitimate reasons why someone might want to right-click on a page/image, or view the source. (Follow the link posted by skipfactor for some examples.) In trying to prevent this, you risk annoying the vast majority of users who have no ill intent, while failing to stop the truly criminal.

Nick

BergtheRed

3:33 am on Sep 4, 2003 (gmt 0)

10+ Year Member



<chuckle> don't worry Nick --i'm not trying to say you were. just pointing out another perspective. having "right click -> save as" disabled won't stop anybody who's determined enough. you can dig it out of a netscape cache lickity-split. but it will at least deter the casual user. will they be annoyed? maybe. probably. who can say for certain. but depending on the "what" or "why" they're doing it --it's stealing. one could even liken it to somebody walking into a store, picking up a magazine, browsing through it, tearing out a page or two because that's all they really liked and putting it back on the rack.

and yes ( as you've probably guessed ... ), i happen to use a right click disable on a lot of my stuff. along with a .htaccess file full of know "site rippers". and from skipfactors link: i did especially like the idea of a transparent .GIF as the table background ... ;-)

tedster

4:08 am on Sep 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



By the way, anyone hoping to protect against casual theft of images should turn off the IE6 Image Toolbar for their page, or all the right click protection in the world is fruitless.

Disable IE6 Image Toolbar functions for an individual image:
<img src="image.jpg" galleryimg="no">

Disable IE6 Image Toolbar functions for all images on the page:
<meta http-equiv="imagetoolbar" content="no">

Enable IE6 Image Toolbar functions for a single image
after disabling for the entire page (by using the meta tag):
<img src="image.jpg" galleryimg="yes">

You can use the values "true" and "false" as well as "yes" and "no"
with the gallerying attribute.

creative craig

8:39 am on Sep 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Good point tedster ;)

Craig