A
A
Alexander Lashchevsky2014-05-27 13:51:47
JavaScript
Alexander Lashchevsky, 2014-05-27 13:51:47

How to completely disable indexing of div content?

Hello!
There is a div block , you need to disable indexing of all content. I put the block inside noindex , but then the bird whispered to me that it works for Yandex, and Google ignores it. I thought to put rel="nofollow" to each link in it , that is, a problem - the content of the block is generated automatically, and it's impossible to put nofollow in the middle of html, you can only use js. But I don't know him. :(
Can you suggest a solution or write a small code that would set all links to rel nofollow?
Thank you!
Sincerely,
Alexander.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
G
Grag, 2014-05-27
@Grag

You can create a div in js, search engines ignore it.

A
Alexey Kuleshov, 2014-05-27
@GingerbreadMSK

1. Close the block in the nofollow tags - /nofollow
2. Yandex can still index the closed one in noindex - this tag is only for recommendation for the robot - so at its discretion
3. Run the generated text blocks through the regular expression before output and "force" add all link tags parameter rel="nofollow"

I
Ilya Lesnykh, 2014-05-27
@Aliance

// jQuery
$('div.DIV_CLASS a').attr('rel', 'nofollow');

Only not the fact that the search engine will see the attributes set dynamically.

L
Leonid Fedotov, 2014-05-28
@iLeonidze

we can’t put nofollow in the middle of html, you can only use js
In my opinion, it is very stupid to add something to JS - search engines do not run JavaScript , but only eat the original HTML version of the page. (But CSS has been listened to recently)
the bird whispered that it works for Yandex, and Google ignores it
Despite Yandex's support for rel="nofollow", it is still necessary to use <noindex></noindex> - it is the block that will be closed, not just links.
Can you suggest a solution or write a small codec that would set all links to rel nofollow?
The most win-win option is to figure out how to add rel="nofollow" attributes to "auto-generated content". If you show us the part of the code that is responsible for the "automatic generation of content", perhaps we can give you a hint. But no one will guess how they are generated here :)
It is important to understand that rel="nofollow" and <noindex></noindex> are introductory for search engines. The final decision on what to do with elements containing these tags and attributes is made by the search engines themselves.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question