is there any code i could add to my site that stops people copying content such as pictures, logos, html or java code etc
u could add a simple no right click thing (to stop image stealing). but i always think those things are a bit gay tbh. and it'd only stop people that don't really know much about computers. theres probably more sophisticated method. altho, i think that if people want your image...there will always be a way to get it really. i hav seen a page or two where all the source code is encrypted using javascript, dont know much about how it was done tho. the source code that was all encrypted was a text msging online service form thing that they obviously didnt want ppl using from another site. but i managed to find out the form target and stuff anyway...
The best way to fool (stupid) people who are after your code is to just put a huge gap in your html file before you start writing your HTML. example <- click view, source and have a look as for images though, I can't see a way to stop people right clicking and saving unless you want to have one of those VERY annoying no-right-click things which don't really stop anyone anyway!
there's no real way to stop stealing of images, you can just *printscreen* and paste it into paint and take the image. for coding, there's lots of ways. For server-side stuff, your coding really can't be seen by a client, so that's always an idea.
Theres really no way to stop people from stealing code unless the page itself is encoded with something such as Zend
I've seen Java Script that prevents right click, left+right click and the veiw source but if someone is determined enough to steal your code they will. They couls save to whole page to the hdd and open the page in notpad for example or simply disable Java Script. The best thing to do is give them a hard time, don't make your code clear to vistors, a bit messy perhaps, it allways puts them off.
You could strip all the redundant whitespace and newlines. Makes it harder to read and save a few bytes in bandwidth at the same time. What exactly do you want to stop people copying? In the end pretty much everything that is processed client side will be up for grabs.
I never understood the big deal about hiding source. Any javascript somebody writes or "cool" html trick he/she has used is already well documented somewhere on the web, for the most part. Anything that contains sensitive information should be done server side anyway, with something like php, perl, or asp. It will be impossible (or at least beyond the capability of all but a couple people) to get at it that way. Make sure that if you are hosted on an IIS server and using asp, make sure the server is patched to prevent that period trick that allows people to download your script. As far as images, Roboto hit it on the head. There's always some workaround to grab your images, so there's no point in putting on one of those annoying "no right-click" scripts. Just watermark your images and post a copyright message somewhere easy to notice, like the bottom of every page. That way if someone does steal your image, you have every right to threaten legal action.
yeah every one of my pages are copyrighted, even though I do all server-side stuff now. I just think that it's common sense to copyright. You do not have to register to force someone to take down stuff, as long as you actually say there is a copyright, then there is.
actually...you don't even need to say it's copyrighted. If you write something, unless you say it's not copyrighted...it is.
there is a way to disable the "printscreen" key. i used it on an old website i made. its throught the use of java script. it is simaler to the disable right click javascript thats floating around out there. I used that and then modified it to disable the "printscreen" key. id post it if i could, but it was unfortunently lost in a hard drive crash (YES I KNOW I SHOULD BACK STUFF UP) but ill see if i can work something out. oh and a really nasty trick is to add a layer over your imae with a transparent image on thwe layer so they right click and save the image but they get the transparent image instead of what they want. i do that on some of my sites LOL. mmmmm fooling stupid people is funny good luck
but the thing is, there is ALWAYS a way around things. If something is disabled through javascript, a user can disable javascript and then have access. If someone is determined to take your stuff, he/she will find a way.
this is a little off topic but kinda no so: how do you make it so your images can only be linked from certain cites, like theforumisdown.com or tripod does?