Changeset 185102
- Timestamp:
- 12/19/2009 11:59:55 PM (16 years ago)
- Location:
- ttc-wordpress-security-plugin/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
ttc_security.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ttc-wordpress-security-plugin/trunk/readme.txt
r95413 r185102 4 4 Requires at least: 2.5 5 5 Tested up to: 2.5.1 6 Stable tag: 2. 06 Stable tag: 2.1 7 7 8 8 This plugin blocks scrapers, cross-site scripting attempts, and other ill behaved bots. This is the second of three security plugins. -
ttc-wordpress-security-plugin/trunk/ttc_security.php
r95413 r185102 3 3 /* 4 4 Plugin Name: TimesToCome Security Plugin 5 Version: 2. 05 Version: 2.1 6 6 Plugin URI: http://herselfswebtools.com/2008/06/wordpress-security-plugin-block-scrapers-hackers-and-more.html 7 7 Description: Security plugin for Wordpress … … 207 207 if ( strlen($http_user_agent ) > 200 ) { $http_user_agent = substr ( $http_user_agent, 0, 200 ); } 208 208 209 210 // clean input for database 211 $http_accept = htmlentities($http_accept); 212 $http_user_agent = htmlentities($http_user_agent); 213 $http_remote_addr = htmlentities($http_remote_addr); 214 $http_request_uri = htmlentities($html_request_uri); 215 216 209 217 $sql = "INSERT INTO " . $log_table_name . " ( ip, problem, accept, agent, request, day ) 210 218 VALUES ( '$http_remote_addr', '$error', '$http_accept', '$http_user_agent', '$http_request_uri', NOW() )";
Note: See TracChangeset
for help on using the changeset viewer.