robots

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package robots provides robots.txt validation functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker struct {
	// contains filtered or unexported fields
}

Checker handles robots.txt validation for web crawling

func NewChecker

func NewChecker(userAgent string, ignoreRobots bool, httpClient *http.Client) *Checker

NewChecker creates a new robots.txt checker

func (*Checker) IsAllowed

func (c *Checker) IsAllowed(targetURL string) bool

IsAllowed checks if the URL can be accessed according to robots.txt

Jump to

Keyboard shortcuts

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