Answer the question
In order to leave comments, you need to log in
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
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"
// jQuery
$('div.DIV_CLASS a').attr('rel', 'nofollow');
we can’t put nofollow in the middle of html, you can only use jsIn 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 itDespite 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 :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question