hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Design and Content : To block or not to block mouse right bottom click?
Reply

Forum Jump

To block or not to block mouse right bottom click?

Reply Post New Thread In Web Design and Content Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 04-28-2004, 12:11 AM
Oleks Oleks is offline
WHT Addict
 
Join Date: Mar 2004
Posts: 141
Question

To block or not to block mouse right bottom click?


Hi,
Somebody suggest me to block mouse right bottom click to get high security for my Web site and Forum. I am wandering is this helpful?
Thank you.



Sponsored Links
  #2  
Old 04-28-2004, 12:13 AM
cybexhost1 cybexhost1 is offline
Temporarily Suspended
 
Join Date: Nov 2003
Location: Ohio
Posts: 504
For security? Do you not want them to steal .jpg's or something? What are you attempting to acheive?

  #3  
Old 04-28-2004, 12:15 AM
DreamHost-MikeS DreamHost-MikeS is offline
I'm good with computers.
 
Join Date: Nov 2003
Location: Orange County, CA
Posts: 1,182
Don't do this.

It will REALLY turn people off.

__________________
DreamHost Web Hosting
Shared and VPS hosting + dedicated servers and colocation.
... and we're green, too!
Hosting your dreams since 1997.

Sponsored Links
  #4  
Old 04-28-2004, 12:17 AM
bcmorgue bcmorgue is offline
Newbie
 
Join Date: Apr 2004
Location: Green Bay, Wisconsin, USA
Posts: 14
I would recommend doing it on certain pages, like pages with anything that you will offer as a download. This will prevent people from copying the download link, to post on another website.

On main pages, with just text and images, I would say no to it. Some people like using the right click to do certain options.

__________________
BC Morgue Gaming Community
http://www.bcmorgue.com
CS 1.5: 24.106.36.66:27017 CS without all the BS!

  #5  
Old 04-28-2004, 12:17 AM
Oleks Oleks is offline
WHT Addict
 
Join Date: Mar 2004
Posts: 141
Quote:
Originally posted by cybexhost1
Do you not want them to steal .jpg's or something?
Yes. Something like that.
Thank you.

  #6  
Old 04-28-2004, 12:21 AM
Mekhu Mekhu is offline
Evenly Divided
 
Join Date: Aug 2001
Posts: 4,028
I suggest to leave it. Sites that do this drive me nuts. I'm always right clicking to bring up the menu so I can go back...

  #7  
Old 04-28-2004, 12:21 AM
DreamHost-MikeS DreamHost-MikeS is offline
I'm good with computers.
 
Join Date: Nov 2003
Location: Orange County, CA
Posts: 1,182
Quote:
Originally posted by bcmorgue
I would recommend doing it on certain pages, like pages with anything that you will offer as a download. This will prevent people from copying the download link, to post on another website.

On main pages, with just text and images, I would say no to it. Some people like using the right click to do certain options.
View -> Page Source

Solved.

Anyone that wants to leech a file from your site will, unless you have an anti-leech script, or do no allow hot linking.

__________________
DreamHost Web Hosting
Shared and VPS hosting + dedicated servers and colocation.
... and we're green, too!
Hosting your dreams since 1997.

  #8  
Old 04-28-2004, 12:21 AM
DanPhx DanPhx is offline
WHT Addict
 
Join Date: Apr 2004
Location: Phoenix, Arizona
Posts: 151
Re: To block or not to block mouse right bottom click?

Quote:
Originally posted by Oleks
Hi,
Somebody suggest me to block mouse right bottom click to get high security for my Web site and Forum. I am wandering is this helpful?
Thank you.
If it is the protect pictures thing you seek....
I've used this before:

<script language="JavaScript">
<!--

browserName = navigator.appName;
browserVer = parseInt ( navigator.appVersion );

function stopthief(ie)
{
var warning = "Right clicking this page is not allowed.";
if (browserName == 'Netscape' && ie.which == 3)
{
alert(warning);
return false;
}
else
if (browserName == 'Microsoft Internet Explorer' && event.button==2)
{
alert(warning);
return false;
}
return true;
}

document.onmousedown = stopthief;

// -->


Hope this helps.


Dan

__________________
http://www.IwantFUI.com
If you could host a new kind of content from your old-fashioned web servers
and make new money from your customers and differentiate your business all at the same time... could you afford not to try? See the new site

  #9  
Old 04-28-2004, 12:26 AM
cybexhost1 cybexhost1 is offline
Temporarily Suspended
 
Join Date: Nov 2003
Location: Ohio
Posts: 504
Well, it is helpful if you do not want people so steal such an object as .jpg's. The problem is some people may become annoyed by this, if they want to do something as simple as a copy and paste, or something simple like that. I think we may need a stronger example on what you exactly are attempting to accomplish here.

  #10  
Old 04-28-2004, 12:37 AM
bcmorgue bcmorgue is offline
Newbie
 
Join Date: Apr 2004
Location: Green Bay, Wisconsin, USA
Posts: 14
Well, one thing I found, and I have used it before, as a nifty little program called Download Link Cloaker 5.0
It's nice because it like "masks" the url download location, to make it useless for anybody who wants to copy/paste it to their site.
http://www.codelifter.com/lc5index.html

If you do want to disable the right click, here is a java script that I have used.
It's silent, no popups or sounds will play, it will just act like it ignored the button.

<script language="Javascript1.2">
function nrcIE(){
if (document.all){return false;}}
function nrcNS(e){
if(document.layers||(document.getElementById&&!document.all)){
if (e.which==2||e.which==3){
return false;}}}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=nrcNS;
}else{document.onmouseup=nrcNS;document.oncontextmenu=nrcIE;}
document.oncontextmenu=new Function("return false");
</script>

