HS Spidercontent plugin for Wordpress

WordPress logoAllows post and page content specifically crafted for spiders and bots. Useful to improve your search engine rankings or prevent search engines from unwanted caching of your content.

Howto

This plugin allows you to filter the page or post body text depending on whether the current visitor is a bot or a human reader.

Shortcodes

Use the following shortcodes in your page or post body text to specify content for bots or humans.

[spidercontent]This text is delivered whenever a known spider, bot or crawler reads the page.[/spidercontent]

[spidercontent for=yahoo]This text is delivered exclusively for yahoo bots.[/spidercontent]

[humancontent]This text is delivered only when a human visitor reads the page.[/humancontent]

PHP code in WP theme

The detection is done during the plugin initialization. Use the $hs_spidercontent object to access it's variables to implement custom logic in your theme.

<?PHP
if (is_object($hs_spidercontent)) {
    
// make sure that the plugin is present
    
if ($hs_spidercontent->spider_detected) {
        echo 
"Your are detected as spider : " $hs_spidercontent->spider;         
    } else {
        echo 
"Welcome, human!";
    }
}
?>

Resources

The plugin is hosted on WordPress.org:
http://wordpress.org/extend/plugins/hs-spidercontent/