Advanced search  

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]

Pages: [1]   Go Down

Author Topic: No robots  (Read 12155 times)

0 Members and 1 Guest are viewing this topic.

m@rk

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 39
No robots
« 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.
« Last Edit: January 31, 2007, 08:03:05 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: No robots
« Reply #1 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.
Logged

m@rk

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 39
Re: No robots
« Reply #2 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.
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: No robots
« Reply #3 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
Logged
‍I don't answer to PM with support question
Please post your issue to related board
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 20 queries.