navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Free FrontPage Templates

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Disable right click for images only

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Community >> OutFront Discoveries >> Disable right click for images only
Page: [1]
 
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



 
bobby

 

Posts: 11394
Joined: 8/15/1969
From: Seattle WA USA
Status: offline

 
RE: Disable right click for images only - 6/18/2002 17:03:19   
Except that doesn't keep people from saving the images from your web!


"There is too much apathy in the world, but I don't care."

(in reply to Kim)
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.

 

(in reply to Kim)
Kim

 

Posts: 62
From: USA
Status: offline

 
RE: Disable right click for images only - 6/20/2002 9:17:01   
quote:

Except that doesn't keep people from saving the images from your web!





Very true. Lots of people seem to want to disable right click though, so at least this is "less offensive" since it doesn't totally kill your right click functionality.

 

(in reply to Kim)
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."

(in reply to Kim)
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

(in reply to bobby)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Disable right click for images only - 7/26/2002 17:18:50   
Awww, I wanted to see Jman demonstrate that ;-)

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to Kim)
Texjd

 

Posts: 123
From: Houston, Texas
Status: offline

 
RE: Disable right click for images only - 8/1/2002 8:36:00   
There are ways to protect images. If you do a search on the subject in google you can find several sites with solutions. They store the image in a protected directory and pull from there. If you right click to save image all you get is blank gif. If you save the page, the blank gifs save not the real ones. The routines are in both Perl and PHP. This is used by artist types who want to protect their work. You don' t have to disable right click.

You can also do it with a javascript routine that essentially stores the real page somewhere else and pulls from that location. This is also a very common trick and a little easier to implement. You can choose to disable the right click or not. The javascript is available on many of the bigger CGI sites.

The ongoing discussion of disabling the right click will rage on, just like any other personal opinion subject matter. It does surprise me at how some here live in an ivory tower:). It amazes me how people can get offended because someone does something on their web site. It' s probably not the best choice for protection but it is their web site to do anything they want.

(in reply to Kim)
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

(in reply to Kim)
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

(in reply to Kim)
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

(in reply to Kim)
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

(in reply to Kim)
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?

:)

_____________________________

 

(in reply to Kim)
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

(in reply to Kim)
Texjd

 

Posts: 123
From: Houston, Texas
Status: offline

 
RE: Disable right click for images only - 8/2/2002 18:32:02   
Katherine-

Where do you find all the time to do such good research and aticles:)?

I guess I need to check the tutorials more often. The one you pointed to was the best I' ve ever seen on .htacces stuff.

Good job.

(in reply to Kim)
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?

(in reply to Texjd)
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 ;)

(in reply to CapnCook)
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.

(in reply to nimd4)
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!?!

(in reply to Aleksandr_8)
Page:   [1]

All Forums >> Community >> OutFront Discoveries >> Disable right click for images only
Page: [1]
Jump to: 1





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