disable right click on website? - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Skype & Technology (/forumdisplay.php?fid=9) +---- Forum: Tech Talk (/forumdisplay.php?fid=17) +----- Thread: disable right click on website? (/showthread.php?tid=58461) disable right click on website? by DJKAL on 04-18-2006 at 12:35 PM
is it possable (and if so how to code it?) to stop webpage veiwers being able to right click? RE: disable right click on website? by user35870 on 04-18-2006 at 12:39 PM There is one here: http://www.dynamicdrive.com/dynamicindex9/noright.htm but they aren't 100% proof as there is the print screen button to take pictures from the site and other ways to view the source of a page. RE: disable right click on website? by DJKAL on 04-18-2006 at 12:41 PM
it is mainly to stop people vewing the page source. as my mate will "steal" the codes and i just want to see his reaction when he cant RE: disable right click on website? by Chestah on 04-18-2006 at 12:41 PM
Note this is completely pointless as users can get your pictures / anything they want by viewing the source code. Also, as you are disabling right click, you are breaking alot of expected functionality . RE: disable right click on website? by DJKAL on 04-18-2006 at 12:43 PM noo, the pictures im not worried about really. but it's the source code that i want to stop them veiwing. and im pretty sure my mate only knows how to veiw it by right clickin (the way i taugt him) RE: disable right click on website? by Chestah on 04-18-2006 at 12:45 PM Whats wrong with them knowing the source code? What they see is what they see.. and anything that processes data etc (php) is hidden so they won't beable to see that . RE: disable right click on website? by DJKAL on 04-18-2006 at 12:47 PM
oooohhh yer, set an external CSS style sheet ...? RE: disable right click on website? by Chestah on 04-18-2006 at 12:48 PM
More information on why not to use it: RE: disable right click on website? by stoshrocket on 04-18-2006 at 12:54 PM dude, you cant stop people viewing your source code and you'll always get people that want to rip your code off if its decent, even if you do disable right click whats to stop me going to view -> page source?? RE: disable right click on website? by DJKAL on 04-18-2006 at 12:55 PM
i just read that, RE: disable right click on website? by stoshrocket on 04-18-2006 at 12:57 PM if you read that then you wouldve read that its easy to decode again RE: disable right click on website? by Chestah on 04-18-2006 at 12:57 PM
quote: People will still beable to read it as your browser somehow has to interpret was is written so it can produce it on the screen. HTML really isn't that bad anyways, the complex code that you use will most likely be in PHP scripts that will be hidden. RE: disable right click on website? by DJKAL on 04-18-2006 at 01:00 PM
i use CSS, haven't learnt any PHP yet. quote:i did read that to, but i not sure how easy he will be able to do that i just want to see his reacction when he realises he cant just copy my codes and use then for himself RE: disable right click on website? by Chestah on 04-18-2006 at 01:01 PM btw with php - it still outputs html that people can steal the source of. Obviously if your pages are static (i.e not dynamic) then theres no point in using PHP. RE: disable right click on website? by stoshrocket on 04-18-2006 at 01:03 PM
quote: bah, gtmf first result RE: disable right click on website? by DJKAL on 04-18-2006 at 01:04 PM
i'd still like to learn PHP though. just to be able to use it if/wehn i needed to. RE: disable right click on website? by John Anderton on 04-18-2006 at 02:18 PM
quote:it is possible but its too easy to bypass it Tbh there is no point in doing so. There are a million ways to by pass it and well, it just makes your site look newbish tbh (for not knowing how easy it is to bypass ) RE: disable right click on website? by Sypher on 04-18-2006 at 02:23 PM
*sign... some people* RE: disable right click on website? by Ezra on 04-18-2006 at 02:24 PM and encoding with javascript will make sure people without javascript will not be abled to see your website RE: disable right click on website? by DJKAL on 04-18-2006 at 02:27 PM
i dont use javascript anyways RE: disable right click on website? by Svip on 04-18-2006 at 02:31 PM
No, it is in no way at all possible to hide the CSS from the user. If the browser have to reach it, the user will be able as well. These things are client sided, and thus all information send by the server can be used by the browser. RE: disable right click on website? by DJKAL on 04-18-2006 at 02:34 PM
quote: i know that, i never mentioned the other's. i use XHTML and CSS with some Javascript. thoguh i'd like to learn PHP soon. i know they arent the same and they are verydifferent. RE: disable right click on website? by Svip on 04-18-2006 at 03:18 PM
quote: My point was mainly that, you may compare C and Python, as they are both programming languages, but you cannot compare a programming language with a markup language. But again, I am sorry to disappoint you, there really is no way to "disallow" your friend from stealing your source. RE: disable right click on website? by DJKAL on 04-18-2006 at 04:41 PM ok, never mind them. i jsut wont send him a link but a print screen instead RE: disable right click on website? by DJeX on 04-18-2006 at 11:03 PM
quote: |