Stop Spammers - Version 7.0.9

Version Description

  • encrypted all external links
Download this release

Release Info

Developer bhadaway
Plugin Icon 128x128 Stop Spammers
Version 7.0.9
Comparing to
See all releases

Code changes from version 7.0.8 to 7.0.9

classes/be_module.class.php CHANGED
@@ -351,7 +351,7 @@ class be_module {
351
  }
352
  /**************************************************
353
  * check if an IP is in a CIDR range
354
- * From http://php.net/manual/en/ref.network.php
355
  ***************************************************/
356
  }
357
 
351
  }
352
  /**************************************************
353
  * check if an IP is in a CIDR range
354
+ * From https://secure.php.net/manual/en/ref.network.php
355
  ***************************************************/
356
  }
357
 
classes/ss_challenge.php CHANGED
@@ -276,10 +276,10 @@ message <!-- not email -->:<br /><textarea name=\"km\"></textarea>
276
  $solvmediaapivchallenge = $options['solvmediaapivchallenge'];
277
  $cap = "
278
  <script type=\"text/javascript\"
279
- src=\"http://api.solvemedia.com/papi/challenge.script?k=$solvmediaapivchallenge\">
280
  </script>
281
  <noscript>
282
- <iframe src=\"http://api.solvemedia.com/papi/challenge.noscript?k=$solvmediaapivchallenge\"
283
  height=\"300\" width=\"500\" frameborder=\"0\"></iframe><br />
284
  <textarea name=\"adcopy_challenge\" rows=\"3\" cols=\"40\">
285
  </textarea>
276
  $solvmediaapivchallenge = $options['solvmediaapivchallenge'];
277
  $cap = "
278
  <script type=\"text/javascript\"
279
+ src=\"https://api-secure.solvemedia.com/papi/challenge.script?k=$solvmediaapivchallenge\">
280
  </script>
281
  <noscript>
282
+ <iframe src=\"https://api-secure.solvemedia.com/papi/challenge.noscript?k=$solvmediaapivchallenge\"
283
  height=\"300\" width=\"500\" frameborder=\"0\"></iframe><br />
284
  <textarea name=\"adcopy_challenge\" rows=\"3\" cols=\"40\">
285
  </textarea>
