Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
right click save as "off"
Old 07-21-2002, 06:00 AM right click save as "off"
Junior Talker

Posts: 1
Location: phx az
Trades: 0
i've seen sights that can disable the ability to right click and save a picture from the site?

anyone know how this is done?

__________________
Randal Simmons

Please login or register to view this content. Registration is FREE
simmonsrandal is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-21-2002, 06:04 AM Re: right click save as "off"
Chopper's Avatar
Ultra Talker

Posts: 352
Location: Australia
Trades: 0
Quote:
Originally posted by simmonsrandal
i've seen sights that can disable the ability to right click and save a picture from the site?

anyone know how this is done?

Simply just paste this code in your page:

PHP Code:
<script language="javascript">
<!--
var 
message="Sorry, no right-click available; our stuff is protected.";
 function 
click(a) {
 if (
document.all) {
 if (
event.button==2||event.button==3) {
 
alert(message);
 return 
false;
 }
 }
 if (
document.layers) {
 if (
a.which == 3) {
 
alert(message);
 return 
false;
 }
 }
 }
 if (
document.layers) {
 
document.captureEvents(Event.MOUSEDOWN);
 }
 
document.onmousedown=click;
// -->
</script> 
Before you add the script i suggest you read this article by Tiggy!
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

Chopper is offline
Reply With Quote
View Public Profile
 
Old 07-21-2002, 11:08 AM
DaveTodd's Avatar
Evil Psycho Alien

Posts: 684
Location: Sheffield, England
Trades: 0
there are many other ways to get around a no-right-click script. dependant upon which script you use, sometimes the right click button on the keyboard will work
otherwise, view -> source works always in Internet Explorer, and from here you can find the image address, and get the image from there. the images get cached when you visit the site, so you can retrieve them from your temporary internet files.
you can highlight the text that you want and use keyboard shortcuts to copy it
if you really want to use a no-right-click-script, i suggest you look on the internet for a silent DHTML one. these are alot more efficient as they don't give you the annoying pop-up message, they simply disallow the right click, so right clicking does nothing. no sound, no message, no right click
__________________
take care,
Dave ;)

Please login or register to view this content. Registration is FREE
DaveTodd is offline
Reply With Quote
View Public Profile
 
Old 07-21-2002, 12:25 PM
ghettocars's Avatar
Defies a Status

Posts: 1,738
Name: Josh
Location: Miami, FL
Trades: 0
XP also has the option of saving a picture when you place your cursor over it for a while, and davetodd is right, if you want to put up a no-right click thing you should put up a silent one that doesnt do any alerts or pop-up messages which can get annoying, it just simply gets rid of right click...

i even got a fancier way to disable right click, when the user right clicks it gives them a menu of your own! that means you can put whatever you want on that menu...heres the code...


<!-- ISNTALL AS FOLLOWS:

1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->


<HEAD>

<style>
<!--
.skin0 {
position:absolute;
text-align:left;
width:200px;
border:2px solid black;
background-color:menu;
font-family:Verdana;
line-height:20px;
cursor:default;
visibility:hidden;
}
.skin1 {
cursor:default;
font:menutext;
position:absolute;
text-align:left;
font-family: Arial, Helvetica, sans-serif;
font-size: 10pt;
width:120px;
background-color:menu;
border:1 solid buttonface;
visibility:hidden;
border:2 outset buttonhighlight;
}
.menuitems {
padding-left:15px;
padding-right:10px;
}
-->
</style>

