Version Description
Download this release
Release Info
Developer | cchetanonline |
Plugin | WP-CopyProtect [Protect your blog posts] |
Version | 1.5 |
Comparing to | |
See all releases |
Code changes from version 1.4 to 1.5
- Thumbs.db +0 -0
- readme.txt +21 -13
- screenshot-1.gif +0 -0
- screenshot-1.jpeg +0 -0
- wp-copyprotect.php +37 -43
Thumbs.db
ADDED
Binary file
|
readme.txt
CHANGED
@@ -1,39 +1,47 @@
|
|
1 |
=== WP-CopyProtect ===
|
2 |
Contributors: cchetanonline
|
3 |
-
Donate link: http://www.thechetan.com/
|
4 |
Tags: post, posts, copy, protect, right, click, disable, copyprotect, Google, SEO
|
5 |
Requires at least: 2
|
6 |
-
Tested up to: 2.
|
7 |
-
Stable tag: 1.
|
8 |
|
9 |
-
Protect your blog content from
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
-
Protect your blog content from
|
14 |
|
15 |
-
This plug-in will
|
16 |
-
|
|
|
|
|
17 |
|
18 |
-
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
|
22 |
== Installation ==
|
23 |
|
24 |
1. Upload `wp-copyprotect.php` to the `/wp-content/plugins/` directory
|
25 |
2. Activate the plugin through the 'Plugins' menu in WordPress
|
26 |
-
3. Go to Settings and then WP-CopyProtect to configure.
|
27 |
|
28 |
== Frequently Asked Questions ==
|
29 |
|
30 |
-
=
|
31 |
|
32 |
-
|
|
|
|
|
|
|
33 |
|
34 |
-
=
|
35 |
|
36 |
-
|
37 |
|
38 |
== Screenshots ==
|
39 |
1. Configuration page
|
1 |
=== WP-CopyProtect ===
|
2 |
Contributors: cchetanonline
|
3 |
+
Donate link: http://www.thechetan.com/wp-copyprotect/#donate
|
4 |
Tags: post, posts, copy, protect, right, click, disable, copyprotect, Google, SEO
|
5 |
Requires at least: 2
|
6 |
+
Tested up to: 2.7
|
7 |
+
Stable tag: 1.6
|
8 |
|
9 |
+
Protect your blog content from getting copied. A simple plug-in developed to stop the Copy cats
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
+
Protect your blog content from getting copied. A simple plug-in developed to stop the Copy cats
|
14 |
|
15 |
+
= This plug-in will =
|
16 |
+
* **Disable right click** on your blog
|
17 |
+
* it will also **Disable selection of text**
|
18 |
+
So that no one can simply copy and paste the content of your blog in there blog or site.
|
19 |
|
20 |
+
NOTE: Both *disable right click* and *disable selection of text* can be switch ON or OFF through *Settings* menu.
|
21 |
+
You must enable the options from settings page after installing it to enable the protection.
|
22 |
|
23 |
+
*Latest* release 1.6 : Wordpress 2.7 tested, patched.
|
24 |
|
25 |
+
By [Chetan Gole](http://www.thechetan.com/).
|
26 |
|
27 |
== Installation ==
|
28 |
|
29 |
1. Upload `wp-copyprotect.php` to the `/wp-content/plugins/` directory
|
30 |
2. Activate the plugin through the 'Plugins' menu in WordPress
|
31 |
+
3. Go to **Settings** and then **WP-CopyProtect** to configure and enable.
|
32 |
|
33 |
== Frequently Asked Questions ==
|
34 |
|
35 |
+
= Why Disable content selection is not working ? =
|
36 |
|
37 |
+
Actually your theme doesn't have `<?php wp_footer(); ?>` in footer, so please edit the footer of your theme and insert that code.
|
38 |
+
To edit the theme go to Design >> Theme Editor >> Select "Footer.php" from right hand list >> and paste `<?php wp_footer(); ?>` just before the '< /body >' tag.
|
39 |
+
If possible add this code near to Wordpress link.
|
40 |
+
The "disable Content selection" will start working.
|
41 |
|
42 |
+
= I have problems and questions =
|
43 |
|
44 |
+
Catch me on [Wp-CopyProtect Homepage](http://www.thechetan.com/wp-copyprotect/)
|
45 |
|
46 |
== Screenshots ==
|
47 |
1. Configuration page
|
screenshot-1.gif
DELETED
Binary file
|
screenshot-1.jpeg
ADDED
Binary file
|
wp-copyprotect.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: WP-CopyProtect
|
4 |
-
Plugin URI: http://www.thechetan.com/wp-copyprotect
|
5 |
Description: This plug-in will protect your blog content from being copied. A simple plug-in developed to stop the Copy cats.
|
6 |
-
Version: 1.
|
7 |
Author: Chetan Gole
|
8 |
Author URI: http://www.thechetan.com/
|
9 |
*/
|
@@ -32,7 +32,7 @@ function CopyProtect_no_right_click($CopyProtect_click_message)
|
|
32 |
<!--
|
33 |
|
34 |
/***************************************************************************************************************
|
35 |
-
*Copyprotection for this site is provided by WP-CopyProtect visit TheChetan.com/wp-copyprotect/ for more details
|
36 |
*RightClick Disabled, Please DO NOT COPY.
|
37 |
***************************************************************************************************************/
|
38 |
|
@@ -80,7 +80,7 @@ function CopyProtect_no_select()
|
|
80 |
<script type="text/javascript">
|
81 |
|
82 |
/***************************************************************************************************************
|
83 |
-
*Copyprotection for this site is provided by WP-CopyProtect visit TheChetan.com/wp-copyprotect/ for more details
|
84 |
*Selection Disabled, Please DO NOT COPY.
|
85 |
***************************************************************************************************************/
|
86 |
|
@@ -102,24 +102,15 @@ target.style.cursor = "default"
|
|
102 |
|
103 |
|
104 |
// No selection footer
|
|
|
|
|
105 |
function CopyProtect_no_select_footer()
|
106 |
{
|
107 |
?>
|
108 |
<script type="text/javascript">
|
109 |
disableSelection(document.body) //disable text selection on entire body of page
|
110 |
</script>
|
111 |
-
|
112 |
-
<?php
|
113 |
-
}
|
114 |
-
|
115 |
-
|
116 |
-
// adds button in Footer
|
117 |
-
function CopyProtect_button()
|
118 |
-
{
|
119 |
-
?>
|
120 |
-
|
121 |
-
<a href="http://www.thechetan.com/wp-copyprotect/" target="_blank"><img src="http://cchetanonline.googlepages.com/copy-protect.jpeg" alt="Protected by WP-CopyProtect" border="0" /></a>
|
122 |
-
|
123 |
<?php
|
124 |
}
|
125 |
|
@@ -131,29 +122,26 @@ function CopyProtect_options_page()
|
|
131 |
update_option('CopyProtect_nrc',$_POST['CopyProtect_nrc']);
|
132 |
update_option('CopyProtect_nts',$_POST['CopyProtect_nts']);
|
133 |
update_option('CopyProtect_nrc_text',$_POST['CopyProtect_nrc_text']);
|
134 |
-
update_option('CopyProtect_button',$_POST['CopyProtect_button']);
|
135 |
|
136 |
echo '<div class="updated"><p>Commands accepted</p></div>';
|
137 |
}
|
138 |
$wp_CopyProtect_nrc = get_option('CopyProtect_nrc');
|
139 |
$wp_CopyProtect_nts = get_option('CopyProtect_nts');
|
140 |
-
$wp_CopyProtect_button = get_option('CopyProtect_button');
|
141 |
?>
|
142 |
<div class="wrap">
|
|
|
143 |
<h2>WP-CopyProtect Options</h2>
|
144 |
<form method="post" id="CopyProtect_options">
|
145 |
<fieldset class="options">
|
146 |
<legend>Now, its the time to bang the copy cats.</legend>
|
147 |
<legend>Select the proper options as per your needs</legend>
|
148 |
-
<
|
149 |
-
<table width="100%" cellspacing="2" cellpadding="5" class="editform">
|
150 |
|
151 |
<tr valign="top">
|
152 |
<th width="33%" scope="row">Disable right mouse click:</th>
|
153 |
<td>
|
154 |
<input type="checkbox" id="CopyProtect_nrc" name="CopyProtect_nrc" value="CopyProtect_nrc" <?php if($wp_CopyProtect_nrc == true) { echo('checked="checked"'); } ?> />
|
155 |
-
check to activate <br />
|
156 |
-
<br />
|
157 |
<input name="CopyProtect_nrc_text" type="text" id="CopyProtect_nrc_text" value="<?php echo get_option('CopyProtect_nrc_text') ;?>" size="30"/>
|
158 |
This warning will be given to right clickers.
|
159 |
</td>
|
@@ -162,38 +150,46 @@ function CopyProtect_options_page()
|
|
162 |
<th width="33%" scope="row">Disable text selection:</th>
|
163 |
<td>
|
164 |
<input type="checkbox" id="CopyProtect_nts" name="CopyProtect_nts" value="CopyProtect_nts" <?php if($wp_CopyProtect_nts == true) { echo('checked="checked"'); } ?> />
|
165 |
-
check to activate.
|
166 |
-
</td>
|
167 |
-
</tr>
|
168 |
-
<tr valign="top">
|
169 |
-
<th width="33%" scope="row">Proudly show :</th>
|
170 |
-
<td>
|
171 |
-
<input type="checkbox" id="CopyProtect_button" name="CopyProtect_button" value="CopyProtect_button" checked="checked" <?php if($wp_CopyProtect_button == true) { echo('checked="checked"'); } ?> />
|
172 |
-
check to activate (Proudly show that this page is protected from Copy cats, adds button at Footer)
|
173 |
</td>
|
174 |
</tr>
|
175 |
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
<
|
|
|
|
|
|
|
|
|
|
|
180 |
|
181 |
-
|
182 |
-
<h3>Please note</h3>
|
183 |
This is just a basic copy protect plug-in, if someone want to copy your content he/she can go to source of the blog and can easily copy the stuff from there.
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
188 |
<h3>Thank you</h3>
|
189 |
Plug in developed by <a href="http://www.thechetan.com/" target="_blank">Chetan Gole</a>.
|
190 |
</fieldset>
|
191 |
</form>
|
|
|
192 |
</div>
|
193 |
<?php
|
194 |
}
|
195 |
|
196 |
-
//We are calling you function
|
197 |
function CopyProtect()
|
198 |
{
|
199 |
|
@@ -211,10 +207,8 @@ function CopyProtect()
|
|
211 |
function CopyProtect_footer()
|
212 |
{
|
213 |
$wp_CopyProtect_nts = get_option('CopyProtect_nts');
|
214 |
-
$wp_CopyProtect_button = get_option('CopyProtect_button');
|
215 |
|
216 |
if($wp_CopyProtect_nts == true) { CopyProtect_no_select_footer(); }
|
217 |
-
if($wp_CopyProtect_button == true) { CopyProtect_button(); }
|
218 |
}
|
219 |
|
220 |
function CopyProtect_adminmenu()
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: WP-CopyProtect
|
4 |
+
Plugin URI: http://www.thechetan.com/wp-copyprotect/
|
5 |
Description: This plug-in will protect your blog content from being copied. A simple plug-in developed to stop the Copy cats.
|
6 |
+
Version: 1.6
|
7 |
Author: Chetan Gole
|
8 |
Author URI: http://www.thechetan.com/
|
9 |
*/
|
32 |
<!--
|
33 |
|
34 |
/***************************************************************************************************************
|
35 |
+
*Copyprotection for this site is provided by WP-CopyProtect v1.6 visit TheChetan.com/wp-copyprotect/ for more details
|
36 |
*RightClick Disabled, Please DO NOT COPY.
|
37 |
***************************************************************************************************************/
|
38 |
|
80 |
<script type="text/javascript">
|
81 |
|
82 |
/***************************************************************************************************************
|
83 |
+
*Copyprotection for this site is provided by WP-CopyProtect v1.6 visit TheChetan.com/wp-copyprotect/ for more details
|
84 |
*Selection Disabled, Please DO NOT COPY.
|
85 |
***************************************************************************************************************/
|
86 |
|
102 |
|
103 |
|
104 |
// No selection footer
|
105 |
+
// Yes, You can remove this link from footer, but why ?, This plugin is protecting your content, so just donate me a backlink.
|
106 |
+
// If you are removing this link please consider adding me in your blogroll or write a post about this plugin.
|
107 |
function CopyProtect_no_select_footer()
|
108 |
{
|
109 |
?>
|
110 |
<script type="text/javascript">
|
111 |
disableSelection(document.body) //disable text selection on entire body of page
|
112 |
</script>
|
113 |
+
<small>Copy Protected by <a href="http://www.thechetan.com/wp-copyprotect/" target="_blank">WP-CopyProtect</a> Thanks to <a href="http://www.thechetan.com/" target="_blank">Chetan</a>.</small>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
<?php
|
115 |
}
|
116 |
|
122 |
update_option('CopyProtect_nrc',$_POST['CopyProtect_nrc']);
|
123 |
update_option('CopyProtect_nts',$_POST['CopyProtect_nts']);
|
124 |
update_option('CopyProtect_nrc_text',$_POST['CopyProtect_nrc_text']);
|
|
|
125 |
|
126 |
echo '<div class="updated"><p>Commands accepted</p></div>';
|
127 |
}
|
128 |
$wp_CopyProtect_nrc = get_option('CopyProtect_nrc');
|
129 |
$wp_CopyProtect_nts = get_option('CopyProtect_nts');
|
|
|
130 |
?>
|
131 |
<div class="wrap">
|
132 |
+
|
133 |
<h2>WP-CopyProtect Options</h2>
|
134 |
<form method="post" id="CopyProtect_options">
|
135 |
<fieldset class="options">
|
136 |
<legend>Now, its the time to bang the copy cats.</legend>
|
137 |
<legend>Select the proper options as per your needs</legend>
|
138 |
+
<table class="form-table">
|
|
|
139 |
|
140 |
<tr valign="top">
|
141 |
<th width="33%" scope="row">Disable right mouse click:</th>
|
142 |
<td>
|
143 |
<input type="checkbox" id="CopyProtect_nrc" name="CopyProtect_nrc" value="CopyProtect_nrc" <?php if($wp_CopyProtect_nrc == true) { echo('checked="checked"'); } ?> />
|
144 |
+
check to activate <br />
|
|
|
145 |
<input name="CopyProtect_nrc_text" type="text" id="CopyProtect_nrc_text" value="<?php echo get_option('CopyProtect_nrc_text') ;?>" size="30"/>
|
146 |
This warning will be given to right clickers.
|
147 |
</td>
|
150 |
<th width="33%" scope="row">Disable text selection:</th>
|
151 |
<td>
|
152 |
<input type="checkbox" id="CopyProtect_nts" name="CopyProtect_nts" value="CopyProtect_nts" <?php if($wp_CopyProtect_nts == true) { echo('checked="checked"'); } ?> />
|
153 |
+
check to activate. <a href="http://www.thechetan.com/wp-copyprotect/#kp" target="_blank">Not working ?</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
</td>
|
155 |
</tr>
|
156 |
|
157 |
+
<tr>
|
158 |
+
<th width="33%" scope="row">Save settings :</th>
|
159 |
+
<td>
|
160 |
+
<input type="submit" name="CopyProtect_save" value="Save Settings" />
|
161 |
+
</td>
|
162 |
+
</tr>
|
163 |
+
<tr>
|
164 |
+
<th width="33%" scope="row">Please note :</th>
|
165 |
+
<td>
|
166 |
|
|
|
|
|
167 |
This is just a basic copy protect plug-in, if someone want to copy your content he/she can go to source of the blog and can easily copy the stuff from there.
|
168 |
+
Most copy cats use your blogs <a href="/feed/" target="_blank">RSS feeds</a> to steal the content. Always select "Summary" at "For each article in a feed, show" in Wordpress admin panel "<a href="options-reading.php">Reading Settings</a>" so that even if someone try to copy your content from feeds he/she can not copy the whole post.
|
169 |
+
|
170 |
+
</td>
|
171 |
+
</tr>
|
172 |
+
|
173 |
+
<tr>
|
174 |
+
<th scope="row" style="text-align:right; vertical-align:top;">
|
175 |
+
<td>
|
176 |
+
<h3>Whats next ?</h3>
|
177 |
+
<p>Why don't you <a href="/wp-admin/post-new.php">write a post</a> about <a href="http://www.thechetan.com/wp-copyprotect/" target="_blank">WP-CopyProtect</a> ?</p>
|
178 |
+
<h3>Problems, Questions, Suggestions ?</h3>
|
179 |
+
<p>Catch me on <a href="http://www.thechetan.com/wp-copyprotect/" target="_blank">WP-CopyProtect Homepage</a></p>
|
180 |
+
</td>
|
181 |
+
</tr>
|
182 |
+
</table>
|
183 |
<h3>Thank you</h3>
|
184 |
Plug in developed by <a href="http://www.thechetan.com/" target="_blank">Chetan Gole</a>.
|
185 |
</fieldset>
|
186 |
</form>
|
187 |
+
</table>
|
188 |
</div>
|
189 |
<?php
|
190 |
}
|
191 |
|
192 |
+
//We are calling you, function
|
193 |
function CopyProtect()
|
194 |
{
|
195 |
|
207 |
function CopyProtect_footer()
|
208 |
{
|
209 |
$wp_CopyProtect_nts = get_option('CopyProtect_nts');
|
|
|
210 |
|
211 |
if($wp_CopyProtect_nts == true) { CopyProtect_no_select_footer(); }
|
|
|
212 |
}
|
213 |
|
214 |
function CopyProtect_adminmenu()
|