$default_value) { $options[$key] = get_option($key, $default_value); } ?>

Robots.txt Optimization

Note: While creating first time, it is recommended to clear existing robots.txt file and create a new one from scratch using the options given below .

Add Wordpress Default Robots.txt

Protect backend of website by blocking search engines and web crawlers from accessing WordPress administration panel. Allow dynamic functionality by allowing crawling of admin-ajax.php file for AJAX requests to the server.

Add Wordpress Default Robots.txt

Add the default Wordpress robots.txt rules by adding the following to your robots.txt file:

Basic:
User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php


Advanced:
User-agent: *
Allow: /wp-admin/admin-ajax.php
Allow: /*/*.css
Allow: /*/*.js
Disallow: /wp-admin/
Disallow: /wp-includes/
Disallow: /readme.html
Disallow: /license.txt
Disallow: /xmlrpc.php
Disallow: /wp-login.php
Disallow: /wp-register.php
Disallow: *?attachment_id=

['value' => '1', 'label' => 'Advanced'], 'advancedrobotstxtoptimizer_add_wp_default_robots_2' => ['value' => '2', 'label' => 'Basic'], 'advancedrobotstxtoptimizer_add_wp_default_robots_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>

Block Crawling of WordPress Duplicate

By blocking these URLs, website owners can prevent search engines from indexing this duplicate content and instead prioritize high-quality, unique content on their website, improving their SEO and visibility in search results.

Prevent Crawling of WordPress JSON API Endpoints

Prevent search engines from crawling the WordPress JSON API endpoints by adding a "disallow" rule to your robots.txt file for /wp-json/ and /?rest_route=.

onclick="change_robots_text(this.getAttribute('id'), this.checked);" />
Block Search URLs from Indexing

Blocking search URLs, such as "/search/" and "/?s=", from being crawled by web crawlers in robots.txt helps to avoid having duplicate content indexed in search engines and reduces the load on the website's servers.

onclick="change_robots_text(this.getAttribute('id'), this.checked);" />
Block Parameters from Indexing

Block Parameters to avoid duplicate Content issues by adding following lines in robots.txt
User-agent: *
Disallow: *?s=*
Disallow: *?p=*
Disallow: *&p=*
Disallow: *&preview=*

onclick="change_robots_text(this.getAttribute('id') , this.checked)" />
Block Feed from Indexing

Block Feed directories to save crawl budget
User-agent: *
Disallow: /feed/
Disallow: /feed/$
Disallow: /comments/feed
Disallow: */feed
Disallow: */feed$
Disallow: /?feed=
Disallow: /wp-feed

onclick="change_robots_text(this.getAttribute('id') , this.checked)" />
Block Spam Directory from Indexing

Block these directories to save crawl budget
User-agent: *
Disallow: /trackback/
Disallow: */comments$
Disallow: */trackback
Disallow: */trackback$
Disallow: /wp-comments
Disallow: /wp-trackback
Disallow: */replytocom=

onclick="change_robots_text(this.getAttribute('id') , this.checked)" />

Prevent Scrappers

By blocking WayBackMachine Archive.org, a website owner can have more control over which versions of its pages are accessible to the public and protect the website from privacy concerns, resource constraints, and SEO issues.

Block WayBackMachine Archive.org Crawler

Block WayBackMachine crawler by adding following lines in robots.txt
User-agent: ia_archiver
Disallow: /
User-agent: archive.org_bot
Disallow: /
User-agent: ia_archiver-web.archive.org
Disallow: /

onclick="change_robots_text(this.getAttribute('id') , this.checked)" />
Block ChatGPT Crawler

Block ChatGPT From Using Your Website Content by adding following lines in robots.txt
User-agent: CCBot
Disallow: /

onclick="change_robots_text(this.getAttribute('id') , this.checked)" />

Woocommerce Optimization

By blocking WayBackMachine Archive.org, a website owner can have more control over which versions of its pages are accessible to the public and protect the website from privacy concerns, resource constraints, and SEO issues.

Block Cart Page

Block Cart Page from indexation by adding following lines in robots.txt
User-agent: *
Disallow: /cart/

onclick="change_robots_text(this.getAttribute('id') , this.checked)" />
Block Checkout Page

Block Checkout Page from indexation by adding following lines in robots.txt
User-agent: *
Disallow: /checkout/

