|
| |
|
|
Kim
Posts: 62 From: USA Status: offline
|
Disable right click for images only - 6/12/2002 11:00:21
I haven't personally used this, but ran across it while looking for a script for something else. Looks pretty neat, you can disable right click for images only, so you don't prevent users from using right click for other functions. It displays a message that says "Right click disable on images!". I assume you could change that to say the image is copyright-protected, or whatever you want. http://www.dynamicdrive.com/dynamicindex9/noright2.htm
|
|
|
|
J-man
Posts: 936 From: Canada Status: offline
|
RE: Disable right click for images only - 6/19/2002 13:29:06
If you take an image an slice it 10,000 times.. naming each clice differently.. that oughta stop someone from stealing the image and if they did capture all slices then they deserve it.
|
|
|
|
bobby
Posts: 11394 Joined: 8/15/1969 From: Seattle WA USA Status: offline
|
RE: Disable right click for images only - 6/20/2002 9:39:16
Good point, Kim And Jman - that's the best solution I've heard yet!!! I wonder how long that would take to load in a page..? ____ "There is too much apathy in the world, but I don't care."
|
|
|
|
d a v e
Posts: 4179 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: RE: Disable right click for images only - 7/25/2002 5:12:12
" If you take an image an slice it 10,000 times.. naming each clice differently.. that oughta stop someone from stealing the image and if they did capture all slices then they deserve it." except it doesn' t prevent people from taking a screenshot! (then cropping the image and using it)
_____________________________
David Prescott Gekko web design
|
|
|
|
Mark Christianson
Posts: 4 Joined: 8/1/2002 Status: offline
|
RE: Disable right click for images only - 8/1/2002 8:45:17
Here is a solution I use that seems to work out for me. Create a file called " getimage.asp" and put the following code into it.
<%
' Get where the request came from
Dim strBuffer, File
PathstrBuffer = Request.ServerVariables(" HTTP_REFERER" )
' Specify the path we should be served from
' (This can be another web site (http://www.site2.com) or
' some directory where the web surfer will not expect to
' find your images...
FilePath = " /ProtectedImages/"
' Test to see if we should serve the file or not
if Instr( strBuffer, " mydomain.com" ) <> 0 then
' The Image can be served
FilePath = FilePath + Request.QueryString(" FName" )
Else
' They are trying to leach our file!!
FilePath = " /images/leacher.gif"
End If
' Send them to the appropriate file
Response.Redirect(FilePath)
%>
Now, in your page you reference your protected image like so:
<img border=" 0" SRC=" /aotw/images/getimage.asp?FName=wwr_250.gif" >
_____________________________
Mark Christianson Paratrooper/Creator - Paratrooper.net http://www.paratrooper.net
|
|
|
|
Mark Christianson
Posts: 4 Joined: 8/1/2002 Status: offline
|
RE: Disable right click for images only - 8/1/2002 8:49:38
Here is the thread that my above code was originally placed and some other options were thrown in. CrystalTech Forum
|
|
|
|
abbeyvet
Posts: 5095 From: Kilkenny Ireland Status: offline
|
RE: Disable right click for images only - 8/1/2002 8:50:59
I think Dave' s point remains valid though - you can do whatever you like, serve it up any which way, but you cannot stop someone cropping a screen capture, no way, no how. Taking a screen capture can hardly count as a high tech method likely to be known only to the very savvy. I reckon that there is not a living person of the sort who would be given to stealing images who would not know how to do that. Even watermarking will do you no good there - unless it is in the form of a great big lump of text accross the image which renders taking it pointless. There are certain situations where that works - eg where a thumbnail is available, and if anyone wants the skittery little thing let them have it, but the larger image is defaced in this way. Lots of sites selling images use this method. It does not prevent people taking the images but it does make them pretty useless.
_____________________________
Katherine :: InKK Design :: InKK Domains
|
|
|
|
Mark Christianson
Posts: 4 Joined: 8/1/2002 Status: offline
|
RE: Disable right click for images only - 8/1/2002 8:55:54
My issue wasnt the stealing of images as much as it was people liking my 9-11 graphic and linking directly to it from thier own site... I was getting my bandwidth chewed up like a cow bathing in a sea of pirahna... Just needed a quick way to discourage direct linking. Otherwise I agree with the argument... if they want it bad enough, they' ll find a way. http://www.paratrooper.net/aotw/9112001/default.asp
_____________________________
Mark Christianson Paratrooper/Creator - Paratrooper.net http://www.paratrooper.net
|
|
|
|
lsb37
Posts: 2 From: New York Status: offline
|
RE: Disable right click for images only - 8/1/2002 9:08:58
If someone wants the image they can simply take a screenshot and crop it out. Why go through the trouble of putting in code to prevent right click? :)
_____________________________
|
|
|
|
abbeyvet
Posts: 5095 From: Kilkenny Ireland Status: offline
|
RE: Disable right click for images only - 8/1/2002 9:13:53
You are right - people calling your images from your server is totally not acceptable but there are a number of ways around it, one is yours. If you are on a Unix server you can prevent linking to images using your .htaccess file - more here: http://www.outfront.net/tutorials_02/adv_tech/htaccess_magic2.htm
_____________________________
Katherine :: InKK Design :: InKK Domains
|
|
|
|
CapnCook
Posts: 48 From: A Mancunian in Toronto Status: offline
|
RE: RE: Disable right click for images only - 8/15/2002 15:26:36
Katherine: I followed your .htaccess article and made up the following (added to an existing file which only had ' Options ExecCGI' in it): <Files .htaccess> order allow,deny deny from all </Files> Options ExecCGI RewriteCond %{HTTP_USER_AGENT} Wget [OR] RewriteCond %{HTTP_USER_AGENT} CherryPickerSE [OR] RewriteCond %{HTTP_USER_AGENT} CherryPickerElite [OR] RewriteCond %{HTTP_USER_AGENT} EmailCollector [OR] RewriteCond %{HTTP_USER_AGENT} EmailSiphon [OR] RewriteCond %{HTTP_USER_AGENT} EmailWolf [OR] RewriteCond %{HTTP_USER_AGENT} ExtractorPro RewriteRule ^.*$ X.html [L] RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?searoom.com/.*$ [NC] RewriteRule \.(gif|jpg)$ - [F] RewriteRule \.(gif|jpg)$ http://www.searoom.com/images/stealing.gif [R,L] The result is that the browser is refused access to the site! Any comments?
|
|
|
|
nimd4
Posts: 1 Joined: 12/10/2005 Status: offline
|
RE: RE: Disable right click for images only - 12/10/2005 10:05:16
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://yourwebsite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yourwebsite.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yourwebsite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yourwebsite.com$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC] RewriteRule .*\.(jpg|jpeg|gif|png|bmp .. add/put whatever you want, htm, html, swf, wmv ;)
|
|
|
|
Aleksandr_8
Posts: 11 Joined: 12/16/2005 Status: offline
|
RE: RE: Disable right click for images only - 12/20/2005 7:29:17
who cares! you cant prevent images or else info copying. if there are no right clicks people just can take a snap and just edit tha picture in graphic editing program.
|
|
|
|
Aleksandr_8
Posts: 11 Joined: 12/16/2005 Status: offline
|
RE: RE: Disable right click for images only - 12/20/2005 7:30:39
just try to invent antisnaping script!?!
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|