Tüm linklere otomatik nofollow kodu eklemeye ne demeli?

Bu konuyu okuyanlar

mitoloji

Öğrenci
Katılım
11 Ocak 2017
Mesajlar
27
Reaksiyon puanı
3
Puanları
3
Nofollow ve dofollow kodları ile ilgili bilgiler burada. Ne işe yaradıkları ile ilgili detaylı bilgiyi buradan öğrenebilirsiniz.
Bunun dışında Blogger blog sayfalarında tüm dış bağlantılara otomatik olarak nofollow kodu eklemek isterseniz eğer
Kod:
</head>
kodunun hemen üstüne
Kod:
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js' type='text/javascript'></script>
<script type='text/javascript'>
var a = $(this);
var href = a.attr('href');
$(document).ready(function() {
$("a[href^='http://']").each(function () {
if(this.href.indexOf(location.hostname) == -1) {
$(this).attr('target', '_blank');
$(this).attr('title', 'Click to open in a new window');
$(this).attr('rel', 'nofollow');
}
}
);
$("a[href^='https://']").each(function () {
if(this.href.indexOf(location.hostname) == -1) {
$(this).attr('target', '_blank');
$(this).attr('title', 'Click to open in a new window');
$(this).attr('rel', 'nofollow');
}
}
);
});
</script>
bu kodu ekleyin. Bunun detaylı anlatımı ise burada.
 
Üst