Anti-spam - Version 1.6

Version Description

  • 2013-05-05 =
  • add some more debug info in errors text
Download this release

Release Info

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

Code changes from version 1.5 to 1.6

Files changed (2) hide show
  1. anti-spam.php +5 -5
  2. readme.txt +6 -3
anti-spam.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Anti-spam
4
  Plugin URI: http://wordpress.org/extend/plugins/anti-spam/
5
  Description: No spam in comments. No captcha.
6
- Version: 1.5
7
  Author: webvitaly
8
  Author URI: http://web-profile.com.ua/wordpress/plugins/
9
  License: GPLv2 or later
@@ -15,7 +15,7 @@ $antispam_allow_trackbacks = false; // if true, than trackbacks will be allowed
15
  // trackbacks almost not used by users, but mostly used by spammers; pingbacks are always enabled
16
  // more about the difference between trackback and pingback - http://web-profile.com.ua/web/trackback-vs-pingback/
17
 
18
- $antispam_version = '1.5';
19
 
20
 
21
  if ( ! function_exists( 'antispam_scripts_styles_init' ) ) :
@@ -102,14 +102,14 @@ function antispam_check_comment( $commentdata ) {
102
  if ( trim( $_POST['anti-spam-q'] ) != date('Y') ) { // answer is wrong - maybe spam
103
  $spam_flag = true;
104
  if ( empty( $_POST['anti-spam-q'] ) ) { // empty answer - maybe spam
105
- $antispam_error_message .= '<br> Error: empty answer. ';
106
  } else {
107
- $antispam_error_message .= '<br> Error: answer is wrong. ';
108
  }
109
  }
110
  if ( ! empty( $_POST['anti-spam-e-email-url'] ) ) { // field is not empty - maybe spam
111
  $spam_flag = true;
112
- $antispam_error_message .= '<br> Error: field should be empty. ';
113
  }
114
  if ( $spam_flag ) { // if we have spam
115
  if ( $antispam_send_spam_comment_to_admin ) { // if sending email to admin is enabled
3
  Plugin Name: Anti-spam
4
  Plugin URI: http://wordpress.org/extend/plugins/anti-spam/
5
  Description: No spam in comments. No captcha.
6
+ Version: 1.6
7
  Author: webvitaly
8
  Author URI: http://web-profile.com.ua/wordpress/plugins/
9
  License: GPLv2 or later
15
  // trackbacks almost not used by users, but mostly used by spammers; pingbacks are always enabled
16
  // more about the difference between trackback and pingback - http://web-profile.com.ua/web/trackback-vs-pingback/
17
 
18
+ $antispam_version = '1.6';
19
 
20
 
21
  if ( ! function_exists( 'antispam_scripts_styles_init' ) ) :
102
  if ( trim( $_POST['anti-spam-q'] ) != date('Y') ) { // answer is wrong - maybe spam
103
  $spam_flag = true;
104
  if ( empty( $_POST['anti-spam-q'] ) ) { // empty answer - maybe spam
105
+ $antispam_error_message .= '<br> Error: empty answer. ['.$_POST['anti-spam-q'].']';
106
  } else {
107
+ $antispam_error_message .= '<br> Error: answer is wrong. ['.$_POST['anti-spam-q'].']';
108
  }
109
  }
110
  if ( ! empty( $_POST['anti-spam-e-email-url'] ) ) { // field is not empty - maybe spam
111
  $spam_flag = true;
112
+ $antispam_error_message .= '<br> Error: field should be empty. ['.$_POST['anti-spam-e-email-url'].']';
113
  }
114
  if ( $spam_flag ) { // if we have spam
115
  if ( $antispam_send_spam_comment_to_admin ) { // if sending email to admin is enabled
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://web-profile.com.ua/donate/
4
  Tags: spam, spammer, spammers, comment, comments, antispam, anti-spam, block-spam, spamfree, spam-free, spambot, spam-bot, bot
5
  Requires at least: 3.0
6
  Tested up to: 3.5.1
7
- Stable tag: 1.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -45,7 +45,7 @@ If the spammer tries to submit comment form, he will make a mistake with answer
45
  = How to test what spam comments are rejected? =
46
 
47
  You may enable sending all rejected spam comments to admin email.
48
- You should edit "anti-spam.php" file and find "$antispam_send_spam_comment_to_admin" and make it "true".
49
 
50
  = What is the percentage of spam blocked? =
51
 
@@ -57,7 +57,7 @@ But Anti-spam plugin will pass the messages which were submitted by spammers man
57
  Users rarely use trackbacks because it is manual and requires extra input. Spammers uses trackbacks because it is easy to cheat here.
58
  Users use pingbacks very often because they work automatically. Spammers does not use pingbacks because backlinks are checked.
59
  So trackbacks are blocked by default but pingbacks are enabled. You may enable trackbacks if you use it.
60
- Just edit "anti-spam.php" file and find "$antispam_allow_trackbacks" and make it "true".
61
  You may read more about the [difference between trackbacks and pingbacks](http://web-profile.com.ua/web/trackback-vs-pingback/).
62
 
63
  = Not enough information about the plugin? =
@@ -74,6 +74,9 @@ Do not order products from spam. If spam will be less effective than spammers wi
74
 
75
  == Changelog ==
76
 
 
 
 
77
  = 1.5 - 2013-04-15 =
78
  * disable trackbacks because of spam (pingbacks are enabled)
79
 
4
  Tags: spam, spammer, spammers, comment, comments, antispam, anti-spam, block-spam, spamfree, spam-free, spambot, spam-bot, bot
5
  Requires at least: 3.0
6
  Tested up to: 3.5.1
7
+ Stable tag: 1.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
45
  = How to test what spam comments are rejected? =
46
 
47
  You may enable sending all rejected spam comments to admin email.
48
+ Edit [anti-spam.php](http://plugins.trac.wordpress.org/browser/anti-spam/trunk/anti-spam.php) file and find "$antispam_send_spam_comment_to_admin" and make it "true".
49
 
50
  = What is the percentage of spam blocked? =
51
 
57
  Users rarely use trackbacks because it is manual and requires extra input. Spammers uses trackbacks because it is easy to cheat here.
58
  Users use pingbacks very often because they work automatically. Spammers does not use pingbacks because backlinks are checked.
59
  So trackbacks are blocked by default but pingbacks are enabled. You may enable trackbacks if you use it.
60
+ 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".
61
  You may read more about the [difference between trackbacks and pingbacks](http://web-profile.com.ua/web/trackback-vs-pingback/).
62
 
63
  = Not enough information about the plugin? =
74
 
75
  == Changelog ==
76
 
77
+ = 1.6 - 2013-05-05 =
78
+ * add some more debug info in errors text
79
+
80
  = 1.5 - 2013-04-15 =
81
  * disable trackbacks because of spam (pingbacks are enabled)
82