homepage Welcome to WebmasterWorld Guest from 54.166.96.101
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

    
Right mouse click defeated !
view source protected
rayjam

10+ Year Member



 
Msg#: 148 posted 1:30 pm on Dec 6, 2000 (gmt 0)

I was browsing a site the other day and wanted to look at the source. As soon as I right clicked a message appeared warning me not to attempt to steal the html code. Does anyone out there know how this was done?

 

NFFC

WebmasterWorld Senior Member nffc us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 148 posted 1:39 pm on Dec 6, 2000 (gmt 0)

<script language="javascript">
function Right() { if (event.button==2) { alert('Too Bad....You Cannot Have It All!!') } } document.onmousedown=Right
</script>

Someone with more knowledge will be along shortly to correct the code. :)

oilman

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 148 posted 4:07 pm on Dec 6, 2000 (gmt 0)

you could also go back with JavaScript turned off and right click to your heart's content ;)

msgraph

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 148 posted 4:31 pm on Dec 6, 2000 (gmt 0)
Or you could just use Telnet to...

GET http://#domain#/ HTTP/1.0

Then copy all the source code that is displayed.

tedster

WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 148 posted 5:08 pm on Dec 6, 2000 (gmt 0)

You can also take it from your cache. So many toys!

GWJ



 
Msg#: 148 posted 7:20 pm on Dec 6, 2000 (gmt 0)

Or view then page souce in NN.

rayjam

10+ Year Member



 
Msg#: 148 posted 7:45 pm on Dec 6, 2000 (gmt 0)

I love this forum!

JamesR

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 148 posted 7:53 pm on Dec 6, 2000 (gmt 0)

Or select "view" then "source" from the drop down menu at the top of IE

Air

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 148 posted 6:18 am on Dec 12, 2000 (gmt 0)

......Or

you can spider it and get the source.

Or

You can use an HTML editor and "open from web".

littleman

WebmasterWorld Senior Member littleman us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 148 posted 7:33 am on Dec 12, 2000 (gmt 0)

>......Or

>you can spider it and get the source.

use LWP::Simple;
$_ = get("http://www.yahoo.com");
open OUT, ">save.txt";
print OUT $_;
close OUT;

rayjam

10+ Year Member



 
Msg#: 148 posted 11:45 am on Dec 12, 2000 (gmt 0)

Interestingly enough the view source method was disabled too! Does anyone know the code to achieve that?

littleman

WebmasterWorld Senior Member littleman us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 148 posted 6:56 pm on Dec 12, 2000 (gmt 0)

I believe the simplest way to get around javascript tricks is to type 'view-source:' + the url in your address bar. If you use netscape you'd go like this:
view-source:www.webmasterworld.com/forum23/148.htm
in MSIE you need to add the 'http://' like this:
view-source:http://www.webmasterworld.com/forum23/148.htm

If you find the code please print it here, I'm sure many of us would like to look at it.

rcjordan

WebmasterWorld Senior Member rcjordan us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 148 posted 7:00 pm on Dec 12, 2000 (gmt 0)

Using NS4, just do a "Save As" and copy the files to local.

tedster

WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 148 posted 2:46 am on Dec 13, 2000 (gmt 0)

I'd love to see how View Source can be disabled. As I understand it, that function reads the files locally -- that is, the option is grayed out until the download is complete to your own drive, and then it displays your cached copy.

Disabling View Source still could discourage casual copying, but casual copying is not the big problem, it's intentional plagiarism for profit -- and that's a lot harder to prevent.

Marcia

WebmasterWorld Senior Member marcia us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 148 posted 7:56 am on Dec 19, 2000 (gmt 0)

Using view-source: and saving the page in NS4 both resulted in this:

<!-- Browser Detective - Protected Source Code -->
<!-- Your IP Address Is Being Logged! -->

Now, I happen to know that this web designer spams using a hidden frame with tiny invisible text inside a 1 pixel high table and multiple title and meta tags - so I know what's in there, all right. I've seen it on her site and some of her client sites.

But this is the first time I've seen the source code protected like this.

msgraph

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 148 posted 12:34 pm on Dec 19, 2000 (gmt 0)

That "Your IP Address Is Being Logged!" is a bunch of garbage. Just a little comment tag they throw in to scare off people.

Edited by: msgraph

Marcia

WebmasterWorld Senior Member marcia us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 148 posted 2:55 pm on Dec 19, 2000 (gmt 0)

>>Your IP Address Is Being Logged!" is a bunch of garbage

Oh, I know - it's no big thing if it is. The "no right click generates pop-up boxes.

I got to the source code anyway - Just went to File>Edit in Netscape, and the source opened in Composer. Got it with "Edit" in IE also. It isn't always that easy, and there sure was nothing worth the trouble - same old stuff.
I did want to see how the view>source was disabled on that page.

No Right Click is at dynamicdrive.com

There's a version for just graphics, so the other might do source code also. The people who grab my code won't go past the pop-up.

Billythekid

10+ Year Member



 
Msg#: 148 posted 8:25 am on Dec 20, 2000 (gmt 0)

Just a quick note, the no right click may save a few unknowing souls from stealing source code, (the ones to worry about can do it anyway, it's easy) but it causes alot of people who right click to save a shortcut to the site to get very angry and leave. If you do a right click trick, be aware that you should not place rude comments at least. From my experience, it isn't even worth the time to have a rightclick script. Alienates too many folks.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved