Anti-spam - Version 4.4

Version Description

  • 2017-08-30 =
  • Fixed issue with showing comments on every page. Thanks to johnh10
Download this release

Release Info

Developer webvitaly
Plugin Icon 128x128 Anti-spam
Version 4.4
Comparing to
See all releases

Code changes from version 4.3 to 4.4

anti-spam.php CHANGED
@@ -3,10 +3,10 @@
3
  Plugin Name: Anti-spam
4
  Plugin URI: http://wordpress.org/plugins/anti-spam/
5
  Description: No spam in comments. No captcha.
6
- Version: 4.3
7
  Author: webvitaly
8
  Text Domain: anti-spam
9
- Author URI: http://web-profile.com.ua/wordpress/plugins/
10
  License: GPLv3
11
  */
12
 
@@ -18,9 +18,9 @@ $antispam_send_spam_comment_to_admin = false; // if true, than rejected spam com
18
  $antispam_log_spam_comment = false; // if true, than rejected spam comments will be logged to wp-content/plugins/anti-spam/log/anti-spam-2015-11.log
19
  $antispam_allow_trackbacks = false; // if true, than trackbacks will be allowed
20
  // trackbacks almost not used by users, but mostly used by spammers; pingbacks are always enabled
21
- // more about the difference between trackback and pingback - http://web-profile.com.ua/web/trackback-vs-pingback/
22
 
23
- define('ANTISPAM_PLUGIN_VERSION', '4.3');
24
 
