PluginProbe
Defender Security – Malware Scanner, Login Security & Firewall / 6.3.0
Defender Security – Malware Scanner, Login Security & Firewall v6.3.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
← All changes | src/component/known-bots/bots/bots-interface.php +18 -0 6.2.2 → 6.3.0 View file →
@@ -23,5 +23,23 @@
23 23 *
24 24 * @return array An array of IP addresses used by the bot.
25 25 */
26 26 public function fetch_ips(): array;
27 +
28 + /**
29 + * Checks if the given or current user agent belongs to the bot.
30 + *
31 + * @param string $user_agent Optional user agent string to check.
32 + *
33 + * @return bool
34 + */
35 + public function is_ua( string $user_agent = '' ): bool;
36 +
37 + /**
38 + * Checks if the given IP belongs to the bot.
39 + *
40 + * @param string $ip The IP address to check.
41 + *
42 + * @return bool
43 + */
44 + public function is_ip( string $ip ): bool;
27 45 }