Skip to content

Make the konami link more difficult to be parsed by Google #89

Description

@porduna

Right now, the JavaScript works as:

   images[i].src = "/labman/media//konami_code_persons/full-name.jpg";

And Google probably checks that this link exists and indexes it. Since we don't want this to happen, we could change this code for:

   var url = "/labman/";
   var rnd = Math.random();
   if (rnd >= 0) {
        url += "media/konami_code_persons/";
   }
   if (rnd >= -1) {
        url += "name-of-person-encoded"; 
       /* e.g. 
       >>> ''.join([ '%' + ('%x' % ord(i)).zfill(2) for i in 'pablo' ])
       '%70%61%62%6c%6f
       */
   }
   images[i].src += url + ".jpg";

In the meanwhile, I'll use robots.txt to remove support for:

http://www.morelab.deusto.es/labman/media//konami_code_persons/
http://www.morelab.deusto.es/labman/media/konami_code_persons/

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions