Wells-it.com - Web Hosting

Right Click

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

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
Administrator

She has: 10,288 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
Modrater

He has: 6,157 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

<?bhb if(broken){ echo("It wasn't me Smiling "); } ?>
Learn HTML the ez way - EzHTML.net

Some people are like slinkies, they dont really serve any purpose but they still bring a smile to your face when you push them down the stairs ...

mairving's picture
Moderator

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.

Mark Irving
I have a mind like a steel trap; it is rusty and illegal in 47 states

They have: 50 posts

Joined: Aug 2001

Ok, thanks for you help.