Jump to content

Recommended Posts

guys,

 

is there a php script that wil disable the right-click on mouse

or maybe disable the copy and paste feature of the browser?

 

because i have a client, wherein he wants to prevent public viewing

his website from copying his website content?

 

hope you could help me wth this.

 

thanks!

Link to comment
https://forums.phpfreaks.com/topic/43765-disable-right-click-on-mouse/
Share on other sites

This is a client side issue, thus, not php.

 

JavaScript is your go.

 

http://www.google.com.au/search?hl=en&q=javascript+disable+right+click&btnG=Google+Search&meta=

 

Have a look at that.

 

You will never stop people taking items from your website. Anyone who has used a computer for more then 1 hour will work out how to get an image without right click.

right click disabling is easily circumvented - Turn off javascript..

 

 

The best method I have seen for preventing images from being saved was a photography place. They overlayed the image with a transparent gif and used the actual image as a background called through a crazy javascript.

 

This too was circumvented by simply looking in the source, finding the path to file and then calling the file directly. Granted it took a while to steal a handful of images (senior pics for a family member), but it was possible.

 

 

If the client is that worried about it have them buy a code obfuscator to make the code unreadable.

 

There is not 1 magic trick to do what you want to do, you will have to implement several layers to ensure that the content, code and images are not stolen and in the end if it is displayed on screen it can be captured. Images will be sent to the temporary internet files and can be grabbed from their own machine.

 

Good luck in this task

This against the whole premise of web pages  :( :(

 

They should be 'open' so we can view source and learn.

 

And people give you permission to download images from their server to your browser, but then place restrictions on what you can do with stuff on your own PC?

 

These people should stick to CDs and books.

 

monk.e.boy

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.