lib/robots/types
Interfaces
'Read the “', Interfaces, '” section'PolicyOptions
'Read the “', PolicyOptions, '” section'Defined in: studiocms/packages/studiocms/src/lib/robots/types.ts:180
Properties
'Read the “', Properties, '” section'optional allow: string | string[];
Defined in: studiocms/packages/studiocms/src/lib/robots/types.ts:210
Description
'Read the “', Description, '” section'[ At least one or more allow
or disallow
entries per rule ] Allows indexing site sections or individual pages.
policy:[{allow:["/"]}]
Path-based URL matching, refer to SYNTAX^ via Google.
cleanParam?
'Read the “', cleanParam?, '” section'optional cleanParam: string | string[];
Defined in: studiocms/packages/studiocms/src/lib/robots/types.ts:261
Description
'Read the “', Description, '” section'[ Optional ] Indicates to the robot that the page URL contains parameters (like UTM tags) that should be ignored when indexing it.
# for URLs like:www.example2.com/index.php?page=1&sid=2564126ebdec301c607e5dfwww.example2.com/index.php?page=1&sid=974017dcd170d6c4a5d76ae
policy:[ { cleanParam: [ "sid /index.php", ] }]
For additional examples, please consult Yandex’s SYNTAX^ guide.
crawlDelay?
'Read the “', crawlDelay?, '” section'optional crawlDelay: number;
Defined in: studiocms/packages/studiocms/src/lib/robots/types.ts:238
Description
'Read the “', Description, '” section'[ Optional ] Specifies the minimum interval (in seconds) for the search robot to wait after loading one page, before starting to load another.
policy:[{crawlDelay:5}]
About the Crawl-delay^ directive.
disallow?
'Read the “', disallow?, '” section'optional disallow: string | string[];
Defined in: studiocms/packages/studiocms/src/lib/robots/types.ts:227
Description
'Read the “', Description, '” section'[ At least one or more disallow
or allow
entries per rule ] Prohibits indexing site sections or individual pages.
policy:[ { disallow:[ "/admin", "/uploads/1989-08-21/*.jpg$" ] }]
Path-based URL matching, refer to SYNTAX^ via Google.
userAgent?
'Read the “', userAgent?, '” section'optional userAgent: | UserAgentType | UserAgentType[];
Defined in: studiocms/packages/studiocms/src/lib/robots/types.ts:200
Description
'Read the “', Description, '” section'[ Required ] Indicates the robot to which the rules listed in robots.txt
apply.
policy:[ { userAgent: [ 'Googlebot', 'Applebot', 'Baiduspider', 'bingbot' ], // crawling rule(s) for above bots }]
Verified bots, refer to DITIG^ or Cloudflare Radar^.
RobotsConfig
'Read the “', RobotsConfig, '” section'Defined in: studiocms/packages/studiocms/src/lib/robots/types.ts:135
Properties
'Read the “', Properties, '” section'optional host: string | boolean;
Defined in: studiocms/packages/studiocms/src/lib/robots/types.ts:149
false
Description
'Read the “', Description, '” section'[ Optional ] Some crawlers(Yandex) support and only accept domain names.
integrations:[ robots({ host: siteUrl.replace(/^https?://|:\d+/g, "") })]
optional policy: PolicyOptions[];
Defined in: studiocms/packages/studiocms/src/lib/robots/types.ts:177
Description
'Read the “', Description, '” section'[ Optional ] List of policy
rules.
policy:[ { userAgent: "*", allow: "/" }]
For more help, refer to SYNTAX^ by Yandex.
optional sitemap: string | boolean | string[];
Defined in: studiocms/packages/studiocms/src/lib/robots/types.ts:162
Description
'Read the “', Description, '” section'[ Optional, zero or more per file ] The location of a sitemap for this website.
sitemap: [ "https://example.com/sitemap.xml", "https://www.example.com/sitemap.xml"]
The value of the SITEMAP^ field is case-sensitive.
Type Aliases
'Read the “', Type Aliases, '” section'SearchEngineOptimization
'Read the “', SearchEngineOptimization, '” section'type SearchEngineOptimization = { Ahrefs: "AhrefsBot"; Babbar: "Barkrowler"; Botify: "Botify"; Cxense: "Cxense"; DataForSEO: "DataForSEO"; EzoicInc: "EzoicBot"; Moz: "Moz dotbot" | "Moz rogerbot"; PrerenderLLC: "prerender"; SEMrush: "SEMrush" | "SemrushBotSI"; WebMeUp: "BLEXBot";};
Defined in: studiocms/packages/studiocms/src/lib/robots/types.ts:116
Type declaration
'Read the “', Type declaration, '” section'Ahrefs: "AhrefsBot";
Babbar: "Barkrowler";
Botify: "Botify";
Cxense: "Cxense";
DataForSEO
'Read the “', DataForSEO, '” section'DataForSEO: "DataForSEO";
EzoicInc: "EzoicBot";
Moz: "Moz dotbot" | "Moz rogerbot";
PrerenderLLC
'Read the “', PrerenderLLC, '” section'PrerenderLLC: "prerender";
SEMrush: "SEMrush" | "SemrushBotSI";
WebMeUp: "BLEXBot";
SearchEngines
'Read the “', SearchEngines, '” section'type SearchEngines = { 360: "360Spider" | "360Spider-Image" | "360Spider-Video" | "HaoSouSpider"; Apple: "Applebot" | "AppleNewsBot"; Ask: "Teoma"; Baidu: | "Baiduspider" | "Baiduspider-image" | "Baiduspider-mobile" | "Baiduspider-news" | "Baiduspider-video"; Bing: | "bingbot" | "BingPreview" | "msnbot" | "msnbot-media" | "adidxbot" | "MSN"; Botje: "Plukkie"; Bublup: "BublupBot"; Cliqz: "Cliqzbot"; Coccoc: "coccoc" | "coccocbot-image" | "coccocbot-web"; Daumoa: "Daumoa"; Dazoo: "DeuSu"; Duckduckgo: "DuckDuckBot" | "DuckDuckGo-Favicons-Bot"; Eurip: "EuripBot"; Exploratodo: "Exploratodo"; Findx: "Findxbot"; Goo: "gooblog" | "ichiro"; Google: | "Googlebot" | "Googlebot-Image" | "Googlebot-Mobile" | "Googlebot-News" | "Googlebot-Video" | "Mediapartners-Google" | "AdsBot-Google" | "AdsBot-Google-Mobile" | "AdsBot-Google-Mobile-Apps" | "Mediapartners-Google" | "Storebot-Google" | "Google-InspectionTool" | "FeedFetcher-Google"; Istella: "istellabot"; Jike: "JikeSpider"; Lycos: "Lycos"; Mail: "Mail.Ru"; Mojeek: "MojeekBot"; Naver: "Yeti"; Orange: "OrangeBot"; Qwant: "Qwantify"; Rambler: "Rambler"; Seznam: "SeznamBot"; Sogou: | "Sogou blog" | "Sogou inst spider" | "Sogou News Spider" | "Sogou Orion spider" | "Sogou spider2" | "Sogou web spider"; Soso: "Sosospider"; Sputnik: "SputnikBot"; Wortbox: "wotbox"; Yahoo: "Slurp"; Yandex: "Yandex" | "YandexMobileBot"; Yioop: "YioopBot"; Yooz: "yoozBot"; Youdao: "YoudaoBot";};
Defined in: studiocms/packages/studiocms/src/lib/robots/types.ts:4
Type declaration
'Read the “', Type declaration, '” section'360: "360Spider" | "360Spider-Image" | "360Spider-Video" | "HaoSouSpider";
Apple: "Applebot" | "AppleNewsBot";
Ask: "Teoma";
Baidu: | "Baiduspider" | "Baiduspider-image" | "Baiduspider-mobile" | "Baiduspider-news" | "Baiduspider-video";
Bing: | "bingbot" | "BingPreview" | "msnbot" | "msnbot-media" | "adidxbot" | "MSN";
Botje: "Plukkie";
Bublup: "BublupBot";
Cliqz: "Cliqzbot";
Coccoc: "coccoc" | "coccocbot-image" | "coccocbot-web";
Daumoa: "Daumoa";
Dazoo: "DeuSu";
Duckduckgo
'Read the “', Duckduckgo, '” section'Duckduckgo: "DuckDuckBot" | "DuckDuckGo-Favicons-Bot";
Eurip: "EuripBot";
Exploratodo
'Read the “', Exploratodo, '” section'Exploratodo: "Exploratodo";
Findx: "Findxbot";
Goo: "gooblog" | "ichiro";
Google: | "Googlebot" | "Googlebot-Image" | "Googlebot-Mobile" | "Googlebot-News" | "Googlebot-Video" | "Mediapartners-Google" | "AdsBot-Google" | "AdsBot-Google-Mobile" | "AdsBot-Google-Mobile-Apps" | "Mediapartners-Google" | "Storebot-Google" | "Google-InspectionTool" | "FeedFetcher-Google";
Istella: "istellabot";
Jike: "JikeSpider";
Lycos: "Lycos";
Mail: "Mail.Ru";
Mojeek: "MojeekBot";
Naver: "Yeti";
Orange: "OrangeBot";
Qwant: "Qwantify";
Rambler: "Rambler";
Seznam: "SeznamBot";
Sogou: | "Sogou blog" | "Sogou inst spider" | "Sogou News Spider" | "Sogou Orion spider" | "Sogou spider2" | "Sogou web spider";
Soso: "Sosospider";
Sputnik: "SputnikBot";
Wortbox: "wotbox";
Yahoo: "Slurp";
Yandex: "Yandex" | "YandexMobileBot";
Yioop: "YioopBot";
Yooz: "yoozBot";
Youdao: "YoudaoBot";
SocialNetwork
'Read the “', SocialNetwork, '” section'type SocialNetwork = { Facebook: "facebookcatalog" | "facebookexternalhit" | "Facebot"; LinkedIn: "LinkedInBot"; Pinterest: "Pinterest"; Tittwer: "Twitterbot"; WhatsApp: "WhatsApp";};
Defined in: studiocms/packages/studiocms/src/lib/robots/types.ts:103
Type declaration
'Read the “', Type declaration, '” section'Facebook: "facebookcatalog" | "facebookexternalhit" | "Facebot";
LinkedIn: "LinkedInBot";
Pinterest: "Pinterest";
Tittwer: "Twitterbot";
WhatsApp: "WhatsApp";
UserAgentType
'Read the “', UserAgentType, '” section'type UserAgentType = | "*" | SearchEngines[keyof SearchEngines] | SocialNetwork[keyof SocialNetwork] | SearchEngineOptimization[keyof SearchEngineOptimization];
Defined in: studiocms/packages/studiocms/src/lib/robots/types.ts:129