25
  $antispam_settings = array(
26
  'send_spam_comment_to_admin' => $antispam_send_spam_comment_to_admin,
@@ -34,8 +34,9 @@ include('anti-spam-info.php');
34
 
35
 
36
  function antispam_enqueue_script() {
37
- if (is_singular() && comments_open()) { // load script only for pages with comments form
38
- wp_enqueue_script('anti-spam-script', plugins_url('/js/anti-spam-4.3.js', __FILE__), null, null, true);
 
39
  }
40
  }
41
  add_action('wp_enqueue_scripts', 'antispam_enqueue_script');
@@ -183,9 +184,9 @@ if ( ! is_admin()) {
183
  function antispam_plugin_meta($links, $file) { // add some links to plugin meta row
184
  if ( $file == plugin_basename( __FILE__ ) ) {
185
  $row_meta = array(
186
- 'support' => '<a href="http://web-profile.com.ua/wordpress/plugins/anti-spam/" target="_blank"><span class="dashicons dashicons-editor-help"></span> ' . __( 'Anti-spam', 'anti-spam' ) . '</a>',
187
- 'donate' => '<a href="http://web-profile.com.ua/donate/" target="_blank"><span class="dashicons dashicons-heart"></span> ' . __( 'Donate', 'anti-spam' ) . '</a>',
188
- 'upgrage' => '<a href="http://codecanyon.net/item/antispam-pro/6491169?ref=webvitalii" target="_blank"><span class="dashicons dashicons-star-filled"></span> ' . __( 'Anti-spam Pro', 'anti-spam' ) . '</a>'
189
  );
190
  $links = array_merge( $links, $row_meta );
191
  }
3
  Plugin Name: Anti-spam
4
  Plugin URI: http://wordpress.org/plugins/anti-spam/
5
  Description: No spam in comments. No captcha.
6
+ Version: 4.4
7
  Author: webvitaly
8
  Text Domain: anti-spam
9
+ Author URI: http://web-profile.net/wordpress/plugins/
10
  License: GPLv3
11
  */
12
 
18
  $antispam_log_spam_comment = false; // if true, than rejected spam comments will be logged to wp-content/plugins/anti-spam/log/anti-spam-2015-11.log
19
  $antispam_allow_trackbacks = false; // if true, than trackbacks will be allowed
20
  // trackbacks almost not used by users, but mostly used by spammers; pingbacks are always enabled
21
+ // more about the difference between trackback and pingback - http://web-profile.net/web/trackback-vs-pingback/
22
 
23
+ define('ANTISPAM_PLUGIN_VERSION', '4.4');
24
 
25
  $antispam_settings = array(
26
  'send_spam_comment_to_admin' => $antispam_send_spam_comment_to_admin,
34
 
35
 
36
  function antispam_enqueue_script() {
37
+ global $withcomments; // WP flag to show comments on all pages
38
+ if ((is_singular() || $withcomments) && comments_open()) { // load script only for pages with comments form
39
+ wp_enqueue_script('anti-spam-script', plugins_url('/js/anti-spam-4.4.js', __FILE__), null, null, true);
40
  }
41
  }
42
  add_action('wp_enqueue_scripts', 'antispam_enqueue_script');
184
  function antispam_plugin_meta($links, $file) { // add some links to plugin meta row
185
  if ( $file == plugin_basename( __FILE__ ) ) {
186
  $row_meta = array(
187
+ 'support' => '<a href="http://web-profile.net/wordpress/plugins/anti-spam/" target="_blank">' . __( 'Anti-spam', 'anti-spam' ) . '</a>',
188
+ 'donate' => '<a href="http://web-profile.net/donate/" target="_blank">' . __( 'Donate', 'anti-spam' ) . '</a>',
189
+ 'upgrage' => '<a href="http://codecanyon.net/item/antispam-pro/6491169?ref=webvitalii" target="_blank">' . __( 'Anti-spam Pro', 'anti-spam' ) . '</a>'
190
  );
191
  $links = array_merge( $links, $row_meta );
192
  }
js/{anti-spam-4.3.js → anti-spam-4.4.js} RENAMED
File without changes
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Anti-spam ===
2
  Contributors: webvitaly
3
- Donate link: http://web-profile.com.ua/donate/
4
  Tags: spam, spammer, comment, comments, comment-spam, antispam, anti-spam, block-spam, spam-free, spambot, spam-bot, bot
5
  Requires at least: 3.3
6
- Tested up to: 4.9
7
- Stable tag: 4.3
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl.html
10
 
@@ -13,17 +13,10 @@ No spam in comments. No captcha.
13
  == Description ==
14
 
15
  > **[Anti-spam Pro](http://codecanyon.net/item/antispam-pro/6491169?ref=webvitalii "Upgrade to Pro")** |
16
- > **[Anti-spam](http://web-profile.com.ua/wordpress/plugins/anti-spam/ "Plugin page")** |
17
- > **[Donate](http://web-profile.com.ua/donate/ "Support the development")** |
18
- > **[GitHub](https://github.com/webvitalii/anti-spam "Fork")** |
19
- > **[Silver Bullet Pro](http://codecanyon.net/item/silver-bullet-pro/15171769?ref=webvitalii "Speedup and protect WordPress in a smart way")**
20
 
21
- **Captcha madness:**
22
-
23
- [youtube https://www.youtube.com/watch?v=WqnXp6Saa8Y]
24
-
25
-
26
- **Why humans should prove that they are humans by filling captchas? Lets bots prove that they are not bots with adding javascript to their user-agents!**
27
 
28
  Anti-spam plugin blocks spam in comments automatically, invisibly for users and for admins.
29
 
@@ -36,17 +29,22 @@ Plugin is easy to use: just install it and it just works.
36
 
37
  **Plugin blocks spam only in comments section**.
38
 
 
 
 
 
39
  After installing the Anti-spam plugin **try to submit a comment on your site being logged out**.
40
  If you get an error - you may check the solution in the [Support section](http://wordpress.org/support/plugin/anti-spam) or submit a new topic with detailed description of your problem.
41
 
 
42
  = Useful: =
43
  * **[Anti-spam Pro - extended version with settings and manual spam protection](http://codecanyon.net/item/antispam-pro/6491169?ref=webvitalii "Upgrade to Pro")**
44
  * **[Silver Bullet Pro - Speedup and protect WordPress in a smart way](http://codecanyon.net/item/silver-bullet-pro/15171769?ref=webvitalii "Speedup and protect WordPress in a smart way")**
45
 
46
  == Installation ==
47
 
48
- 1. install and activate the plugin on the Plugins page
49
- 2. enjoy life without spam in comments
50
 
51
  == Frequently Asked Questions ==
52
 
@@ -111,7 +109,7 @@ Users rarely use trackbacks because it is manual and requires extra input. Spamm
111
  Users use pingbacks very often because they work automatically. Spammers does not use pingbacks because backlinks are checked.
112
  So trackbacks are blocked by default but pingbacks are enabled. You may enable trackbacks if you use it.
113
  Edit [anti-spam.php](http://plugins.trac.wordpress.org/browser/anti-spam/trunk/anti-spam.php) file and find "$antispam_allow_trackbacks" and make it "true".
114
- You may read more about the [difference between trackbacks and pingbacks](http://web-profile.com.ua/web/trackback-vs-pingback/).
115
 
116
  = What browsers are supported? =
117
 
@@ -135,9 +133,11 @@ The plugin is pretty small and easy to read.
135
 
136
  == Changelog ==
137
 
 
 
138
 
139
  = 4.3 - 2016-11-22 =
140
- * fix notices
141
 
142
  = 4.2 - 2016-01-30 =
143
  * removed XSS vulnerability - thanks to Kenan from [tbmnull.com](http://tbmnull.com/)
1
  === Anti-spam ===
2
  Contributors: webvitaly
3
+ Donate link: http://web-profile.net/donate/
4
  Tags: spam, spammer, comment, comments, comment-spam, antispam, anti-spam, block-spam, spam-free, spambot, spam-bot, bot
5
  Requires at least: 3.3
6
+ Tested up to: 5.0
7
+ Stable tag: 4.4
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl.html
10
 
13
  == Description ==
14
 
15
  > **[Anti-spam Pro](http://codecanyon.net/item/antispam-pro/6491169?ref=webvitalii "Upgrade to Pro")** |
16
+ > **[Anti-spam](http://web-profile.net/wordpress/plugins/anti-spam/ "Plugin page")** |
17
+ > **[Donate](http://web-profile.net/donate/ "Support the development")** |
18
+ > **[GitHub](https://github.com/webvitalii/anti-spam "Fork")**
 
19
 
 
 
 
 
 
 
20
 
21
  Anti-spam plugin blocks spam in comments automatically, invisibly for users and for admins.
22
 
29
 
30
  **Plugin blocks spam only in comments section**.
31
 
32
+
33
+ **Why humans should prove that they are humans by filling captchas? Lets bots prove that they are not bots with adding javascript to their user-agents!**
34
+
35
+
36
  After installing the Anti-spam plugin **try to submit a comment on your site being logged out**.
37
  If you get an error - you may check the solution in the [Support section](http://wordpress.org/support/plugin/anti-spam) or submit a new topic with detailed description of your problem.
38
 
39
+
40
  = Useful: =
41
  * **[Anti-spam Pro - extended version with settings and manual spam protection](http://codecanyon.net/item/antispam-pro/6491169?ref=webvitalii "Upgrade to Pro")**
42
  * **[Silver Bullet Pro - Speedup and protect WordPress in a smart way](http://codecanyon.net/item/silver-bullet-pro/15171769?ref=webvitalii "Speedup and protect WordPress in a smart way")**
43
 
44
  == Installation ==
45
 
46
+ 1. Install and activate the plugin on the Plugins page
47
+ 2. Enjoy life without spam in comments
48
 
49
  == Frequently Asked Questions ==
50
 
109
  Users use pingbacks very often because they work automatically. Spammers does not use pingbacks because backlinks are checked.
110
  So trackbacks are blocked by default but pingbacks are enabled. You may enable trackbacks if you use it.
111
  Edit [anti-spam.php](http://plugins.trac.wordpress.org/browser/anti-spam/trunk/anti-spam.php) file and find "$antispam_allow_trackbacks" and make it "true".
112
+ You may read more about the [difference between trackbacks and pingbacks](http://web-profile.net/web/trackback-vs-pingback/).
113
 
114
  = What browsers are supported? =
115
 
133
 
134
  == Changelog ==
135
 
136
+ = 4.4 - 2017-08-30 =
137
+ * Fixed issue with showing comments on every page. Thanks to [johnh10](https://wordpress.org/support/topic/shows-the-captcha-on-archive-pages/)
138
 
139
  = 4.3 - 2016-11-22 =
140
+ * fixed notices
141
 
142
  = 4.2 - 2016-01-30 =
143
  * removed XSS vulnerability - thanks to Kenan from [tbmnull.com](http://tbmnull.com/)