Showing posts with label html protection. Show all posts

Protect Copy Paste & Source code from Your blog or website

At first take my Salam & cordial love to you all.
Always we want to live on safe mode. Today I bring safty net for your website and blogger. Lets go to start.
Get security on your website for protect copyright every things from copy. You can also protect your website photos to copy. Are you work hard into your blog in the way of Graphics Design? Copter team duplicate your valuable graphics work? No more chance, block them quickly. With 100% guaranty it will not protect your right click but it will protect your novices.

When anyone want to copy by right click on Image, Save an image option notice the copier 'Copyright protected' massage.
This script doesn't support in all browser. If anyone want to copy anything from your website or blogger he can fond out same alternate way. Above all it will show a massage to protect copyright.

Now go to HTML editing panel and find out <head> tag. Copy and paste HTML code from the below box to right after the <head> tag.

<script language=JavaScript> var message="Function Disabled!"; function clickIE4(){ if (event.button==2){ alert(message); return false; } } function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert(message); return false; } } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; } document.oncontextmenu=new Function("alert(message);return false") </script>


If you are not expert to use Java Script, you can follow this way. You can use a span tag to protect copyright for each image. You can use a transparent .gif image over your image. For protect you should follow a format of html code and a sample code are keep in below.



<span style="background-image: url(images/my_image.jpg)"><img src="images/transparent.gif" width="200" height="150" border="0" alt="Protected Image."></span>



Disable right click for source

Now this way is a best solution. This process will not only protect your image file but also protect whole web page. It protect some user to view source code. If any critical user really want to view source code they may find out a way. If you are ready to protect your source code, another trick code keep below for you.




<script language=JavaScript> var message="Function Disabled!"; function clickIE4(){ if (event.button==2){ alert(message); return false; } } function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert(message); return false; } } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; } document.oncontextmenu=new Function("alert(message);return false") </script>

Security for greater website from copy & paste

One of the most popular question is "How can I protect stealing from my important users?" A little trick you can use for security. With the help of this you can protect copy - paste from your website. Some black user can find out by-pass but after all this process will be so hard.Trick code into code box show in below.
Find out <body> tag and put this code inside body. How to your body tag may look once implemented.

<body bgcolor="#FFFFFF" ondragstart="return false" onselectstart="return false">

Follow this:
ondragstart="return false" onselectstart="return false"


I think any of this you can use for security. For any question and suggestion comment me. For further information stay on connect.


Read more