How to prevent copy content from website?

Hi Folks,

Many people put extra effect to create web pages with their unique content. They do not want to allow users copy and paste their contents to any other web pages. They want to prevent their contents from copy and paste. They want to make it as a unique content. Make sure, the bellow HTML and CSS code will help them a lot to prevent their contents from copy and paste.

In worst-case scenario, some users really want to refer your content. If you do these techniques in your blog or website, they will be troubled. Then no reference, no back links, no credits and no thanks to you and your website from these users.

Copy cats always great, they know how to break these techniques and how to steal your contents.

Try to add these code in your blog or website if it is really needed.

<body ondragstart="return false" onselectstart="return false">

Add ondragstart and onselectstart attribute in HTML body tag. Both should return false.

body {
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
}

On top of that add CSS to HTML body tag. This will prevent your whole web page from user selection and copy. If you don’t want to apply these prevention to whole web page, then create a separate CSS class and add this class where ever you want. This is the better alternative rather than apply to whole page.

How to add above techniques in wordpress?

Go to Appearance > Editor which is left side of wordpress admin panel

Click on Header (header.php) which is right side of the admin panel and edit this file in editor. Add ondragstart=”return false” onselectstart=”return false” in body tag and click on ‘Update File’ button.

Then, click on Stylesheet (style.css) and edit this file in editor. Add body css function and click on  ‘Update File’ button.

Note: IE does not support this.

I’ve added these techniques on www.f2finterview.com

 


Django-Python Web based application developer.

Share This Post

Related Articles

Leave a Reply

© 2017 Techy Diary. All rights reserved.
Powered by Charvi Groups