Done !
| Server IP : 54.36.91.62 / Your IP : 216.73.216.38 Web Server : Apache System : Linux webm008.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : awaywithxm ( 25098) PHP Version : 7.0.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/awaywithxm/www/wp-content/plugins/secupress/inc/modules/firewall/settings/ |
Upload File : |
<?php defined( 'ABSPATH' ) or die( 'Cheatin’ uh?' ); $this->set_current_section( 'bbq_headers' ); $this->add_section( __( 'Bad Headers', 'secupress' ) ); $main_field_name = $this->get_field_name( 'user-agents-header' ); $this->add_field( array( 'title' => __( 'Block Bad User Agents', 'secupress' ), 'label_for' => $main_field_name, 'plugin_activation' => true, 'type' => 'checkbox', 'value' => (int) secupress_is_submodule_active( 'firewall', 'user-agents-header' ), 'label' => __( 'Yes, protect my site from bad user-agents', 'secupress' ), 'helpers' => array( array( 'type' => 'description', 'description' => __( 'Bots are commonly use their own headers containing some known bad user agent. You can block them to prevent their unwanted visits.', 'secupress' ), ), ), ) ); $this->add_field( array( 'title' => __( 'User-Agents List', 'secupress' ), 'description' => __( 'Automatically block any user agent containing any HTML tag in it or containing more than 255 characters automatically.', 'secupress' ), 'depends' => $main_field_name, 'label_for' => $this->get_field_name( 'user-agents-list' ), 'type' => 'textarea', 'label' => __( 'List of User Agents to block', 'secupress' ), 'helpers' => array( array( 'type' => 'description', 'description' => __( 'Add or remove User Agents you want to be blocked. Separate user agents with commas.', 'secupress' ), ), ), ) ); $this->add_field( array( 'title' => __( 'Block Bad Request Methods', 'secupress' ), 'description' => __( 'The 3 known safe request methods are <code>GET</code>, <code>POST</code> and <code>HEAD</code>.', 'secupress' ), 'label_for' => $this->get_field_name( 'request-methods-header' ), 'plugin_activation' => true, 'type' => 'checkbox', 'value' => (int) secupress_is_submodule_active( 'firewall', 'request-methods-header' ), 'label' => __( 'Yes, protect my site from bad request methods', 'secupress' ), 'helpers' => array( array( 'type' => 'description', 'description' => __( 'Some other request methods can be used to retrieve information from your site, avoid them!', 'secupress' ), ), ), ) ); $this->add_field( array( 'title' => __( 'Block Fake SEO Bots', 'secupress' ), 'description' => __( 'Some servers are claming to be GoogleBots (or else), detect and block them.', 'secupress' ), 'label_for' => $this->get_field_name( 'fake-google-bots' ), 'plugin_activation' => true, 'disabled' => ! secupress_check_bot_ip( true ), 'type' => 'checkbox', 'value' => (int) secupress_is_submodule_active( 'firewall', 'fake-google-bots' ), 'label' => __( 'Yes, protect my site from fake SEO Bots', 'secupress' ), 'helpers' => array( array( 'type' => 'warning', 'description' => ! secupress_check_bot_ip( true ) ? __( 'Impossible to use this feature, your server can not check a hostname correctly! Sorry.', 'secupress' ) : '', ), ), ) );