Changeset 2993868
- Timestamp:
- 11/10/2023 11:14:02 AM (2 years ago)
- Location:
- traffic-jammer
- Files:
-
- 14 edited
- 1 copied
-
assets/icon-256x256.png (modified) (1 prop) (previous)
-
assets/screenshot-1.png (modified) (1 prop) (previous)
-
assets/screenshot-2.png (modified) (1 prop) (previous)
-
assets/screenshot-3.png (modified) (1 prop) (previous)
-
assets/screenshot-4.png (modified) (1 prop) (previous)
-
assets/screenshot-5.png (modified) (1 prop) (previous)
-
assets/screenshot-6.png (modified) (1 prop) (previous)
-
assets/screenshot-7.png (modified) (1 prop) (previous)
-
tags/1.2.4 (copied) (copied from traffic-jammer/trunk)
-
tags/1.2.4/README.md (modified) (1 diff)
-
tags/1.2.4/readme.txt (modified) (2 diffs)
-
tags/1.2.4/traffic-jammer.php (modified) (7 diffs)
-
trunk/README.md (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/traffic-jammer.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
traffic-jammer/assets/icon-256x256.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
traffic-jammer/assets/screenshot-1.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
traffic-jammer/assets/screenshot-2.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
traffic-jammer/assets/screenshot-3.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
traffic-jammer/assets/screenshot-4.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
traffic-jammer/assets/screenshot-5.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
traffic-jammer/assets/screenshot-6.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
traffic-jammer/assets/screenshot-7.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
traffic-jammer/tags/1.2.4/README.md
r2985314 r2993868 6 6 Requires at least: 5.2 7 7 8 Tested up to: 6. 3.28 Tested up to: 6.4.1 9 9 10 Stable tag: 1.2. 310 Stable tag: 1.2.4 11 11 12 12 Requires PHP: 7.4 -
traffic-jammer/tags/1.2.4/readme.txt
r2985314 r2993868 4 4 Tags: block, ip, pantheon, block ip, security, malicious ip, block bots, pantheon block ip 5 5 Requires at least: 5.2 6 Tested up to: 6. 3.27 Stable tag: 1.2. 36 Tested up to: 6.4.1 7 Stable tag: 1.2.4 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 55 55 56 56 == Changelog == 57 = 1.2.4 = 58 * Tested to work with version 6.4.1 59 57 60 = 1.2.3 = 58 61 * Tested to work WordPress version 6.3.2 -
traffic-jammer/tags/1.2.4/traffic-jammer.php
r2985314 r2993868 9 9 * Plugin URI: https://wordpress.org/plugins/traffic-jammer/ 10 10 * Description: WordPress plugin to block IP and bots that causes malicious traffic. 11 * Version: 1.2. 311 * Version: 1.2.4 12 12 * Requires at least: 5.2 13 13 * Requires PHP: 7.4 … … 19 19 */ 20 20 21 /** 22 * Sanitize server variables. 23 */ 24 $cef6d44b_server = array_map( 'trafficjammer_server_var', $_SERVER);21 /** 22 * Sanitize server variables. 23 */ 24 $cef6d44b_server = array_map( 'trafficjammer_server_var', $_SERVER ); 25 25 // real visitor IP address when using Cloudflare proxy. 26 if ( ! empty($cef6d44b_server['HTTP_CF_CONNECTING_IP']) ) {27 $cef6d44b_server['REMOTE_ADDR'] = $cef6d44b_server['HTTP_CF_CONNECTING_IP'];26 if ( ! empty( $cef6d44b_server['HTTP_CF_CONNECTING_IP'] ) ) { 27 $cef6d44b_server['REMOTE_ADDR'] = $cef6d44b_server['HTTP_CF_CONNECTING_IP']; 28 28 } 29 29 … … 87 87 wp_schedule_event( time(), 'hourly', 'trafficjammer_cron_hook' ); 88 88 } 89 90 89 } 91 90 register_activation_hook( __FILE__, 'trafficjammer_activate' ); … … 111 110 remove_action( 'init', 'trafficjammer_traffic_live' ); 112 111 $wpdb->query( $wpdb->prepare( 'TRUNCATE TABLE %s', $table_name ) ); 113 114 112 } 115 113 register_deactivation_hook( __FILE__, 'trafficjammer_deactivate' ); … … 206 204 * 207 205 * @param array $username callback to show username. 208 * 206 * 209 207 * @return void 210 208 */ … … 524 522 ); 525 523 wp_enqueue_script( 'jquery-ui-tabs' ); 526 527 524 } 528 525 add_action( 'admin_init', 'trafficjammer_admin_init' ); … … 601 598 echo '<br>'; 602 599 echo 'Block execesive request, example: <code>/?1234567890</code> '; 603 604 600 } 605 601 /** -
traffic-jammer/trunk/README.md
r2985314 r2993868 6 6 Requires at least: 5.2 7 7 8 Tested up to: 6. 3.28 Tested up to: 6.4.1 9 9 10 Stable tag: 1.2. 310 Stable tag: 1.2.4 11 11 12 12 Requires PHP: 7.4 -
traffic-jammer/trunk/readme.txt
r2985314 r2993868 4 4 Tags: block, ip, pantheon, block ip, security, malicious ip, block bots, pantheon block ip 5 5 Requires at least: 5.2 6 Tested up to: 6. 3.27 Stable tag: 1.2. 36 Tested up to: 6.4.1 7 Stable tag: 1.2.4 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 55 55 56 56 == Changelog == 57 = 1.2.4 = 58 * Tested to work with version 6.4.1 59 57 60 = 1.2.3 = 58 61 * Tested to work WordPress version 6.3.2 -
traffic-jammer/trunk/traffic-jammer.php
r2985314 r2993868 9 9 * Plugin URI: https://wordpress.org/plugins/traffic-jammer/ 10 10 * Description: WordPress plugin to block IP and bots that causes malicious traffic. 11 * Version: 1.2. 311 * Version: 1.2.4 12 12 * Requires at least: 5.2 13 13 * Requires PHP: 7.4 … … 19 19 */ 20 20 21 /** 22 * Sanitize server variables. 23 */ 24 $cef6d44b_server = array_map( 'trafficjammer_server_var', $_SERVER);21 /** 22 * Sanitize server variables. 23 */ 24 $cef6d44b_server = array_map( 'trafficjammer_server_var', $_SERVER ); 25 25 // real visitor IP address when using Cloudflare proxy. 26 if ( ! empty($cef6d44b_server['HTTP_CF_CONNECTING_IP']) ) {27 $cef6d44b_server['REMOTE_ADDR'] = $cef6d44b_server['HTTP_CF_CONNECTING_IP'];26 if ( ! empty( $cef6d44b_server['HTTP_CF_CONNECTING_IP'] ) ) { 27 $cef6d44b_server['REMOTE_ADDR'] = $cef6d44b_server['HTTP_CF_CONNECTING_IP']; 28 28 } 29 29 … … 87 87 wp_schedule_event( time(), 'hourly', 'trafficjammer_cron_hook' ); 88 88 } 89 90 89 } 91 90 register_activation_hook( __FILE__, 'trafficjammer_activate' ); … … 111 110 remove_action( 'init', 'trafficjammer_traffic_live' ); 112 111 $wpdb->query( $wpdb->prepare( 'TRUNCATE TABLE %s', $table_name ) ); 113 114 112 } 115 113 register_deactivation_hook( __FILE__, 'trafficjammer_deactivate' ); … … 206 204 * 207 205 * @param array $username callback to show username. 208 * 206 * 209 207 * @return void 210 208 */ … … 524 522 ); 525 523 wp_enqueue_script( 'jquery-ui-tabs' ); 526 527 524 } 528 525 add_action( 'admin_init', 'trafficjammer_admin_init' ); … … 601 598 echo '<br>'; 602 599 echo 'Block execesive request, example: <code>/?1234567890</code> '; 603 604 600 } 605 601 /**
Note: See TracChangeset
for help on using the changeset viewer.