Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

RobotsTxtSettings.cs

using Nop.Core.Configuration;

namespace Nop.Core.Domain.Security;

/// <summary>
/// robots.txt settings
/// </summary>
public partial class RobotsTxtSettings : ISettings
{
    /// <summary>
    /// Disallow paths
    /// </summary>
    public List<string> DisallowPaths { get; set; } = new();

    /// <summary>
    /// Localizable disallow paths
    /// </summary>
    public List<string> LocalizableDisallowPaths { get; set; } = new();

    /// <summary>
    /// Disallow languages
    /// </summary>
    public List<int> DisallowLanguages { get; set; } = new();

    /// <summary>
    /// Additions rules
    /// </summary>
    public List<string> AdditionsRules { get; set; } = new();

    /// <summary>
    /// Is sitemap.xml allow
    /// </summary>
    public bool AllowSitemapXml { get; set; } = true;
}