Forum Moderators: phranque
maybe you could find a few ides in this search [google.com] or maybe this one [google.com]
To answer your question, there is no way to prevent people from saving your site, stealing your content, purloining your images, or any of the many other similarly-scummy things to do. If you put it on the Internet, any visitor who is even semi tech-savvy can get it.
That said, there are things that can be done to make it harder to save sites and steal content, etc. Your "no right-click" script is one way, although many visitors will find it annoying. However, disabling the "File > Save As" function is not possible.
Again, any determined visitor will be able to nab pretty much anything you put online. There's no way around it, so the best thing to do is normally just to get used to the fact that you can't protect your stuff 100%, and learn to live with it.
This approach protects you from spiders and from people viewing the source code, but someone can still hit ctrl-A and copy all the text on a given page.
document.write to write the webpage? That would sure make source-viewing a tedious thing to do, and would ensure that anyone viewing the content would have JS turned on and thus would be subject to whatever "no-right-click" scripting was used (except Firefox users who have installed "Allow Right Click.") But can these solutions actually stop a visitor from using their browsers' menu bar options? I would sure hope not.
I'm sure it was largely built on Javascript because I dug in there to see if there was any way of linking to deep pages or individual queries, but I never figured out a way.
One way is not make a site that is not savable.
Google is one good example that gets talks about a lot at WMW. You could right-click and save pages from Google all day and you would not have even got close to "saving" what Google does.
What Googles does is in its intellectual property, databases, scripts, backroom programs, etc, of which any given browser window is just a glimpse.
If a site is so shallow that there is nothing but the surface appearance, then no amount of interfering with user's hardware (like the mouse right button) will disguise the fact that there isn't much there in the first place.
Give you site some depth, secure your server, and the problem disappears.