Class CloudflareService

java.lang.Object
host.anzo.core.service.CloudflareService
All Implemented Interfaces:
IReloadable

public class CloudflareService extends Object implements IReloadable
  • Field Details

  • Constructor Details

    • CloudflareService

      public CloudflareService()
  • Method Details

    • isCloudflareIP

      public boolean isCloudflareIP(InetAddress inetAddress)
      Parameters:
      inetAddress - IP address to check
      Returns:
      true if specified IP address is part of CloudFlare network, false otherwise
    • isLoaded

      public boolean isLoaded()
      Returns:
      true if Cloudflare ranges is loaded, false otherwise
    • reload

      public void reload()
      Specified by:
      reload in interface IReloadable