Should allow or disallow to index “wp_ajax.php” in wordpress site?

By default, WordPress blocks search engines from indexing the wp_ajax.php file, which is located in the wp-admin folder. This is because the wp_ajax.php file is used for handling AJAX requests on the WordPress dashboard and does not contain any content that would be useful to index in search engines.

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

This code will block all search engine robots (User-agent: *) from accessing the wp_ajax.php file located in the wp-adminfolder of your WordPress site.

This Post Has 2 Comments

  1. tucks

    Wow, fantastic bloɡ lɑyout! How long hаve you been blogging for?

    you made bl᧐gging look easy. The overall look of your site іs exϲellent, let alone the сontent!

Leave a Reply