Title: Disallow /wp-admin/admin-ajax.php
Last modified: December 17, 2017

---

# Disallow /wp-admin/admin-ajax.php

 *  Resolved [islp](https://wordpress.org/support/users/islp/)
 * (@islp)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/disallow-wp-admin-admin-ajax-php/)
 * Hello,
 * I see my robots.txt is:
 * User-agent: *
    Disallow: /wp-admin/ Allow: /wp-admin/admin-ajax.php
 * HOW do I disallow the second one too? Not sure, but it looks like Google is indexing
   even pages served by plugins that are not linked in any front-end source.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [xmlsitemapgenerator](https://wordpress.org/support/users/xmlsitemapgenerator/)
 * (@xmlsitemapgenerator)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/disallow-wp-admin-admin-ajax-php/#post-9813035)
 * Our plugin only allows you to add new rules to your robots.txt file
    You cannot
   remove anything already written by wordpress of other plugins.
 * The entry page you make reference to looks like it is a wordpress feature and
   not something you can address through our plugin.
 * I believe the reason this file is allowed is because some themes rely on this
   page and if it is excluded google sometimes had trouble with those themes.
 *  Thread Starter [islp](https://wordpress.org/support/users/islp/)
 * (@islp)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/disallow-wp-admin-admin-ajax-php/#post-9814351)
 * Then, what I don’t understand is why I found in the sitemap something related
   to content I have in the admin area: there’s a plugin generating a paginated 
   view and I found many references to this plugin in the sitemap. Why?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Disallow /wp-admin/admin-ajax.php’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/www-xml-sitemap-generator-org_525f9f.
   svg)
 * [XML Sitemap Generator for Google](https://wordpress.org/plugins/www-xml-sitemap-generator-org/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/www-xml-sitemap-generator-org/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/www-xml-sitemap-generator-org/)
 * [Active Topics](https://wordpress.org/support/plugin/www-xml-sitemap-generator-org/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/www-xml-sitemap-generator-org/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/www-xml-sitemap-generator-org/reviews/)

## Tags

 * [disallow](https://wordpress.org/support/topic-tag/disallow/)

 * 2 replies
 * 2 participants
 * Last reply from: [islp](https://wordpress.org/support/users/islp/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/disallow-wp-admin-admin-ajax-php/#post-9814351)
 * Status: resolved