<SCRIPT LANGUAGE="JavaScript1.2">
<!--Brought to you by GhettoCars.cjb.net -->
<!-- Begin
var menuskin = "skin1"; // skin0, or skin1
var display_url = 0; // Show URLs in status bar?
function showmenuie5() {
var rightedge = document.body.clientWidth-event.clientX;
var bottomedge = document.body.clientHeight-event.clientY;
if (rightedge < ie5menu.offsetWidth)
ie5menu.style.left = document.body.scrollLeft + event.clientX - ie5menu.offsetWidth;
else
ie5menu.style.left = document.body.scrollLeft + event.clientX;
if (bottomedge < ie5menu.offsetHeight)
ie5menu.style.top = document.body.scrollTop + event.clientY - ie5menu.offsetHeight;
else
ie5menu.style.top = document.body.scrollTop + event.clientY;
ie5menu.style.visibility = "visible";
return false;
}
function hidemenuie5() {
ie5menu.style.visibility = "hidden";
}
function highlightie5() {
if (event.srcElement.className == "menuitems") {
event.srcElement.style.backgroundColor = "highlight";
event.srcElement.style.color = "white";
if (display_url)
window.status = event.srcElement.url;
}
}
function lowlightie5() {
if (event.srcElement.className == "menuitems") {
event.srcElement.style.backgroundColor = "";
event.srcElement.style.color = "black";
window.status = "";
}
}
function jumptoie5() {
if (event.srcElement.className == "menuitems") {
if (event.srcElement.getAttribute("target") != null)
window.open(event.srcElement.url, event.srcElement.getAttribute("target"));
else
window.location = event.srcElement.url;
}
}
// End -->
</script>
</HEAD>

<BODY>

<div id="ie5menu" class="skin0" onMouseover="highlightie5()" onMouseout="lowlightie5()" onClick="jumptoie5();">
<div class="menuitems" url="javascript:history.back();">Go Back</div>
<div class="menuitems" url="URL HERE">SDGSDG</div>
<hr>
<div class="menuitems" url="URL HERE">SDFSDGSD</div>
<div class="menuitems" url="URL HERE">FGSEGE</div>
<hr>
<div class="menuitems" url="URL HERE">SLDJFLS</div>
<div class="menuitems" url="URL HERE">BLAH BLAH</div>
</div>
<script language="JavaScript1.2">
if (document.all && window.print) {
ie5menu.className = menuskin;
document.oncontextmenu = showmenuie5;
document.body.onclick = hidemenuie5;
}
</script>

<!-- Script Size: 3.36 KB -->
__________________

Please login or register to view this content. Registration is FREE
ghettocars is offline
Reply With Quote
View Public Profile
 
Old 07-21-2002, 02:13 PM
DaveTodd's Avatar
Evil Psycho Alien

Posts: 684
Location: Sheffield, England
Trades: 0
nice try ghetto i think you may have to put the code in quotes or something to get it to show.
silent no right clicks are okay. its IE v6+ that gives you the image saving options, its not XP i don't think. then again, i think IE6 is only meant to work on XP, but somehow I'm sat using it now meh...nothing i can do about it!
__________________
take care,
Dave ;)

Please login or register to view this content. Registration is FREE
DaveTodd is offline
Reply With Quote
View Public Profile
 
Old 07-21-2002, 02:47 PM
ghettocars's Avatar
Defies a Status

Posts: 1,738
Name: Josh
Location: Miami, FL
Trades: 0
hmmmm, my code seems to be causing errors, here leme just post up the code on my site and give you all the link...
http://ghettocars.tripod.com/right_click_menu.htm
__________________

Please login or register to view this content. Registration is FREE
ghettocars is offline
Reply With Quote
View Public Profile
 
Old 07-21-2002, 02:53 PM
ghettocars's Avatar
Defies a Status

Posts: 1,738
Name: Josh
Location: Miami, FL
Trades: 0
that should do it, right click on the website and if you want the code just view source and highlight it all and copy and paste it on to your site
__________________

Please login or register to view this content. Registration is FREE
ghettocars is offline
Reply With Quote
View Public Profile
 
Old 07-21-2002, 04:14 PM
conkermaniac's Avatar
The Nutty Moderator

Posts: 1,012
Location: China
Trades: 0
Hi Randal,

I agree with Tiggy (please read her article). Sites that disable right-click and give that alert are extremely annoying (it generally shows the unprofessionalism of a site). Often, I do not even think about stealing code from the site until that prompt comes up. It makes me curious as to what the webmaster is trying to hide. Anyway, most users are smart enough to use View > Source. Even if you do eliminate the headers and toolbars, there is still a simple way to bypass that protection using the "Return" button that all "thieves" know and use. Also, many people have programs that extract the source code automatically. The right-click JS is not only annoying, but it's easy to get around.

