Getting Calendar Link Spam

Team WPMU,

I just got an alert from Google about an a large amount of links to the site, and the list was all for links to far future events (30-600 years from now) that are actually nonexistent in the BP Group Calendar (I checked), but that use the link structure for them (an example: http://mysite.com/groups/group-name/calendar/2585/05/27/ )

These events were not actually created, they were just links generated to the calendar function -- some kind of inbound link spam, I'm sure.

Google recommends using "nofollow" links for that content, but SmartCrawl does not allow for tailoring of Calendar content links (though it does for almost all other content).

How do you recommend I deal with this?

Thanks,
Rob Mc

  • jetmac

    A few more details...

    From Google:
    "Googlebot encountered an extremely high number of URLs from your site. This could cause Googlebot to unnecessarily crawl a large number of distinct URLs that point to identical or similar content, or to crawl undesired parts of your site. As a result Googlebot may consume much more bandwidth than necessary, or may be unable to completely index all of the content on your site."

    And their suggestion:
    "If your site has an infinite calendar, add a nofollow attribute to links to dynamically created future calendar pages."

  • Rupok

    Hi Rob, hope you had a wonderful day.

    Yeah, I went to this page http://mysite.com/groups/group-name/calendar/2585/05/27/ (I replaced mysite.com with thir******e.com) but it's returning me a 404 error.

    You can add "nofollow" property to all links of your site with this tiny little MU Plugin. For creating a mu plugin, create a folder named "mu-plugins" inside your "wp-content" folder. Then inside that "mu-plugins" folder, create a file with any name and with a .php extension. Now paste the code inside that file and save.

    <?php
    add_action( 'wp_footer', 'add_nofollow' );
    function add_nofollow() {
        ?>
        <script type="text/javascript">
          jQuery(document).ready(function() {
            jQuery('a[href^="http"]').attr('rel','nofollow');
          });
        </script>
        <?php
    }

    For getting more idea on mu plugins, you can go through this article: http://premium.wpmudev.org/manuals/wpmu-manual-2/using-mu-plugins/

    I believe, this will help. If not, please let us know. We will be glad to investigate further.

    Have a nice day. Cheers!
    Rupok

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.