Search console is indexing wordpress login pages with pre filled log information

#1058112
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    I apologize for the issue you are facing with your WordPress login pages being indexed by Google Search Console. To disallow indexing of your login pages, you can use the Rank Math plugin to modify your robots.txt file. Here’s how you can do it:

    1. Access your WordPress Dashboard.

    2. Navigate to Rank Math SEO → General Settings → Edit robots.txt.

    3. Add the following line to disallow indexing of your login page:

      Disallow: /wp-login.php
      Disallow: /wp-admin/
    4. Save the changes.

    This will prevent search engines from indexing your login pages and any content within the wp-admin directory.

    If you need further assistance or if this does not resolve your issue, please reply to this ticket, and a human agent from our support team will assist you further. Thank you for raising this concern!

    Sources:
    Discovered – Currently Not Indexed in Google Search Console » Rank Math
    How to Fix Indexing Issues in Google Search Console » Rank Math

    Hello,

    You should also use the URL inspection tool of your GSC account to check those URLs with login redirect and check the referring page where they are coming from.

    Once you know their referring page, you can unlink or update them so Google won’t discover them anymore.

    Looking forward to helping you.

    Hi,

    I’ve now added this in the virtual robot txt field in rank math general settings > edit robot.txt.

    User-agent: *
    Disallow: /*?add-to-cart=
    Disallow: /wp-login.php
    Disallow: /wp-admin/
    Disallow: /voordeur/

    Much of the refering pages are unknown. So what can I do?

    Hello,

    In this case, please clear your website’s cache and revalidate the issue in your Google Search Console account and give Google some time to recrawl your site.

    validate

    Looking forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Search console is indexing wordpress login pages with pre filled log information’ is closed to new replies.