HEX
Server: Apache
System: Linux webd004.cluster130.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User: frenchy (106757)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/frenchy/www/_trash/wp-content/plugins/secupress/inc/modules/logs/settings/banned-ips.php
<?php
defined( 'ABSPATH' ) or die( 'Something went wrong.' );


$this->set_current_section( 'banned-ips' );
$this->set_section_description( __( 'When you need to (dis)allow access to your website to some servers by their IP.', 'secupress' ) );
$this->add_section( __( 'IP Adresses', 'secupress' ), array( 'with_save_button' => false ) );


$this->add_field( array(
	'title'        => __( 'Disallowed IPs', 'secupress' ),
	'description'  => __( 'Bots, servers, visitors with those IP addresses will <strong>never</strong> have the right to visit your website.', 'secupress' ),
	'name'         => $this->get_field_name( 'banned-ips' ),
	'type'         => 'blacklist_ips',
	'row_id'       => 'banned-ips-row',
) );


$this->add_field( array(
	'title'        => __( 'Allowed IPs', 'secupress' ),
	'description'  => __( 'Bots, servers, visitors with those IP addresses will <strong>always</strong> have the right to visit your website. This list has priority over all.', 'secupress' ),
	'label_for'    => $this->get_field_name( 'whitelist' ),
	'type'         => 'whitelist_ips',
	'row_id'       => 'whitelist-ips-row',
) );