I agree with Dave that you should look for a "silent" DHTML script, but ghetto's idea seems even better! However, you still have to get rid of the toolbar to prevent the user from simply viewing the source code and extracting the URL. These ideas aren't nearly as annoying, and they keep a site looking professional.
__________________

Please login or register to view this content. Registration is FREE
- Affordable feature-packed remotely hosted message boards!
conkermaniac is offline
Reply With Quote
View Public Profile
 
Old 07-21-2002, 08:46 PM
dvduval's Avatar
Ultra Talker

Posts: 312
Trades: 0
And of course, you can always do the ole File...Save As...
and get everything neatly packaged in an html document and a folder with all the pictures and many of the scripts.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
dvduval is offline
Reply With Quote
View Public Profile
 
Old 07-22-2002, 02:41 AM
Novice Talker

Posts: 13
Location: California
Trades: 0
I have read that you can protect images by putting a transparent gif over them. Like I have photos of my grandaughter that I wouldn't want some pedohile nut saving and doing heaven knows what with (paranoid- I admit it!) them.

Then if someone right clicks and saves, they get the trans. gif and not the photo.

I tried to insert a transparent gif over one, but I couldn't tell where I placed it on the page!! Lol.

Is that true? And if so, how does one put the transparent gif in the right place? (newbie here)

Thanks.
suzicat is offline
Reply With Quote
View Public Profile
 
Old 07-22-2002, 09:54 AM
ghettocars's Avatar
Defies a Status

Posts: 1,738
Name: Josh
Location: Miami, FL
Trades: 0
most nuts arent smart so even if you do the annoying right click thing, they will not go through the trouble of viewing source to find the picture manually.
I dont think there is any way to prevent someone from stealing your source or saving your pictures, but you can stop them to a point, and if they dont have enough knowledge they really cant steal anything.
You can always try different methods, like if you really dont want nuts seeing your grandaughter you can add a username/password script to your site.
I have a good one thats easily updateable and you can control who sees your site and who doesnt. Although let me warn you that script is hackable but only to a knowledgeable hacker, anyways if you put a password on your site, what hacker will waste their time just to see your grandaughter pics and steal them?
I think that should do the trick. Hope it works out for ya
__________________

Please login or register to view this content. Registration is FREE
ghettocars is offline
Reply With Quote
View Public Profile
 
Old 07-22-2002, 09:59 AM
ghettocars's Avatar
Defies a Status

Posts: 1,738
Name: Josh
Location: Miami, FL
Trades: 0
ohh i almost forgot here is the link to the username/password thing...its in my website here, if you view source you will not find the real script, you will just find the output.
http://ghettocars.tripod.com/www/homee.html

Tell me and I will email you the script which includes a username/password generator. Its pretty neat!
__________________

Please login or register to view this content. Registration is FREE
ghettocars is offline
Reply With Quote
View Public Profile
 
Old 07-22-2002, 01:27 PM
Novice Talker

Posts: 13
Location: California
Trades: 0
Thanks ghettotalker! I have to think about the password thing. I did the photo pages for my family who are all over the country and some of them are not too computer literate, so I don't want to make it too complicated for them. It is a great idea though.

I love your website! Great cars. I started out using CoolPage too, what a great little program and easy to learn! I am trying to graduate to Dreamweaver now. I read though that CoolPage's newest version will support flash and fireworks files and a lot more stuff, so it will be able to do as must as the big expensive proggies! I might go back to it.
suzicat is offline
Reply With Quote
View Public Profile
 
Old 07-22-2002, 01:30 PM
Novice Talker

Posts: 13
Location: California
Trades: 0
sorrry I got your name wrong

Thanks ghettocars!!
suzicat is offline
Reply With Quote
View Public Profile
 
Old 07-22-2002, 05:30 PM
ghettocars's Avatar
Defies a Status