classes/ss_get_alreq.php CHANGED
@@ -40,7 +40,7 @@ class ss_get_alreq {
40
  $addtodeny = "<a href=\"\"onclick=\"sfs_ajax_process('$value[0]','$container','add_black','$ajaxurl');return false;\" title=\"Add $value[0] to Deny List\" alt=\"Add $value[0] to Deny List\" ><img src=\"$tdown\" height=\"16px\" /></a>";
41
  $addtoallow = "<a href=\"\"onclick=\"sfs_ajax_process('$value[0]','$container','add_white','$ajaxurl');return false;\" title=\"Add $value[0] to Allow List\" alt=\"Add $value[0] to Allow List\" ><img src=\"$tup\" height=\"16px\" /></a>";
42
  $show .= "<td>$key $trsh $addtodeny $addtoallow</td>";
43
- $who = "<br /><a title=\"Look Up WHOIS\" target=\"_stopspam\" href=\"http://lacnic.net/cgi-bin/lacnic/whois?lg=EN&query=$value[0]\"><img src=\"$whois\" height=\"16px\"/></a> ";
44
  $trsh = "<a href=\"\" onclick=\"sfs_ajax_process('$value[0]','wlreq','delete_wlip','$ajaxurl');return false;\" title=\"Delete all $value[0]\" alt=\"Delete all $value[0]\" ><img src=\"$trash\" height=\"16px\" /></a>";
45
  $show .= "<td>$value[0] $who $trsh</td>";
46
  $trsh = "<a href=\"\" onclick=\"sfs_ajax_process('$value[1]','wlreq','delete_wlem','$ajaxurl');return false;\" title=\"Delete all $value[1]\" alt=\"Delete all $value[1]\" ><img src=\"$trash\" height=\"16px\" /></a>";
40
  $addtodeny = "<a href=\"\"onclick=\"sfs_ajax_process('$value[0]','$container','add_black','$ajaxurl');return false;\" title=\"Add $value[0] to Deny List\" alt=\"Add $value[0] to Deny List\" ><img src=\"$tdown\" height=\"16px\" /></a>";
41
  $addtoallow = "<a href=\"\"onclick=\"sfs_ajax_process('$value[0]','$container','add_white','$ajaxurl');return false;\" title=\"Add $value[0] to Allow List\" alt=\"Add $value[0] to Allow List\" ><img src=\"$tup\" height=\"16px\" /></a>";
42
  $show .= "<td>$key $trsh $addtodeny $addtoallow</td>";
43
+ $who = "<br /><a title=\"Look Up WHOIS\" target=\"_stopspam\" href=\"https://lacnic.net/cgi-bin/lacnic/whois?lg=EN&query=$value[0]\"><img src=\"$whois\" height=\"16px\"/></a> ";
44
  $trsh = "<a href=\"\" onclick=\"sfs_ajax_process('$value[0]','wlreq','delete_wlip','$ajaxurl');return false;\" title=\"Delete all $value[0]\" alt=\"Delete all $value[0]\" ><img src=\"$trash\" height=\"16px\" /></a>";
45
  $show .= "<td>$value[0] $who $trsh</td>";
46
  $trsh = "<a href=\"\" onclick=\"sfs_ajax_process('$value[1]','wlreq','delete_wlem','$ajaxurl');return false;\" title=\"Delete all $value[1]\" alt=\"Delete all $value[1]\" ><img src=\"$trash\" height=\"16px\" /></a>";
classes/ss_get_bcache.php CHANGED
@@ -18,7 +18,7 @@ class ss_get_bcache {
18
  $ajaxurl = admin_url( 'admin-ajax.php' );
19
  $show = '';
20
  foreach ( $badips as $key => $value ) {
21
- $who = "<a title=\"Look Up WHOIS\" target=\"_stopspam\" href=\"http://lacnic.net/cgi-bin/lacnic/whois?lg=EN&query=$key\"><img src=\"$whois\" height=\"16px\"/></a>";
22
  $show .= "<a href=\"https://www.stopforumspam.com/search?q=$key\" target=\"_stopspam\">$key: $value</a> ";
23
  // try AJAX on the delete from bad cache
24
  $onclick = "onclick=\"sfs_ajax_process('$key','$container','$cachedel','$ajaxurl');return false;\"";
18
  $ajaxurl = admin_url( 'admin-ajax.php' );
19
  $show = '';
20
  foreach ( $badips as $key => $value ) {
21
+ $who = "<a title=\"Look Up WHOIS\" target=\"_stopspam\" href=\"https://lacnic.net/cgi-bin/lacnic/whois?lg=EN&query=$key\"><img src=\"$whois\" height=\"16px\"/></a>";
22
  $show .= "<a href=\"https://www.stopforumspam.com/search?q=$key\" target=\"_stopspam\">$key: $value</a> ";
23
  // try AJAX on the delete from bad cache
24
  $onclick = "onclick=\"sfs_ajax_process('$key','$container','$cachedel','$ajaxurl');return false;\"";
classes/ss_get_gcache.php CHANGED
@@ -18,7 +18,7 @@ class ss_get_gcache {
18
  $ajaxurl = admin_url( 'admin-ajax.php' );
19
  $show = '';
20
  foreach ( $goodips as $key => $value ) {
21
- $who = "<a title=\"Look Up WHOIS\" target=\"_stopspam\" href=\"http://lacnic.net/cgi-bin/lacnic/whois?lg=EN&query=$key\"><img src=\"$whois\" height=\"16px\"/></a>";
22
  $show .= "<a href=\"https://www.stopforumspam.com/search?q=$key\" target=\"_stopspam\">$key: $value</a> ";
23
  // try AJAX on the delete from bad cache
24
  $onclick = "onclick=\"sfs_ajax_process('$key','$container','$cachedel','$ajaxurl');return false;\"";
18
  $ajaxurl = admin_url( 'admin-ajax.php' );
19
  $show = '';
20
  foreach ( $goodips as $key => $value ) {
21
+ $who = "<a title=\"Look Up WHOIS\" target=\"_stopspam\" href=\"https://lacnic.net/cgi-bin/lacnic/whois?lg=EN&query=$key\"><img src=\"$whois\" height=\"16px\"/></a>";
22
  $show .= "<a href=\"https://www.stopforumspam.com/search?q=$key\" target=\"_stopspam\">$key: $value</a> ";
23
  // try AJAX on the delete from bad cache
24
  $onclick = "onclick=\"sfs_ajax_process('$key','$container','$cachedel','$ajaxurl');return false;\"";
includes/ss-admin-options.php CHANGED
@@ -79,10 +79,10 @@ function ss_row( $actions, $comment ) {
79
  $ip = $comment->comment_author_IP;
80
  $action = "";
81
  // $action.="|";
82
- // $action.="<a title=\"Check Project HoneyPot\" target=\"_stopspam\" href=\"http://www.projecthoneypot.org/search_ip.php?ip=$ip\">Check HoneyPot</a>";
83
  // add the network check
84
  $whois = SS_PLUGIN_URL . 'images/whois.png';
85
- $who = "<a title=\"Look Up WHOIS\" target=\"_stopspam\" href=\"http://lacnic.net/cgi-bin/lacnic/whois?lg=EN&query=$ip\"><img src=\"$whois\" height=\"16px\"/></a>";
86
  $stophand = SS_PLUGIN_URL . 'images/stop.png';
87
  $stop = "<a title=\"Check Stop Forum Spam (SFS)\" target=\"_stopspam\" href=\"https://www.stopforumspam.com/search.php?q=$ip\"><img src=\"$stophand\" height=\"16px\"/> </a>";
88
  $action .= " $who $stop";
@@ -448,8 +448,8 @@ function ss_sfs_ip_column( $value, $column_name, $user_id ) {
448
  $username = $user_info->display_name;
449
  $stopper = "<a title=\"Check Stop Forum Spam (SFS)\" target=\"_stopspam\" href=\"https://www.stopforumspam.com/search.php?q=$signup_ip\"><img src=\"$stophand\" height=\"16px\"/></a>";
450
  $honeysearch = "<a title=\"Check Project HoneyPot\" target=\"_stopspam\" href=\"https://www.projecthoneypot.org/ip_$signup_ip\"><img src=\"$search\" height=\"16px\"/></a>";
451
- $botsearch = "<a title=\"Check BotScout\" target=\"_stopspam\" href=\"http://botscout.com/search.htm?stype=q&sterm=$signup_ip\"><img src=\"$search\" height=\"16px\"/></a>";
452
- $who = "<br /><a title=\"Look Up WHOIS\" target=\"_stopspam\" href=\"http://lacnic.net/cgi-bin/lacnic/whois?lg=EN&query=$signup_ip\"><img src=\"$whois\" height=\"16px\"/></a>";
453
  $action = " $who $stopper $honeysearch $botsearch";
454
  $options = ss_get_options();
455
  $apikey = $options['apikey'];
79
  $ip = $comment->comment_author_IP;
80
  $action = "";
81
  // $action.="|";
82
+ // $action.="<a title=\"Check Project HoneyPot\" target=\"_stopspam\" href=\"https://www.projecthoneypot.org/search_ip.php?ip=$ip\">Check HoneyPot</a>";
83
  // add the network check
84
  $whois = SS_PLUGIN_URL . 'images/whois.png';
85
+ $who = "<a title=\"Look Up WHOIS\" target=\"_stopspam\" href=\"https://lacnic.net/cgi-bin/lacnic/whois?lg=EN&query=$ip\"><img src=\"$whois\" height=\"16px\"/></a>";
86
  $stophand = SS_PLUGIN_URL . 'images/stop.png';
87
  $stop = "<a title=\"Check Stop Forum Spam (SFS)\" target=\"_stopspam\" href=\"https://www.stopforumspam.com/search.php?q=$ip\"><img src=\"$stophand\" height=\"16px\"/> </a>";
88
  $action .= " $who $stop";
448
  $username = $user_info->display_name;
449
  $stopper = "<a title=\"Check Stop Forum Spam (SFS)\" target=\"_stopspam\" href=\"https://www.stopforumspam.com/search.php?q=$signup_ip\"><img src=\"$stophand\" height=\"16px\"/></a>";
450
  $honeysearch = "<a title=\"Check Project HoneyPot\" target=\"_stopspam\" href=\"https://www.projecthoneypot.org/ip_$signup_ip\"><img src=\"$search\" height=\"16px\"/></a>";
451
+ $botsearch = "<a title=\"Check BotScout\" target=\"_stopspam\" href=\"https://botscout.com/search.htm?stype=q&sterm=$signup_ip\"><img src=\"$search\" height=\"16px\"/></a>";
452
+ $who = "<br /><a title=\"Look Up WHOIS\" target=\"_stopspam\" href=\"https://lacnic.net/cgi-bin/lacnic/whois?lg=EN&query=$signup_ip\"><img src=\"$whois\" height=\"16px\"/></a>";
453
  $action = " $who $stopper $honeysearch $botsearch";
454
  $options = ss_get_options();
455
  $apikey = $options['apikey'];
modules/chkbotscout.php CHANGED
@@ -23,7 +23,7 @@ class chkbotscout extends be_module {
23
  return false;
24
  }
25
  $botfreq = $options['botfreq'];
26
- $query = "http://botscout.com/test/?ip=$ip&key=$apikey";
27
  $check = $this->getafile( $query, 'GET' );
28
  if ( ! empty( $check ) ) {
29
  if ( substr( $check, 0, 4 ) == "ERR:" ) {
23
  return false;
24
  }
25
  $botfreq = $options['botfreq'];
26
+ $query = "https://botscout.com/test/?ip=$ip&key=$apikey";
27
  $check = $this->getafile( $query, 'GET' );
28
  if ( ! empty( $check ) ) {
29
  if ( substr( $check, 0, 4 ) == "ERR:" ) {
readme.txt CHANGED
@@ -38,6 +38,9 @@ OR
38
 
39
  == Changelog ==
40
 
 
 
 
41
  = 7.0.8 =
42
  * formatted code according to WP PHP coding standards (https://make.wordpress.org/core/handbook/best-practices/coding-standards/php/) — it's no where near perfect, but it's a step in the right direction
43
 
38
 
39
  == Changelog ==
40
 
41
+ = 7.0.9 =
42
+ * encrypted all external links
43
+
44
  = 7.0.8 =
45
  * formatted code according to WP PHP coding standards (https://make.wordpress.org/core/handbook/best-practices/coding-standards/php/) — it's no where near perfect, but it's a step in the right direction
46
 
settings/ss_cache.php CHANGED
@@ -213,7 +213,7 @@ else {
213
  $show.=" <a href=\"\" $onclick title=\"Add to $key Deny List\" alt=\"Add to Deny List\" ><img src=\"$tdown\" height=\"16px\" /></a> ";
214
  $onclick="onclick=\"sfs_ajax_process( '$key','$cont','add_white','$ajaxurl' );return false;\"";
215
  $show.=" <a href=\"\" $onclick title=\"Add to $key Allow List\" alt=\"Add to Allow List\" ><img src=\"$tup\" height=\"16px\" /></a> ";
216
- $who="<a title=\"Look Up WHOIS\" target=\"_stopspam\" href=\"http://lacnic.net/cgi-bin/lacnic/whois?lg=EN&query=$key\"><img src=\"$whois\" height=\"16px\" /></a> ";
217
  $show.=$who;
218
  $show.="<br />";
219
  }
213
  $show.=" <a href=\"\" $onclick title=\"Add to $key Deny List\" alt=\"Add to Deny List\" ><img src=\"$tdown\" height=\"16px\" /></a> ";
214
  $onclick="onclick=\"sfs_ajax_process( '$key','$cont','add_white','$ajaxurl' );return false;\"";
215
  $show.=" <a href=\"\" $onclick title=\"Add to $key Allow List\" alt=\"Add to Allow List\" ><img src=\"$tup\" height=\"16px\" /></a> ";
216
+ $who="<a title=\"Look Up WHOIS\" target=\"_stopspam\" href=\"https://lacnic.net/cgi-bin/lacnic/whois?lg=EN&query=$key\"><img src=\"$whois\" height=\"16px\" /></a> ";
217
  $show.=$who;
218
  $show.="<br />";
219
  }
settings/ss_challenge.php CHANGED
@@ -217,7 +217,7 @@ $nonce = wp_create_nonce( 'ss_stopspam_update' );
217
  if ( ! empty( $solvmediaapivchallenge ) ) {
218
  ?>
219
  <script type="text/javascript"
220
- src="//api.solvemedia.com/papi/challenge.script?k=<?php echo $solvmediaapivchallenge; ?>">
221
  </script>
222
  <p>If the CAPTCHA form looks good you need to enable the CAPTCHA on the Challenge &amp; Deny options
223
  page. (see left)
217
  if ( ! empty( $solvmediaapivchallenge ) ) {
218
  ?>
219
  <script type="text/javascript"
220
+ src="https://api-secure.solvemedia.com/papi/challenge.script?k=<?php echo $solvmediaapivchallenge; ?>">
221
  </script>
222
  <p>If the CAPTCHA form looks good you need to enable the CAPTCHA on the Challenge &amp; Deny options
223
  page. (see left)
settings/ss_reports.php CHANGED
@@ -166,10 +166,10 @@ $now = date( 'Y/m/d H:i:s', time() + ( get_option( 'gmt_offset' ) * 3600 )
166
  if ( empty( $reason ) ) {
167
  $reason = "passed";
168
  }
169
- $stopper = "<a title=\"Check Stop Forum Spam (SFS)\" target=\"_stopspam\" href=\"http://www.stopforumspam.com/search.php?q=$ip\"><img src=\"$stophand\" height=\"16px\" /></a>";
170
  $honeysearch = "<a title=\"Check project HoneyPot\" target=\"_stopspam\" href=\"https://www.projecthoneypot.org/ip_$ip\"><img src=\"$search\" height=\"16px\" /></a>";
171
- $botsearch = "<a title=\"Check BotScout\" target=\"_stopspam\" href=\"http://botscout.com/search.htm?stype=q&sterm=$ip\"><img src=\"$search\" height=\"16px\" /></a>";
172
- $who = "<br /><a title=\"Look Up WHOIS\" target=\"_stopspam\" href=\"http://lacnic.net/cgi-bin/lacnic/whois?lg=EN&query=$ip\"><img src=\"$whois\" height=\"16px\" /></a>";
173
  echo "<tr style=\"background-color:white\">
174
  <td>$dt</td>
175
  <td>$em</td>
166
  if ( empty( $reason ) ) {
167
  $reason = "passed";
168
  }
169
+ $stopper = "<a title=\"Check Stop Forum Spam (SFS)\" target=\"_stopspam\" href=\"https://www.stopforumspam.com/search.php?q=$ip\"><img src=\"$stophand\" height=\"16px\" /></a>";
170
  $honeysearch = "<a title=\"Check project HoneyPot\" target=\"_stopspam\" href=\"https://www.projecthoneypot.org/ip_$ip\"><img src=\"$search\" height=\"16px\" /></a>";
171
+ $botsearch = "<a title=\"Check BotScout\" target=\"_stopspam\" href=\"https://botscout.com/search.htm?stype=q&sterm=$ip\"><img src=\"$search\" height=\"16px\" /></a>";
172
+ $who = "<br /><a title=\"Look Up WHOIS\" target=\"_stopspam\" href=\"https://lacnic.net/cgi-bin/lacnic/whois?lg=EN&query=$ip\"><img src=\"$whois\" height=\"16px\" /></a>";
173
  echo "<tr style=\"background-color:white\">
174
  <td>$dt</td>
175
  <td>$em</td>
settings/ss_webservices_settings.php CHANGED
@@ -136,7 +136,7 @@ $nonce = wp_create_nonce( 'ss_stopspam_update' );
136
  <input size="32" name="botscoutapi" type="text" value="<?php echo $botscoutapi; ?>"/><br />
137
  <p>This API key is used for querying the BotScout database. It is required if you want to
138
  check IP addresses against the botscout.com database. You can register and get an API key at <a
139
- href="http://botscout.com/getkey.htm" target="_blank">botscout.com</a>.<br />
140
  Allowed values are 0 to 9999. Only numbers are accepted.<br />
141
  <em>Please note that BotScout is disabled in this release because of policy changes at
142
  botscout.com.</em></p>
136
  <input size="32" name="botscoutapi" type="text" value="<?php echo $botscoutapi; ?>"/><br />
137
  <p>This API key is used for querying the BotScout database. It is required if you want to
138
  check IP addresses against the botscout.com database. You can register and get an API key at <a
139
+ href="https://botscout.com/getkey.htm" target="_blank">botscout.com</a>.<br />
140
  Allowed values are 0 to 9999. Only numbers are accepted.<br />
141
  <em>Please note that BotScout is disabled in this release because of policy changes at
142
  botscout.com.</em></p>
stop-spammer-registrations-new.php CHANGED
@@ -5,12 +5,12 @@ Plugin URI: https://wordpress.org/plugins/stop-spammer-registrations-plugin/
5
  Description: The Stop Spammers plugin blocks spammers from leaving comments or logging in. It protects sites from robot registrations and malicious attacks.
6
  Author: Bryan Hadaway
7
  Author URI: https://calmestghost.com/
8
- Version: 7.0.8
9
  License: https://www.gnu.org/licenses/gpl.html
10
  */
11
 
12
  // networking requires a couple of globals
13
- define( 'SS_VERSION', '7.0.8' );
14
  define( 'SS_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
15
  define( 'SS_PLUGIN_FILE', plugin_dir_path( __FILE__ ) );
16
  define( 'SS_PLUGIN_DATA', plugin_dir_path( __FILE__ ) . 'data/' );
5
  Description: The Stop Spammers plugin blocks spammers from leaving comments or logging in. It protects sites from robot registrations and malicious attacks.
6
  Author: Bryan Hadaway
7
  Author URI: https://calmestghost.com/
8
+ Version: 7.0.9
9
  License: https://www.gnu.org/licenses/gpl.html
10
  */
11
 
12
  // networking requires a couple of globals
13
+ define( 'SS_VERSION', '7.0.9' );
14
  define( 'SS_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
15
  define( 'SS_PLUGIN_FILE', plugin_dir_path( __FILE__ ) );
16
  define( 'SS_PLUGIN_DATA', plugin_dir_path( __FILE__ ) . 'data/' );