PluginProbe
Defender Security – Malware Scanner, Login Security & Firewall / 6.2.0
Defender Security – Malware Scanner, Login Security & Firewall v6.2.0
6.3.0 6.2.3 6.2.4 6.2.0 6.2.1 6.2.2 6.1.0 5.3.1 5.4.0 5.4.1 5.5.0 5.5.1 5.6.0 5.6.1 5.6.2 5.7.0 5.7.1 5.7.2 5.8.0 5.8.1 5.9.0 6.0.0 6.0.1 3.0.1 3.1.0 All 141 releases
defender-security / src / component / known-bots / bots / bots-interface.php

bots-interface.php in Defender Security – Malware Scanner, Login Security & Firewall 6.2.0, at src/component/known-bots/bots/bots-interface.php

28 lines 601 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The interface for bots class.
4 *
5 * @package WP_Defender\Component\Known_Bots\Bots
6 */
7
8 namespace WP_Defender\Component\Known_Bots\Bots;
9
10 interface Bots_Interface {
11 /**
12 * Returns the name of the bot.
13 *
14 * @return string The name of the bot.
15 */
16 public function get_name(): string;
17
18 /**
19 * Fetches the IPs for the bot.
20 *
21 * This method retrieves the IP ranges used by the bot from an endpoint.
22 * It returns an array of IP addresses in both IPv4 and IPv6 formats.
23 *
24 * @return array An array of IP addresses used by the bot.
25 */
26 public function fetch_ips(): array;
27 }
28