Domain Detective

API Reference

Class

CmdletNewDesiredStateRobots

Namespace DomainDetective.PowerShell
Assembly DomainDetective.PowerShell
Base PSCmdlet
Modifiers sealed
Attributes
Cmdlet("New", "DDDesiredStateRobots") OutputType([typeof(DesiredStateProfile)])

Creates a robots.txt desired state policy fragment.

Inheritance

  • PSCmdlet
  • CmdletNewDesiredStateRobots

Examples

Require robots.txt and AI bot rules

PS>


New-DDDesiredStateRobots -RequireRecord $true -RequireAiBotRules $true -RequireSitemap $true
        

Constructors

public CmdletNewDesiredStateRobots() #

Methods

ProcessRecord() #

Creates a robots.txt policy fragment as a DesiredStateProfile.

Properties

public Nullable<Boolean> Enabled { get; set; } #
Parameter(Mandatory = false)
public Nullable<Boolean> RequireRecord { get; set; } #
Parameter(Mandatory = false)
public Nullable<Boolean> DisallowFallback { get; set; } #
Parameter(Mandatory = false)
public Nullable<Boolean> RequireAiBotRules { get; set; } #
Parameter(Mandatory = false)
public Nullable<Boolean> RequireSitemap { get; set; } #
Parameter(Mandatory = false)
{{ include "footer" }}