onclick="change_robots_text(this.getAttribute('id') , this.checked)" />
Block My Account Page

Block My Account Page from indexation adding following lines in robots.txt
User-agent: *
Disallow: /my-account/

onclick="change_robots_text(this.getAttribute('id'), this.checked)" />
Block Login Page

Block Login Page from indexation by adding following lines in robots.txt
User-agent: *
Disallow: /login/

onclick="change_robots_text(this.getAttribute('id') , this.checked)" />
Block Woocommerce Parameters

Block Woocommerce Parameters to avoid duplicate Content issues by adding following lines in robots.txt
User-agent: *
Disallow: /*?orderby=price
Disallow: /*?orderby=rating
Disallow: /*?orderby=date
Disallow: /*?orderby=price-desc
Disallow: /*?orderby=popularity
Disallow: /*?filter
Disallow: /*?orderby=title
Disallow: /*?orderby=desc
Disallow: /*add-to-cart=*
Disallow: /*add_to_wishlist=*
Disallow: /*?paged=&count=*
Disallow: /*?count=*

onclick="change_robots_text(this.getAttribute('id') , this.checked)" />

Add Sitemaps

By including the sitemap in the robots.txt file, search engines are able to quickly and efficiently crawl the site and index its content, which can improve search engine rankings and visibility.

Add Yoast Sitemap Link

Add the link to the Yoast Sitemap by adding the following line to your robots.txt file:
Sitemap: https:///sitemap_index.xml

onclick="change_robots_text(this.getAttribute('id') , this.checked)" />
Add RankMath Sitemap Link

Add the link to the Sitemap by adding the following line to your robots.txt file:
Sitemap: https:///sitemap_index.xml

onclick="change_robots_text(this.getAttribute('id') , this.checked)" />
Add All in One SEO Sitemap Link

Add the link to the Sitemap by adding the following line to your robots.txt file:
Sitemap: https:///sitemap_index.xml

onclick="change_robots_text(this.getAttribute('id') , this.checked)" />
Add Squirrly SEO Sitemap Link

Add the link to the Squirrly SEO Sitemap by adding the following line to your robots.txt file:
Sitemap: https:///sitemap_index.xml

onclick="change_robots_text(this.getAttribute('id') , this.checked)" />
Add XML Sitemap Link

Add the link to the Sitemap by adding the following line to your robots.txt file:
Sitemap: https:///sitemap_index.xml

value="1" onclick="change_robots_text(this.getAttribute('id') , this.checked)" />
Add Jetpack Sitemap Link

Add the link to the Sitemap by adding the following line to your robots.txt file:
Sitemap: https:///sitemap_index.xml

onclick="change_robots_text(this.getAttribute('id') , this.checked)" />
Add Wordpress Default Sitemap Link

Add the link to the Wordpress Default Sitemap by adding the following line to your robots.txt file:
Sitemap: https:///wp-sitemap.xml

onclick="change_robots_text(this.getAttribute('id') , this.checked)" />
Add News Sitemap Link

Add the link to the News Sitemap by adding the following line to your robots.txt file:
Sitemap: https:///sitemap-news.xml

onclick="change_robots_text(this.getAttribute('id') , this.checked)" />
Add Woocommerce Product Sitemap Link

Add the link to the Woocommerce product Sitemap by adding the following line to your robots.txt file:
Sitemap: https:///product-sitemap.xml

onclick="change_robots_text(this.getAttribute('id') , this.checked)" />

Block SEO Tool Crawlers

By blocking SEO tool crawlers, website owners can have more control over the data that is available to the public, the amount of traffic to their site, and minimize the risk of server overload. By controlling the amount of traffic, website owners can ensure that their site is always accessible and available to their users.

Block Ahrefs Crawler

Block Ahrefs crawler from accessing your site by adding the following to your robots.txt file:
User-agent: AhrefsBot
Disallow: /

onclick="change_robots_text(this.getAttribute('id') , this.checked)" />
Block Semrush Crawler

Block Semrush Crawler from accessing your website by adding the following to your robots.txt file:
User-agent: SemrushBot
Disallow: /
User-agent: SemrushBot-SA
Disallow: /
User-agent: SemrushBot-BA
Disallow: /
User-agent: SemrushBot-SI
Disallow: /
User-agent: SemrushBot-SWA
Disallow: /
User-agent: SemrushBot-CT
Disallow: /
User-agent: SemrushBot-BM
Disallow: /

onclick="change_robots_text(this.getAttribute('id') , this.checked)" />
Block Moz Crawler

Block Moz Crawler from accessing your website by adding the following to your robots.txt file:
User-agent: rogerbot
Disallow: /

onclick="change_robots_text(this.getAttribute('id') , this.checked)" />
Block Majestic Crawler

Block the Majestic Crawler from accessing your website by adding the following to your robots.txt file:
User-agent: MJ12bot
Disallow: /

onclick="change_robots_text(this.getAttribute('id') , this.checked)" />
Block Xenu

Block the Xenu Crawler from accessing your website by adding the following to your robots.txt file:
User-agent: Xenu
Disallow: /

onclick="change_robots_text(this.getAttribute('id') , this.checked)" />

Search Engine Crawlers

By blocking SEO tool crawlers, website owners can have more control over the data that is available to the public, the amount of traffic to their site, and minimize the risk of server overload. By controlling the amount of traffic, website owners can ensure that their site is always accessible and available to their users.

Google Bot:

Allow/Block Google crawler from accessing your site.

['value' => '1', 'label' => 'Allow'], 'advancedrobotstxtoptimizer_change_google_bot_2' => ['value' => '2', 'label' => 'Disallow'], 'advancedrobotstxtoptimizer_change_google_bot_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>
Google Images

Allow/Block Google Images crawler from accessing your site.

['value' => '1', 'label' => 'Allow'], 'advancedrobotstxtoptimizer_change_google_images_2' => ['value' => '2', 'label' => 'Disallow'], 'advancedrobotstxtoptimizer_change_google_images_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>
Google Media Partners

Allow/Block Google Mobile crawler from accessing your site.

['value' => '1', 'label' => 'Allow'], 'advancedrobotstxtoptimizer_change_google_media_partners_2' => ['value' => '2', 'label' => 'Disallow'], 'advancedrobotstxtoptimizer_change_google_media_partners_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>
Google AdsBot

Allow/Block Google Mobile crawler from accessing your site.

['value' => '1', 'label' => 'Allow'], 'advancedrobotstxtoptimizer_change_google_adsbot_2' => ['value' => '2', 'label' => 'Disallow'], 'advancedrobotstxtoptimizer_change_google_adsbot_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>
Google Mobile

Allow/Block Google Mobile crawler from accessing your site.

['value' => '1', 'label' => 'Allow'], 'advancedrobotstxtoptimizer_change_google_mobile_2' => ['value' => '2', 'label' => 'Disallow'], 'advancedrobotstxtoptimizer_change_google_mobile_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>
Bing Bot

Allow/Block Bing Bot crawler from accessing your site.

['value' => '1', 'label' => 'Allow'], 'advancedrobotstxtoptimizer_change_bing_bot_2' => ['value' => '2', 'label' => 'Disallow'], 'advancedrobotstxtoptimizer_change_bing_bot_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>
MSN Bot

Allow/Block MSNBot crawler from accessing your site.

['value' => '1', 'label' => 'Allow'], 'advancedrobotstxtoptimizer_change_msn_bot_2' => ['value' => '2', 'label' => 'Disallow'], 'advancedrobotstxtoptimizer_change_msn_bot_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>
MSNBot Media

Allow/Block MSNBot Media crawler from accessing your site.

['value' => '1', 'label' => 'Allow'], 'advancedrobotstxtoptimizer_change_msn_bot_media_2' => ['value' => '2', 'label' => 'Disallow'], 'advancedrobotstxtoptimizer_change_msn_bot_media_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>
Apple bot

Allow/Block Apple bot crawler from accessing your site.

['value' => '1', 'label' => 'Allow'], 'advancedrobotstxtoptimizer_change_apple_bot_2' => ['value' => '2', 'label' => 'Disallow'], 'advancedrobotstxtoptimizer_change_apple_bot_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>
Yandex Bot

Allow/Block Yandex Bot crawler from accessing your site.

['value' => '1', 'label' => 'Allow'], 'advancedrobotstxtoptimizer_change_yandex_bot_2' => ['value' => '2', 'label' => 'Disallow'], 'advancedrobotstxtoptimizer_change_yandex_bot_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>
Yandex Images

Allow/Block Yandex Images crawler from accessing your site.

['value' => '1', 'label' => 'Allow'], 'advancedrobotstxtoptimizer_change_yandex_images_2' => ['value' => '2', 'label' => 'Disallow'], 'advancedrobotstxtoptimizer_change_yandex_images_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>
Yahoo Search (Slurp bot)

Allow/Block Yahoo Search (Slurp bot) crawler from accessing your site.

['value' => '1', 'label' => 'Allow'], 'advancedrobotstxtoptimizer_change_yahoo_bot_2' => ['value' => '2', 'label' => 'Disallow'], 'advancedrobotstxtoptimizer_change_yahoo_bot_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>
DuckDuckGo Bot

Allow/Block DuckDuckGo crawler from accessing your site.

['value' => '1', 'label' => 'Allow'], 'advancedrobotstxtoptimizer_change_duckduckgo_bot_2' => ['value' => '2', 'label' => 'Disallow'], 'advancedrobotstxtoptimizer_change_duckduckgo_bot_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>
Qwant

Allow/Block Qwant crawler from accessing your site.

['value' => '1', 'label' => 'Allow'], 'advancedrobotstxtoptimizer_change_qwant_bot_2' => ['value' => '2', 'label' => 'Disallow'], 'advancedrobotstxtoptimizer_change_qwant_bot_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>
Baidu/Sogou/Soso/Youdao - Chinese search

Allow/Block Baidu,Sogou,Soso,Youdao crawler from accessing your site.

['value' => '1', 'label' => 'Allow'], 'advancedrobotstxtoptimizer_change_baidu_bot_2' => ['value' => '2', 'label' => 'Disallow'], 'advancedrobotstxtoptimizer_change_baidu_bot_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>
Naverbot - South Korean Search Engine

Allow/Block Naverbot crawler from accessing your site.

['value' => '1', 'label' => 'Allow'], 'advancedrobotstxtoptimizer_change_naver_bot_2' => ['value' => '2', 'label' => 'Disallow'], 'advancedrobotstxtoptimizer_change_naver_bot_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>
Seznam - Czech Search Engine

Allow/Block Seznam crawler from accessing your site.

['value' => '1', 'label' => 'Allow'], 'advancedrobotstxtoptimizer_change_seznam_bot_2' => ['value' => '2', 'label' => 'Disallow'], 'advancedrobotstxtoptimizer_change_seznam_bot_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>

Social Media Crawlers

The social media crawler crawls a website to scans the website and collect information about its content and structure, specifically for the purpose of generating preview snippets or preview cards to be displayed on social media platforms when a link to the website is shared. These preview snippets usually include a title, description, and an image, and are intended to provide a quick preview of the website's content to social media users, encouraging them to click through to the website.

Facebook:

Allow/Block Facebook crawler from accessing your site.

['value' => '1', 'label' => 'Allow'], 'advancedrobotstxtoptimizer_change_facebook_bot_2' => ['value' => '2', 'label' => 'Disallow'], 'advancedrobotstxtoptimizer_change_facebook_bot_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>
Instagram:

Allow/Block Instagram crawler from accessing your site.

['value' => '1', 'label' => 'Allow'], 'advancedrobotstxtoptimizer_change_instagram_bot_2' => ['value' => '2', 'label' => 'Disallow'], 'advancedrobotstxtoptimizer_change_instagram_bot_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>
Whatsapp:

Allow/Block Whatsapp crawler from accessing your site.

['value' => '1', 'label' => 'Allow'], 'advancedrobotstxtoptimizer_change_whatsapp_bot_2' => ['value' => '2', 'label' => 'Disallow'], 'advancedrobotstxtoptimizer_change_whatsapp_bot_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>
Telegram:

Allow/Block Telegram crawler from accessing your site.

['value' => '1', 'label' => 'Allow'], 'advancedrobotstxtoptimizer_change_telegram_bot_2' => ['value' => '2', 'label' => 'Disallow'], 'advancedrobotstxtoptimizer_change_telegram_bot_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>
Twitter:

Allow/Block Twitter crawler from accessing your site.

['value' => '1', 'label' => 'Allow'], 'advancedrobotstxtoptimizer_change_twitter_bot_2' => ['value' => '2', 'label' => 'Disallow'], 'advancedrobotstxtoptimizer_change_twitter_bot_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>
LinkedIn

Allow/Block Linkedin crawler from accessing your site.

['value' => '1', 'label' => 'Allow'], 'advancedrobotstxtoptimizer_change_linkedin_bot_2' => ['value' => '2', 'label' => 'Disallow'], 'advancedrobotstxtoptimizer_change_linkedin_bot_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>
Pinterest

Allow/Block Pinterest crawler from accessing your site.

['value' => '1', 'label' => 'Allow'], 'advancedrobotstxtoptimizer_change_pinterest_bot_2' => ['value' => '2', 'label' => 'Disallow'], 'advancedrobotstxtoptimizer_change_pinterest_bot_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>
Discord

Allow/Block Discord crawler from accessing your site.

['value' => '1', 'label' => 'Allow'], 'advancedrobotstxtoptimizer_change_discord_bot_2' => ['value' => '2', 'label' => 'Disallow'], 'advancedrobotstxtoptimizer_change_discord_bot_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>

Image Crawlability

The robots.txt file can also be used to control crawlability of specific image file types, such as .webp, .jpg, .png, and .gif. This can be useful if a website owner wants to only allow a specific set of image file types to be crawled and indexed by search engines and other crawlers.

.Webp Images:

The robots.txt file will be updated to block or allow crawling of .webp images on a website.

['value' => '1', 'label' => 'Allow'], 'advancedrobotstxtoptimizer_change_webp_2' => ['value' => '2', 'label' => 'Disallow'], 'advancedrobotstxtoptimizer_change_webp_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>
.Jpg Images:

The robots.txt file will be updated to block or allow crawling of .Jpg images on a website.

['value' => '1', 'label' => 'Allow'], 'advancedrobotstxtoptimizer_change_jpg_2' => ['value' => '2', 'label' => 'Disallow'], 'advancedrobotstxtoptimizer_change_jpg_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>
.Png Images:

The robots.txt file will be updated to block or allow crawling of .Png images on a website.

['value' => '1', 'label' => 'Allow'], 'advancedrobotstxtoptimizer_change_png_2' => ['value' => '2', 'label' => 'Disallow'], 'advancedrobotstxtoptimizer_change_png_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>
.Gif Images:

The robots.txt file will be updated to block or allow crawling of .Gif images on a website.

['value' => '1', 'label' => 'Allow'], 'advancedrobotstxtoptimizer_change_gif_2' => ['value' => '2', 'label' => 'Disallow'], 'advancedrobotstxtoptimizer_change_gif_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>

Files Crawlability

The crawlability of .pdf, .docx, .html, and .php files on a website can be controlled using the robots.txt file by specifying the "Allow" or "Disallow" rules for those file types.

.PDF Files:

The robots.txt file will be updated to block or allow crawling of .PDF files on a website.

['value' => '1', 'label' => 'Allow'], 'advancedrobotstxtoptimizer_change_pdf_2' => ['value' => '2', 'label' => 'Disallow'], 'advancedrobotstxtoptimizer_change_pdf_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>
.DOCX Files:

The robots.txt file will be updated to block or allow crawling of .DOCX files on a website.

['value' => '1', 'label' => 'Allow'], 'advancedrobotstxtoptimizer_change_docx_2' => ['value' => '2', 'label' => 'Disallow'], 'advancedrobotstxtoptimizer_change_docx_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>
.Html Files:

The robots.txt file will be updated to block or allow crawling of .Html files on a website.

['value' => '1', 'label' => 'Allow'], 'advancedrobotstxtoptimizer_change_html_2' => ['value' => '2', 'label' => 'Disallow'], 'advancedrobotstxtoptimizer_change_html_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>
.PHP Files:

The robots.txt file will be updated to block or allow crawling of .PHP files on a website.

['value' => '1', 'label' => 'Allow'], 'advancedrobotstxtoptimizer_change_php_2' => ['value' => '2', 'label' => 'Disallow'], 'advancedrobotstxtoptimizer_change_php_3' => ['value' => '3', 'label' => 'Disable', 'default' => true], ], true ); ?>

Block Bad Bots

Blocking bad bots can provide several benefits for your website's security, performance, and analytics. By blocking bad bots that can cause harm to your website through scraping, spamming, and attacks, you can protect your website and ensure stability. Additionally, blocking bad bots can conserve bandwidth and improve website speed, provide accurate website analytics data, and reduce server load to ensure reliability.

Block Bad Bots

Block upto 100 Bad Bots From accessing Your Website to save server resources

onclick="change_robots_text(this.getAttribute('id') , this.checked)" />