Posts: 1,738
Name: Josh
Location: Miami, FL
Trades: 0
no problem, oh and by the way im just using cool page because im lazy, everything i really do it using HTML, now im using this program called HTML-Kit which makes my life simpler, i was just using cool page because its free and i can put my HTML there. If you take a look at my site in cool page all you will find is a whole mess of HTML boxes which get annoying when im trying to edit them on cool page.

great to hear that you are using dreamweaver, that works out for me 2 its a great prgm.

oh and about the password thingy, its not really complicated, if you saw the login thing on the site you will notice that people just select their name from the list and type in a password which shouldnt be hard at all to remember. Just put the password protect thing on the first page of your site.
__________________

Please login or register to view this content. Registration is FREE
ghettocars is offline
Reply With Quote
View Public Profile
 
Old 07-23-2002, 01:14 PM Re: Re: right click save as "off"
Tiggy's Avatar
Ultra Talker

Posts: 249
Location: Lancashire, UK
Trades: 0
Quote:
Originally posted by Chopper
Before you add the script i suggest you read this article by Tiggy!
Thanks Chopper - it's a popular article that one.

To sum it all up, if you want to protect images and code completely, don't put it on the web! I know it sounds harsh but nothing is safe from anyone that is determined to get your image or code once it has been published.

The transparent gif idea only stops those trying to save the image directly - nothing to stop them taking a screen capture and doing whatever they wanted to do with the image. I agree though that the best way to keep your images private is to password protect the site... but I would be more inclined to go for server solutions (.htaccess or server side script checking each page before loading) over JavaScript based solutions as they are less prone to wandering robots or prying eyes.
__________________
Web Site Owner's Resource -
Please login or register to view this content. Registration is FREE
Tiggy is offline
Reply With Quote
View Public Profile
 
Old 07-23-2002, 01:34 PM
ghettocars's Avatar
Defies a Status

Posts: 1,738
Name: Josh
Location: Miami, FL
Trades: 0
tiggy has a point, screenshots do work and when edited in a paint program you got yourself the image. you cant protect yourself from that, it is better if you just dont put those stuff online, or if u want, email the pics and text to whoever you want but not putting them up on the web. although password protecting your site is pretty good, because i dont think psychos will go to the point of hacking into your website for pictures or text.
__________________

Please login or register to view this content. Registration is FREE
ghettocars is offline
Reply With Quote
View Public Profile
 
Old 07-23-2002, 10:32 PM
punaboy
Guest

Posts: n/a
Trades:
Quote:
To sum it all up, if you want to protect images and code completely, don't put it on the web!
...AND THAT'S THE BOTTOM LINE! hehehe

Their is no way to hide coding/images completely. If someone wants it bad enough they can get it (why, I don't know).

Tiggys article is on the money about disabling right click. It's annoying, useless and limits your visitors functions.

Transparent films over images don't work because I can do a "capture screen" function on my graphic editor and waalaa...

Protecting coding is just as useless especially when MSIE 6 has an "edit with notepad" button. I just click it and waalaa...

Sometimes I surf for sites who disable right-clicking and just for fun break it to get codes and images. Even without the MSIE feature. I don't use any of the coding/images, just the satisfaction of getting it. AND NO, I'M NOT A HACKER (I'm not into that), BUT I KNOW A LITTLE ON HOW THEY DO THINGS.
Reply With Quote
 
Old 07-24-2002, 01:58 AM
Novice Talker

Posts: 13
Location: California
Trades: 0
Interesting and helpful posts everyone. I believe that there is no privacy on the web and little protection. I guess I will just keep the page though and the url has never been posted anywhere, and since I have been looking at my webstats, no one has requested that page as far as I can tell.
suzicat is offline
Reply With Quote
View Public Profile
 
Old 07-24-2002, 09:55 AM
ghettocars's Avatar
Defies a Status

Posts: 1,738
Name: Josh
Location: Miami, FL
Trades: 0
true, if you make a webpage with geocities, AOL, tripod, angelfire or another free host, no one will ever find the page! if you dont advertise your page its rare that anyone will go exploring into it.
__________________

Please login or register to view this content. Registration is FREE
ghettocars is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to right click save as "off"
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.58773 seconds with 12 queries