Right Click

They have: 50 posts

Joined: Aug 2001

Does anyone know of a script, in perl, php, or asp that makes it so that you can't right click on the website. I found it in javascript, but i wanted it in it.

thanks.

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

Someone will correct me if I'm wrong but I don't think you can do this with PHP or ASP - those are server-side languages and therefore can't be used to manipulate what happens with the browser. Only client-side languages can do that.

I hope you had a good reason for wanting to use one of these Smiling

They have: 50 posts

Joined: Aug 2001

i didn't know, i just threw out some names. Smiling

the reason i want a script like this is because people have been linking up my art works to their sites and stealing my designs. I just want to prevent this.

Busy's picture

He has: 6,151 posts

Joined: May 2001

no right click doesnt work, there are many ways around them, the easiest is from the tool bar

if you want to stop people linking to your images, set up the properties in a .htaccess file to deny outside linkage (can be set to show default image which you can set to something like "this image wrongfully linked from ..")

if you want to limit the taking of your images, use watermarks etc on your images. NOTE I did say limit, as watermarks can also be gotten around. or better yet slice up your images and display the section in a table

mairving's picture

They have: 2,256 posts

Joined: Feb 2001

You would have to use javascript as it is a client-side language. Still it is an annoyance and a waste of time to use.

They have: 50 posts

Joined: Aug 2001

Ok, thanks for you help.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.