forum.coppermine-gallery.net

Support => cpg1.4 plugins => cpg1.4.x Support => Older/other versions => cpg1.4 plugin contributions => Topic started by: m@rk on January 30, 2007, 03:21:10 am

Title: No robots
Post by: m@rk on January 30, 2007, 03:21:10 am
I don't know if this really helps to prevent from bots, but ...

this plugin adds <meta http-equiv="ROBOTS" content="NOINDEX,NOFOLLOW> to the html <head> section.

this plugin adds <meta http-equiv="robots" content="noindex,nofollow" /> to the html <head> section.
Title: Re: No robots
Post by: Joachim Müller on January 30, 2007, 08:12:14 am
Actually, the correct syntax would be
Code: [Select]
<meta http-equiv="robots" content="noindex,nofollow" />We appreciate your contribution, but it doesn't make much sense imo to accomplish this by using a plugin. Recommended way would be editing themes/yourtheme/template.html using a plain text editor and adding above mentioned piece of code right after the {META} token.

I don't know if this really helps to prevent from bots
It will keep "good" bots away that play by the rules (e.g. the spiders from google, M$), but it won't have an impact on "bad" spiders like email harvesters.
It's even easier (and allows a more granular control) to specify more detailed rules for robots/spiders by creating a robots.txt. All "good" spiders/bots that play by the rules will read robots.txt.
Title: Re: No robots
Post by: m@rk on January 30, 2007, 02:09:58 pm
Ok, thanks for clearing up.

I put this in a plugin, so you don't have to modify all templates separately, if you allow your gallery users to switch templates for example.

Now the plugin with the corrected syntax is attached.
Title: Re: No robots
Post by: Sami on January 30, 2007, 02:18:03 pm
Good for start m@rk ;)
I'm sure that you can code much better plugin next time