Welcome to WebmasterWorld Guest from 54.159.50.111

Forum Moderators: phranque

Message Too Old, No Replies

Right mouse click defeated !

view source protected

     
1:30 pm on Dec 6, 2000 (gmt 0)

Junior Member

10+ Year Member

joined:Oct 30, 2000
posts:105
votes: 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?
1:39 pm on Dec 6, 2000 (gmt 0)

Senior Member

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

joined:June 22, 2000
posts:3604
votes: 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. :)

4:07 pm on Dec 6, 2000 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 10, 2000
posts:2151
votes: 0


you could also go back with JavaScript turned off and right click to your heart's content ;)
4:31 pm on Dec 6, 2000 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 29, 2000
posts:1425
votes: 0

Or you could just use Telnet to...

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

Then copy all the source code that is displayed.

5:08 pm on Dec 6, 2000 (gmt 0)

Senior Member

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

joined:May 26, 2000
posts:37301
votes: 0


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

GWJ

7:20 pm on Dec 6, 2000 (gmt 0)

Full Member

joined:June 21, 2000
posts:339
votes: 0


Or view then page souce in NN.
7:45 pm on Dec 6, 2000 (gmt 0)

Junior Member

10+ Year Member

joined:Oct 30, 2000
posts:105
votes: 0


I love this forum!
7:53 pm on Dec 6, 2000 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 23, 2000
posts:1277
votes: 0


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

Air

6:18 am on Dec 12, 2000 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 10, 2000
posts:1253
votes: 0


......Or

you can spider it and get the source.

Or

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

7:33 am on Dec 12, 2000 (gmt 0)

Senior Member

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

joined:June 17, 2000
posts:2924
votes: 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;

11:45 am on Dec 12, 2000 (gmt 0)

Junior Member

10+ Year Member

joined:Oct 30, 2000
posts:105
votes: 0


Interestingly enough the view source method was disabled too! Does anyone know the code to achieve that?
6:56 pm on Dec 12, 2000 (gmt 0)

Senior Member

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

joined:June 17, 2000
posts:2924
votes: 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.

7:00 pm on Dec 12, 2000 (gmt 0)

Senior Member

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

joined:Apr 22, 2000
posts:9138
votes: 0


Using NS4, just do a "Save As" and copy the files to local.
2:46 am on Dec 13, 2000 (gmt 0)

Senior Member

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

joined:May 26, 2000
posts:37301
votes: 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.

7:56 am on Dec 19, 2000 (gmt 0)

Senior Member

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

joined:Sept 29, 2000
posts:12095
votes: 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.

12:34 pm on Dec 19, 2000 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 29, 2000
posts:1425
votes: 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

2:55 pm on Dec 19, 2000 (gmt 0)

Senior Member

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

joined:Sept 29, 2000
posts:12095
votes: 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.

8:25 am on Dec 20, 2000 (gmt 0)

New User

10+ Year Member

joined:Dec 29, 2003
posts:18
votes: 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.