Domain Detective

API Reference

Class

RobotsTxtAnalysis

Namespace DomainDetective
Assembly DomainDetective
Implements

Downloads and parses robots.txt files.

Inheritance

  • Object
  • RobotsTxtAnalysis

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by

Accepted by parameters

Constructors

Methods

public async Task AnalyzeAsync(String domain, InternalLogger logger = null, CancellationToken cancellationToken = null) #
Returns: Task

Retrieves and parses robots.txt for domain.

Parameters

domain System.String requiredposition: 0
logger DomainDetective.InternalLogger = null optionalposition: 1
cancellationToken System.Threading.CancellationToken = null optionalposition: 2
public static Void ClearCache() #
Returns: Void

Clears the shared cache.

Properties

public TimeSpan CacheDuration { get; set; } #

Maximum time cached results are kept.

public String Domain { get; set; } #

Domain that was analyzed.

public Boolean RecordPresent { get; set; } #

True when a robots.txt file was found.

public Boolean FallbackUsed { get; set; } #

Indicates a fallback to HTTP was used.

public String Url { get; set; } #

URL the robots.txt was downloaded from.

public RobotsFile Robots { get; set; } #

Parsed robots.txt data.

public Dictionary<KnownAiBot, List<String>> AiBots { get; } #

List of AI user-agents found in the file grouped by bot type.

public Boolean HasAiBotRules { get; } #

Indicates whether AI bot directives are present.

public virtual List<Assessment> Assessments { get; } #

Gets the assessments value.

{{ include "footer" }}