Adobe Dreamweaver is a popular Web-development tool that allows users to design, manage and maintain their web site without the need for occasionally tedious hand-coding. Dreamweaver's users can create intricate, complex sites with a lot of content, so it's only natural that some webmasters will want to protect their material from competitors and snoops. You can deter potential thieves by disabling the right-click feature on all Web pages produced in Dreamweaver.
- Skill level:
Other People Are Reading
Now when someone tries to right-click your site, they'll get a customised error message.
Call an external function. Copy the above code and paste it into a text file, saving it in your site's root directory as "protect.js." One of Dreamweaver's most powerful features is a search-and-replace function that will replace text anywhere on your web site. Press Ctrl+F with your site open and select "Entire Current Local Site." Paste your current <HEAD> tag in both the "Find" and "Replace" boxes and then add the following line of code to the "Replace" box:
Click "Replace All," and your entire site will be protected.
Use a body script to disable the context menu. This can't be used externally like the header script, but it's lightweight and disables Shift+F10 context menus. Replace the body tag with this line:
<body oncontextmenu="return false;">
Tips and warnings
- Find other ways to protect your content. Modern browsers, such as Firefox, allow users to disable click-blocking, and Opera does so automatically. Try watermarking, digital tracking and flash files to save your content more effectively.
- 20 of the funniest online reviews ever
- 14 Biggest lies people tell in online dating sites
- Hilarious things Google thinks you're trying to search for