cdncheck

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Options *Options
	// contains filtered or unexported fields
}

Client checks for CDN based IPs which should be excluded during scans since they belong to third party firewalls.

func New

func New() (*Client, error)

New creates a new firewall IP checking client.

func NewWithCache

func NewWithCache() (*Client, error)

NewWithCache creates a new firewall IP with cached data from project discovery (faster)

func NewWithOptions

func NewWithOptions(Options *Options) (*Client, error)

NewWithOptions creates a new instance with options

func (*Client) Check

func (c *Client) Check(ip net.IP) (bool, string, error)

Check checks if an IP is contained in the blacklist

func (*Client) Ranges

func (c *Client) Ranges() map[string][]string

Ranges returns the providers and ranges for the cdn client

type Options

type Options struct {
	Cache       bool
	IPInfoToken string
}

func (*Options) HasAuthInfo

func (options *Options) HasAuthInfo() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL