Attempt to prevent bots indexing promos

- Mark the ads rel=nofollow
- Add them to robots.txt
- This was pretty much only a problem for Chinese spiders
humitos/django/compatibility
David Fischer 2018-03-02 09:44:10 -08:00
parent 27d9ba3e9a
commit 94339b8f5a
No known key found for this signature in database
GPG Key ID: F0C9B0ADA737AB60
3 changed files with 4 additions and 1 deletions

View File

@ -1,2 +1,3 @@
User-agent: * User-agent: *
Disallow: /builds/ Disallow: /builds/
Disallow: /sustainability/click/

View File

@ -81,6 +81,7 @@ Promo.prototype.place_promo = function (selector, promo_class) {
.attr('class', 'rtd-pro-image-wrapper') .attr('class', 'rtd-pro-image-wrapper')
.attr('href', self.link) .attr('href', self.link)
.attr('target', '_blank') .attr('target', '_blank')
.attr('rel', 'nofollow')
.on('click', self.click_handler); .on('click', self.click_handler);
var promo_image = $('<img />') var promo_image = $('<img />')
.attr('class', 'rtd-pro-image') .attr('class', 'rtd-pro-image')
@ -97,6 +98,7 @@ Promo.prototype.place_promo = function (selector, promo_class) {
.attr('class', 'rtd-pro-link') .attr('class', 'rtd-pro-link')
.attr('href', self.link) .attr('href', self.link)
.attr('target', '_blank') .attr('target', '_blank')
.attr('rel', 'nofollow')
.on('click', self.click_handler); .on('click', self.click_handler);
}); });
promo.append(promo_text); promo.append(promo_text);

File diff suppressed because one or more lines are too long