0

I have a blog site. And I found a suspicious access to my blog post from log. The url format is like this.

https://example.com/my-post/?unapproved=420&moderation-hash=847492149d817bf7e08d81457bf9952f

And they access from several ips. What is their purpose?

1

2 Answers 2

1

Spammers use the URL of unapproved comments to share around the Internet. This makes the comments viewable until the comment is dealt with via approval process.

WordPress' contributors are working on a patch for the next version. https://core.trac.wordpress.org/ticket/49956

1
<?php
    $url = $_SERVER['REQUEST_URI'];
    if (strpos($url,'/?') !== false) {
        echo '<meta name="robots" content="noindex, nofollow" />' . "\n";
    }
?>

This is one of the solutions, you can hide pages with GET parameters from the search. Just add it to the header.php file

1
  • I'm not sure that's the problem here: it sounds to me like people are sharing the moderation URLs, not having them picked up by search engines.
    – Rup
    Apr 27, 2021 at 21:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.