Is it possible to hide dates from sitemap

ozanthedeveloper

Regular Member
Jr. VIP
Joined
Aug 29, 2023
Messages
263
Reaction score
193
Hi.

A friend of mine told me that he was able to hide post dates from the sitemap so he could prevent his website from Google spam protection.

Also, he said he was able to accuse other websites of spamming.

Is it true? If so, how can we do that?
 
You mean hide the posts date?
Wordpress? I remember that there was a plugin that allowed you to do it, now I don't remember the name

But I think this post could help you.
https://www.wpbeginner.com/wp-tutorials/how-to-remove-the-date-from-wordpress-urls/

I searched in Google for you.
 
You mean hide the posts date?
Wordpress? I remember that there was a plugin that allowed you to do it, now I don't remember the name

But I think this post could help you.
https://www.wpbeginner.com/wp-tutorials/how-to-remove-the-date-from-wordpress-urls/

I searched in Google for you.
Thanks for the effort, but I think this article explains how to remove dates from Wordpress URL :P

I kinda want to know how to remove dates from sitemap and everywhere else related to the posts. So Google wouldn't know when it was published.
 
Thanks for the effort, but I think this article explains how to remove dates from Wordpress URL :P

I kinda want to know how to remove dates from sitemap and everywhere else related to the posts. So Google wouldn't know when it was published.
Check this out, let us know if it works?
support.rankmath.com/ticket/last-mod-in-xml-sitemap-2/
 
Hi.

A friend of mine told me that he was able to hide post dates from the sitemap so he could prevent his website from Google spam protection.

Also, he said he was able to accuse other websites of spamming.

Is it true? If so, how can we do that?

Are you using Rank Math perhaps?

https://rankmath.com/kb/remove-dates-from-search/#num-4-4-remove-dates-in-the-sitemap

You can remove the dates using this code snippet:

Code:
/**
 * Filter to remove lastmod from sitemap index
 */
add_filter( 'rank_math/sitemap/index/entry', function( $index, $type ) {
    if ( isset( $index['lastmod'] ) ) {
        unset( $index['lastmod'] );
    }
    return $index;
}, 10, 2 );
 
No, this is not correct. Google does not use posting date as a criterion to determine the spam nature of a site. Posting date is only a small part of the series of factors Google uses to evaluate website quality.

Besides, there is no way to effectively "hide" the post date from the sitemap. If you try this, it could result in a violation of Google's policies and affect your site's rankings.

As for accusing other sites of spamming, this is also not feasible. Google does not provide a mechanism to prevent other sites from sending spam to your site. Instead, you should use security measures like CAPTCHA or anti-spam plugins to protect your website from spam
 
Regardless the used technology, if a cms automatically generates a sitemap that function can be disabled. Worpress > 5.5 autogenerates it, for instance. A sitemap can be generated at owner's will as long as stick to language standards, e.g., xml. Sitemap is a priviledge, not an obligation, though G brainwashed us to believe so. The bottom line: disable the auto function and put whatever sitemap you like. PS just take into account that any previous data has been already crawled.
 
Y
Hi.

A friend of mine told me that he was able to hide post dates from the sitemap so he could prevent his website from Google spam protection.

Also, he said he was able to accuse other websites of spamming.

Is it true? If so, how can we do that?
Yes, it possible, it did help from google spams and lots.
 
Back
Top