Changeset 185520
- Timestamp:
- 12/21/2009 02:18:26 AM (16 years ago)
- Location:
- ttc-user-registration-bot-detector/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
ttc_user_registration.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ttc-user-registration-bot-detector/trunk/readme.txt
r185118 r185520 4 4 Requires at least: 2.5 5 5 Tested up to: 2.5.1 6 Stable tag: 1.106 Stable tag: 2.1 7 7 8 8 This plugin blocks and logs most bot user registrations. -
ttc-user-registration-bot-detector/trunk/ttc_user_registration.php
r185118 r185520 3 3 /* 4 4 Plugin Name: TimesToCome Stop Bot Registration 5 Version: 1.105 Version: 2.1 6 6 Plugin URI: http://herselfswebtools.com/2008/06/wordpress-plugin-to-prevent-bot-registrations.html 7 7 Description: Stop bots from registering as users … … 22 22 // which is in here twice starting around line 265 23 23 // ******************************************************************************************* 24 // 2.1 minor fixes 25 24 26 25 27 … … 51 53 $http_user_agent = htmlentities($http_user_agent); 52 54 $http_remote_addr = htmlentities($http_remote_addr); 53 $ http_request_uri = htmlentities($html_request_uri);54 55 $user = htmlentities($user); 56 55 57 56 58 … … 74 76 75 77 if ( strlen($email) > 200 ){ $email = substr ($email, 0, 200 ); } 76 78 79 $email = htmlentities($email); 80 77 81 $sql = "INSERT INTO " . $blacklist_table_name . " ( blacklisted ) VALUES ( '$email' )"; 78 82 $result = $wpdb->query( $sql ); … … 91 95 ttc_wp_user_registration_install(); 92 96 } 93 97 98 $ip = htmlentities($ip); 99 94 100 $sql = "INSERT INTO " . $ip_table_name . " ( ip ) VALUES ( '$ip' )"; 95 101 $result = $wpdb->query( $sql );
Note: See TracChangeset
for help on using the changeset viewer.