pixeltrace Posted March 22, 2007 Share Posted March 22, 2007 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! Quote Link to comment https://forums.phpfreaks.com/topic/43765-disable-right-click-on-mouse/ Share on other sites More sharing options...
wilorichie Posted March 22, 2007 Share Posted March 22, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/43765-disable-right-click-on-mouse/#findComment-212488 Share on other sites More sharing options...
vbnullchar Posted March 22, 2007 Share Posted March 22, 2007 add this <body onContextMenu="return false;" > Quote Link to comment https://forums.phpfreaks.com/topic/43765-disable-right-click-on-mouse/#findComment-212550 Share on other sites More sharing options...
chronister Posted March 22, 2007 Share Posted March 22, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/43765-disable-right-click-on-mouse/#findComment-212621 Share on other sites More sharing options...
monk.e.boy Posted March 22, 2007 Share Posted March 22, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/43765-disable-right-click-on-mouse/#findComment-212658 Share on other sites More sharing options...
mjlogan Posted March 22, 2007 Share Posted March 22, 2007 There is always a way round, I'd say not worth bothering. Well I usually just disable it is I want something. Nothing will stop people copying images and what not. Quote Link to comment https://forums.phpfreaks.com/topic/43765-disable-right-click-on-mouse/#findComment-212660 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.