Protect your pictures and text

Jngrbrdman

New member
I have a great file for you guys with websites who want to protect your articles and pictures. I'll gladly give permission to someone to use my work or pictures if they ask, but they need to ask first. So I'm taking steps to protect my website from people who don't bother asking. Right Click and Save As on this link and then insert it on the pages you want to protect. For example, the way it looks on my site is <script language="JavaScript" src="http://www.ocdetails.com/siteshield.js"></script>

Basically the code does the following:

-Disables right click and context menu
-Protects your valuable content, source code, links, and images
-Disables drag & drop
-Disables text selecting and copy & paste
-Disables offline viewing of your webpage
-Hides the URLs of your links
-Disables printing of your webpage
-Keeps your page out of frames
-Disables taking screenshots of your webpages

It isn't too hard to get around javascript code like this on a website, but it will slow people down at least. This is the most complete program for website protection that I have come across. The only page I have it on right now is just the front page of OCDetails, but I'll be publishing all the pages with this code on the next update. I just thought I'd share it with anybody else interested in protecting their work. :)
 
that's cool of you to share that. Like you said anyone savvy enough can get around it. Using Firefox for example will bypass the right-click trap. That's just the nature of Mozilla.

I hope it at least slows down the theft from your site ;) If you need any web advice, i'll be glad to help. I am a software/web developer and will be MORE than willing to provide my services to anyone that needs it at no cost. ;)
 
Based on the traffic through OCDetails 90% of it is IE, so this script will stop most of the people I am worried about.

Thanks for the offer 2005Accord. Right now I'm just burried in the process of trying to learn Flash. I'll let you know if I run into something you can help with though. Thanks!
 
This is great, Anthony; I've been seeing some leeches taking a few of my pictures in the last couple weeks, too.

2005Accord, I do have a question that maybe you can answer: How can I set my site up to limit hot-linking to work with only certain approved sites? I'd like to basically limit hot-linking of any pictures/content on my server to the sites I'm actively a member of, and I have yet to figure out how to make that work. If it matters, I use CPanel to access the back end of my site. Thanks in advance!
 
Jngrbrdman said:
I have a great file for you guys with websites who want to protect your articles and pictures.

This is sweet! I'm using this on my web pages at work! Thanks for sharing.

Charles
 
2005Accord said:
If you need any web advice, i'll be glad to help. I am a software/web developer and will be MORE than willing to provide my services to anyone that needs it at no cost. ;)


I just dropped the script into one of my web pages, using Visual Studio.NET. But when I started Debug, my page appeared OK, but no protection. Obviously, you can tell that I'm no Javascript expert. Something within the script needs to be changed to customize it to my web page. But what? The documents? I see:

document.this
document.that

What are these referring to, and what should I put in their stead?

Charles
 
Back
Top