No robots No robots
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

No robots

Started by m@rk, January 30, 2007, 03:21:10 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

m@rk

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.

Joachim Müller

Actually, the correct syntax would be<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.

Quote from: m@rk on January 30, 2007, 03:21:10 AM
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.

m@rk

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.

Sami

Good for start m@rk ;)
I'm sure that you can code much better plugin next time
‍I don't answer to PM with support question
Please post your issue to related board