__________________
BC Morgue Gaming Community
http://www.bcmorgue.com
CS 1.5: 24.106.36.66:27017 CS without all the BS!

  #11  
Old 04-28-2004, 12:39 AM
rokamortis rokamortis is offline
WHT Addict
 
Join Date: Jan 2004
Posts: 111
Disabling right-click to prevent images being stolen is rather pointless. If someone wants to get the images they can. It will only stop an honest thief as anyone determined enough will find a way to get the images.

They can check the page source and get the link to download the image directly

They can take a screen shot of the site and crop the extra stuff from an image editing program.

They can go through their browser cache and get the graphics

They can save the entire page locally and get the images that way

IMHO - the best thing to do to prevent images being stolen is to put a faint watermark on them with your site name. This is ideal for photos or similar graphics. This doesn't make a lot of sense to use on design elements but I've seen that done too.

  #12  
Old 04-28-2004, 12:44 AM
MexicoBorder MexicoBorder is offline
New Member
 
Join Date: Apr 2004
Location: Mexcio (near the south US)
Posts: 2
Do not Block it... !!!

Blocking the right Mouse button will not prevent that people copy your images or text.

I consider envios the web sites that block.

Also exposes the ignorance of the developer.

Limit the user to use the info for good pruposes, like sending a Mail or printing partial content of your web site.

Bloking limit the freedom of the web,

Do not be ņoņo
Do no block mouse or keyboard

  #13  
Old 04-28-2004, 01:12 AM
Wullie Wullie is offline
Web Hosting Master
 
Join Date: Feb 2004
Location: Scotland
Posts: 2,828
Ok, I have a few questions for you to answer, based on the fact that you want to prevent others from seeing your source/getting images.

1) Please don't take this the wrong way if this does not apply to you but for the most part, 99% of people I know that want to hide their source learned the stuff from looking at the source of other pages. What makes you special?

2) Since you didn't create HTML and you use it free from royalties, what makes you think that you have the right to hide the source to the page?

3) Whatever you have on your page is likely to be freely available on many other pages. A unique piece of decent code is something I have not seen in quite a while. What have you made that is so special that you need to hide?

4) No matter what methods you apply to your site, any client side (it is called that for a reason) code can be retrieved by the client. If you hide code so that a client cannot see it, the browser cannot read it, so what is the point?

5) Right click is a function of the browser, what gives you the right to determine what functions of my browser I can and cannot access?

If you disable right click, even the least competent user can retrieve it from their cache, they can drag images to the address bar, use the keyboard to get right click etc. As I mentioned previously, there is no way at all (I challenge someone to prove me wrong) that you can hide client side scripting.

Think about this logically. If it was possible to hide your source code, why do Microsoft not hide theirs? After all they have their own browser yet they still cannot hide the source of their own page.

I really do not mean any offense by this post and I am certainly not aiming this directly at the thread starter, but I have seen so many posts of this type on many forums over the course of many years, with not one person being able to post a URL that they have hidden their client-side code.

Also, check out http://www.vortex-webdesign.com/help/hidesource.htm

  #14  
Old 04-28-2004, 01:57 AM
Wefrucar Wefrucar is offline
Newbie
 
Join Date: Mar 2004
Location: San Diego, CA
Posts: 24
Do NOT disable right clicking. It is SO annoying!
If I'm in a bad mood, and I go to a site that has right-clicking disabled (ESPECIALLY if there's a popup window that says something like "please dont' steal our stuff" which is as annoying as it gets).... I will sometimes just close the site and never go back. Not very often, mind you, but it still is annoying.
It also makes you look like an arrogant idiot, as though your stuff were so special that everyone is just stepping over their mothers to try to steal it.

That said, there is NO WAY you can prevent someone from stealing your images. There's just none. Anyone who wants to, can and will.

The ONLY method of protecting your images, as someone said, is a watermark. Something very light so that it doesn't disturb the image, but strong enough so that it's immediately recognizable as YOURS, and anyone who tried to steal it would be stuck with showing where it really comes from.
You can of course just add a URL at the bottom of the iamge, but that can be edited out easily enough. A watermark is usually far too much work to try to edit out, people who want to put that much effort may as well make their own image.

  #15  
Old 04-28-2004, 02:10 AM
SLH-Ken SLH-Ken is offline
Web Hosting Master
 
Join Date: Feb 2004
Location: Southern California
Posts: 749
Agreed Wef, not like you cant just hit view source and steal those images anyways...... or better yet, use the left click and drag that image to the address page! Thats right! Theres the image! Watch out! Oh no!

__________________
SkyLineHost.com
▓ ▓ Shared hosting that soars above the competition
▓ ▓ ▓ Based in Los Angeles. sales@skylinehost.com

Reply

Related posts from TheWhir.com
Title Type Date Posted
Rackspace Adds More SSD Storage Nodes to Deal with Availability Issues in Chicago and Dallas Web Hosting News 2014-05-23 12:24:27
Web & PHP Conference 2013 Web Hosting Events 2013-09-17 14:48:22
Liquid Web Updates Block Storage, Adding Scale, Cross Mounting Web Hosting News 2012-12-14 16:17:44
Liquid Web Block Storage Offering Provides Flexible, Affordable Storage Option Web Hosting News 2012-11-20 15:03:47
Rackspace Launches OpenStack-Powered Cloud Block Storage Solution Web Hosting News 2012-10-23 10:16:40


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?