Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-18-2001, 03:55 PM
ptbyjason's Avatar
ptbyjason ptbyjason is offline
 
Join Date: Dec 2001
Location: TX
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know there is a way to add javascript to a website so that it protects the images you have on there (visitor cannot right click and save the image). Is there anyway to add it to a site so that you can protect the pictures that people post. There might also be a way that you can use it to protect buttons, logos, avatars, etc...... But I am mainly interested in protecting posted pics.
Reply With Quote
  #2  
Old 12-19-2001, 05:09 AM
LuBi LuBi is offline
 
Join Date: Oct 2001
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

interested in this one, have seen it a few times but never got it right..
Reply With Quote
  #3  
Old 12-20-2001, 02:08 AM
Bimma Boy Bimma Boy is offline
 
Join Date: Dec 2001
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This would keep the general riff raff out!

Wondeful.. pls can someone implement this hack.. will be very useful!
Reply With Quote
  #4  
Old 12-20-2001, 09:12 AM
Konqueror Konqueror is offline
 
Join Date: Dec 2001
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That wouldn' really be a protection. Users could still view the html code and get the pictures from there or simply use the "Save As" option in Internet Explorer which saves the page including the pictures anyway.
Reply With Quote
  #5  
Old 12-20-2001, 11:53 AM
ptbyjason's Avatar
ptbyjason ptbyjason is offline
 
Join Date: Dec 2001
Location: TX
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see your point Konqueror. They could also use a program like HardCopy and clip the files from the page.
But to be totally honest, the guys that visit my website will not be able to do anything more than right click and do a "save as....". If that doesn't work 99.9% of them would give up. Only about 0.1% would keep trying until they found a way to get it. I want to use it as a deterrent. As many people as I have asking me everyday how to use the basic controls of the message board, I feel I will be pretty safe with a hack like this.
Reply With Quote
  #6  
Old 12-20-2001, 01:05 PM
Konqueror Konqueror is offline
 
Join Date: Dec 2001
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hehe, I guess that such a hack would be really useful for you then.
Should all right-clicking be disabled? If so, then put this code somewhere in the "Head Insert":
Code:
<SCRIPT language=JavaScript>
<!--
function right(e)
{if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2))   return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) {
alert("Right-clicking is disabled."); document.layers; return false;}
return true;}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
// -->
</SCRIPT>
Reply With Quote
  #7  
Old 12-20-2001, 02:00 PM
damicatz damicatz is offline
 
Join Date: Oct 2001
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's not worth putting that kind of Javascript in. The only thing it does is annoy the heck out of your users. Their are other things in the right click menu besides save as and many users use those functions.

The only true way to prevent someone from stealing your pictures is to not have pictures on your site. For example if I wanted a picture I could just take a screenshot of it and with a bit of work in Photoshop I could have a copy of that picture.
Reply With Quote
  #8  
Old 12-20-2001, 02:13 PM
LuBi LuBi is offline
 
Join Date: Oct 2001
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well it is more difficult, what I meant was a way to stop sharing my images. So users steal my avatars to use on other forums taking bandwith. I've seen this done with .htaccess properly jus tI never got the code right or atleast it never worked for me...

[QUOTE]Originally posted by damicatz
It's not worth putting that kind of Javascript in. The only thing it does is annoy the heck out of your users. Their are other things in the right click menu besides save as and many users use those functions.

The only true way to prevent someone from stealing your pictures is to not have pictures on your site. For example if I wanted a picture I could just take a screenshot of it and with a bit of work in Photoshop I could have a copy of that picture.
Reply With Quote
  #9  
Old 12-20-2001, 02:36 PM
ptbyjason's Avatar
ptbyjason ptbyjason is offline
 
Join Date: Dec 2001
Location: TX
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Konqueror I didn't know it was going to be that easy.

damicatz, honestly very few guys that visit my website have any photoshop skills. I have almost 2,000 members on my board and I found 2 people in one weeks time that knew enough about photoshop to help me complete a project I was working on. Very sad but true. Also the point you made about avoiding pictures is unavoidable on my website. It is a must. But everyone uses pictures on their website even if it is nothing more than the custom buttons that they create for it.

The point you made about annoying the users is understandable. I do wonder though if there is a way to only disable the "Save as..." part of the bar when you right click? That would probably be the best way for everyone.

Konqueror, I am going to give that a try, thanks again man.
Reply With Quote
  #10  
Old 08-31-2003, 10:07 PM
leagleaze leagleaze is offline
 
Join Date: Mar 2003
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I copied this code from a site (credit included) it enables you to disable right clicking just on photos. I haven't installed it yet, because my problem is, I am not sure exactly where to put it. Can anyone tell me this? (I don't do much coding work on my site.)

I did create a plain old html page and test it, and it works, it lets you right click everywhere but on an image.

Thanks

L


<SCRIPT LANGUAGE="JavaScript">


<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->


<!-- Begin
function right(e) {
var msg = "Sorry, you don't have permission to right-click.";
if (navigator.appName == 'Netscape' && e.which == 3) {
alert(msg);
return false;
}
if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
alert(msg);
return false;
}
else return true;
}


function trap()
{
if(document.images)
{
for(i=0;i<document.images.length;i++)
{
document.images[i].onmousedown = right;
document.images[i].onmouseup = right;
}
}
}
// End -->
</SCRIPT>
</HEAD>


<!-- STEP ONE: Copy the event handler into the BODY tag -->


<BODY onLoad="trap()">


<!-- Script Size: 0.81 KB -->
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 12:48 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03972 seconds
  • Memory Usage 2,258KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete