No robots No robots
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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