# defender-security/6.2.1/src/component/known-bots/bots/bots-interface.php

Defender Security – Malware Scanner, Login Security &amp; Firewall, version 6.2.1. 28 lines.

- Page: https://pluginprobe.com/plugins/defender-security/6.2.1/code/src/component/known-bots/bots/bots-interface.php
- Raw: https://pluginprobe.com/plugins/defender-security/6.2.1/raw/src/component/known-bots/bots/bots-interface.php
- Modified: 2026-07-13T09:36:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/defender-security/6.2.1/code/src/component/known-bots/bots/bots-interface.php#L10-L20`.

```php
<?php
/**
 * The interface for bots class.
 *
 * @package    WP_Defender\Component\Known_Bots\Bots
 */

namespace WP_Defender\Component\Known_Bots\Bots;

interface Bots_Interface {
	/**
	 * Returns the name of the bot.
	 *
	 * @return string The name of the bot.
	 */
	public function get_name(): string;

	/**
	 * Fetches the IPs for the bot.
	 *
	 * This method retrieves the IP ranges used by the bot from an endpoint.
	 * It returns an array of IP addresses in both IPv4 and IPv6 formats.
	 *
	 * @return array An array of IP addresses used by the bot.
	 */
	public function fetch_ips(): array;
}

```
