Skip to main content
Participant
June 1, 2007
Answered

protecting images

  • June 1, 2007
  • 5 replies
  • 727 views
how can i protect images on my site (i know there is ways to get around this, but still...)? if u give me a script, please also tell me what to change in this script to make it my own
This topic has been closed for replies.
Correct answer Günter_Schenk
My hosting service is HostMonster, and they gave me this script :
quote:

<h1>And here is the 'no right clicks' script.</h1>
<p>You can stop right clicks with a script (copy and paste it from this page if you want to) in the HEAD section of your page.</p>

<p><font color="#cc0000">

<script type="text/javascript"><BR><BR>

var msg="mouse right click disabled.nn(or any message you want)";<BR><BR>

function click(e) {<BR>
if (document.all) {<BR>
if (event.button == 2) {<BR>
alert(msg);<BR>
return false;<BR>
}<BR>
}<BR><BR>

if (document.layers) {<BR>
if (e.which == 3) {<BR>
alert(msg);<BR>
return false;<BR>
}<BR>
}<BR>
}<BR><BR>

if (document.layers) {<BR>
document.captureEvents(Event.MOUSEDOWN);<BR>
}<BR>
document.onmousedown=click;<BR><BR>

</script><BR></font></p>

they did not tell me what I am supposed to change to make it my own, can u tell me?

>>
they did not tell me what I am supposed to change to make it my own, can u tell me?
>>

if you really insist on this despite all our less-than-subtle "don´t count on this" hints, copy the attached script in between your document´s <head>...</head> section, means:

<head>
other stuff here...

copy attached script here
</head>

5 replies

Inspiring
June 5, 2007
Maybe it alternates days?

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"Lee" <lee_nospam_@artjunky.com> wrote in message
news:f44k4o$nb1$1@forums.macromedia.com...
>
>> Now it's a full blown site.
>
> Actually, now that i've checked it out again, it's back to being a wip:)


Inspiring
June 5, 2007

> Now it's a full blown site.

Actually, now that i've checked it out again, it's back to being a wip:)
Inspiring
June 5, 2007
Murray *ACE* wrote:
> http://continue.to/hope
>
> It's all there.
>


That's funny.

A few years ago someone had claimed the domain WIP.COM and on the page,
all they had were the the three letters "wip." That's it! Funny.

Now it's a full blown site.
AFJ786Author
Participant
June 2, 2007
thanks
Inspiring
June 1, 2007
http://continue.to/hope

It's all there.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"AFJ786" <webforumsuser@macromedia.com> wrote in message
news:f3plru$98u$1@forums.macromedia.com...
> how can i protect images on my site (i know there is ways to get around
> this, but still...)? if u give me a script, please also tell me what to
> change in this script to make it my own


Günter_Schenk
Inspiring
June 1, 2007
as you can´t protect anything you publish on the web, you should add a "watermark" to your images for rendering them practically useless to snatchers
AFJ786Author
Participant
June 1, 2007
My hosting service is HostMonster, and they gave me this script :
quote:

<h1>And here is the 'no right clicks' script.</h1>
<p>You can stop right clicks with a script (copy and paste it from this page if you want to) in the HEAD section of your page.</p>

<p><font color="#cc0000">

<script type="text/javascript"><BR><BR>

var msg="mouse right click disabled.nn(or any message you want)";<BR><BR>

function click(e) {<BR>
if (document.all) {<BR>
if (event.button == 2) {<BR>
alert(msg);<BR>
return false;<BR>
}<BR>
}<BR><BR>

if (document.layers) {<BR>
if (e.which == 3) {<BR>
alert(msg);<BR>
return false;<BR>
}<BR>
}<BR>
}<BR><BR>

if (document.layers) {<BR>
document.captureEvents(Event.MOUSEDOWN);<BR>
}<BR>
document.onmousedown=click;<BR><BR>

</script><BR></font></p>

they did not tell me what I am supposed to change to make it my own, can u tell me?