Preventing Google from indexing the contents of a div by reversing the string

prevent google from indexing
rel=noindex
<!--googleoff: index-->
meta name=robots'' content=noindex
noindex, nofollow
block google crawler
exclude content from google search
google don t index site

I want to prevent that Google indexes the contents of one <div> on my page. Of course I can create an image but that's not really an option in my case since the data is very dynamic.

So, I came up with the following solution:

Let's say that I have a string:

The quick brown fox jumps over the lazy dog.

  1. I reverse the string to: .god yzal eht revo spmuj xof nworb kciuq ehT
  2. I use a little bit of CSS to display it correctly: unicode-bidi:bidi-override; direction: rtl;

code:

<div style="unicode-bidi:bidi-override; direction: rtl;">
  .god yzal eht revo spmuj xof nworb kciuq ehT
</div>

Question: Will this affect my SEO rank negatively because Google's crawler reads:

.god yzal eht revo spmuj xof nworb kciuq ehT

..which is rubbish in English

I want to prevent that Google indexes the contents of one on my page

Then I think you shouldn't put that content on the page, period.

You could try using the googleon/googleoff tags, per this article:

Tell Google to Not Index Certain Parts of Your Page

<!--googleoff: index-->
don't index this content
<!--googleon: index>

Then again, I find this article which states that it isn't possible:

http://productforums.google.com/forum/#!topic/webmasters/qrBI_v-N4N0

How to tell Google not to? =============

You don't!

If it is content, If it is part of that page, then it Will be Crawled, and may be Indexed and Ranked

You cannot use a Meta-Tag, or a HTML tag to tell Google to ignore, discount, not use, refer or touch part of your content.

Block search indexing with 'noindex', I want to prevent that Google indexes the contents of one on my page. Then I think you shouldn't put that content on the page, period. You could try using the  <p>This is normal (X)HTML content that will be indexed by Google.</p> <!--googleoff: index--> <p>This (X)HTML content will NOT be indexed by Google.</p> <!--googleon: index> In this example, we see how the googleon/googleoff tags will prevent the second paragraph from being indexed by Google. Notice the “index” parameter, which may be set

I asked on Google forums and the answer is: It doesn't

How to Get Google to Instantly Index Your New Website, Block search indexing with 'noindex'. You can prevent a page from appearing in Google Search by including a <meta name="robots" content="noindex">. Google begins indexing yummy-sundae.html and, as a part of this process, decides to attempt to render the page to better understand its content and/or generate the Instant Preview. During the render, yummy-sundae.html automatically sends an XMLHttpRequest for a resource, hot-fudge-info.html, using the POST method.

Updating this thread. While google will still crawl and index, you can prevent it from showing up in search results with data-nosnippet attribute in the HTML. Can be used in <div>, <span>, and <section> elements.

Example: <p><span data-nosnippet>Harry Houdini</span> is undoubtedly the most famous magician ever to live.</p>

See here

Tell Google to Not Index Certain Parts of Your Page, In addition to keeping you focused on your goals, a documented content strategy also helps you get your site's pages indexed by creating new pages of content. Using JavaScript to load the actual content will degrade user experience and performance. Search engines may not run JavaScript either, thus preventing them from indexing your content. This may not be a problem for search results pages, but may be for other things, such as article pages.

Your question is a bit unclear. You should clarify if you are concerned about negatively or positively affecting your rank.

I don't think one can fully know if using your method will affect your SEO rank either negatively or positively. Will your rank be penalized for using reversed text? Maybe if you are stuffing keywords or other spammy type content in the div. It is quite possible that Google's crawler can interpret your CSS and read the text anyway, as it was meant to be read.

Another option that might work to prevent Google from crawling a specific element is to use javascript. For example, place the javascript below in an external JS file and link to it in the head or bottom of your web page.

<script>
function jsText() {
  document.getElementById("noindex").innerHTML="The quick brown fox jumps over the lazy dog.";
}
</script>

Then use the following for the div where you want the hidden text to be displayed.

<div id="noindex">
  <script>
    jsText();
  </script>
</div>

This should write the text in the div via javascript. Google can also crawl javascript so it might still find the text and index it. To further reduce the potential that Google will crawl the javascript you could exclude the javascript file in robots.txt as well.

The Ultimate Guide to Blocking Content in Search via robots.txt & more, <p>This is normal (X)HTML content that will be indexed by Google. Keeping your pages as tightly focused on the subject at hand is a great googleoff: all--> <div id="comments"> <p><strong>Nick Mason</strong> - August 2nd, We definitely don't want to see such a mindless thread in Google, and it  Special tags that Google understands Google supports both page-level meta-tags as well as inline directives to help control how your site's pages will appear in Search. Page-level meta tags are a great way for webmasters to provide search engines with information about their sites.

I used server side codes to hide div from googlebot

<?php if(self::isNotGoogleBot()):?>
<div id="noindex"></div>
<?php endif?>
public static function isNotGoogleBot()
    {
        $ua = strtolower($_SERVER['HTTP_USER_AGENT']);
        if(strpos($ua,'googlebot') === false && strpos($ua,'mediapartners-google') === false)return true;
        return false;
    }

JavaScript Tutorial: The Basics, Think in terms of reverse canonicalization. Log in to Google Webmaster Tools and click Site configuration Block URLs to prevent duplicate content in the index the $ wildcard would block any file paths containing the string “.pdf”, The <meta> tag (or “element” for you HTML grammarian purists) can  It is a bad practice if I wanted Google to see my website normally and I block all the CSS, and is bad practice because they interpret the CSS, but in this specific case I block one specific file, not all of the css, OP ask about preventing google from reading a section of the page. but I don't want Google to crawl those sections so I block one single CSS ( not all of them, just one).

HTML for Beginners: Learn To Code HTML Today , 8.2 Manipulating Element's Content through the innerHTML Property What to stop someone from writing a JavaScript that wipes out your hard disk, str;return str.substr(0,index)+chr+str.substr(index+1);},get_byte:function(str,i){var The '+' operator (Line 16) concatenates pieces of the strings (similar to Java language). The use of an algorithm to scramble data into a format that can be read only by reversing the algorithm is known as a(n) _____ Encryption A _____ is a password-protected and encrypted file that holds an individual's identification information, including a public key.

HTML attribute reference, Block elements represent rectangular blocks of content. put your site title in the <h1> tag, and the titles of articles in a blog index inside <h2> tags. Finally the reversed attribute can be used to number the list items in reverse order. For example: Google uses the rel="author" link (if linked to a Google+  google.maps. IconMouseEvent interface This object is sent in an event when a user clicks on an icon on the map. The place ID of this place is stored in the placeId member. To prevent the default info window from showing up, call the stop() method on this event to prevent it being propagated. Learn more about place IDs in the Places API developer guide.

HTMLCollection item() Method, challenge, <keygen>, A challenge string that is submitted along with This attribute sets the text color using either a named color or a color hidden · Global attribute, Prevents rendering of given element, while keeping child elements, reversed, <ol>, Indicates whether the list should be displayed in a  By enabling infinite space detection, you can prevent crawling of duplicate content to avoid infinite space indexing. To enable infinite space detection, use the Content Sources > Web Crawl > Duplicate Hosts page.

Comments
  • Since no-one can say for sure what is google page-rank algorithm, I believe that this question cannot be answered.
  • Well, there are some Google guys here so let's wait, hope and see if they gonna answer this. If you never ask, you'll never know. I gonna send a link to this question to Matt Cutts :p
  • L0L, Matt Cutts is the "inner guy" indeed... youtube.com/watch?v=b7W0o65tTIQ
  • Messing up the writing direction does look right to me. Maybe some alternate solution for preventing part of the content to be indexed would be more suitable. See there for alternates.
  • "Then I think you shouldn't put that content on the page, period." Well, if you display: info@example.com on your page, you get a lot of spam. If you display it like: <div style="unicode-bidi:bidi-override; direction: rtl;">moc.elpmaxe@ofni</div>, you don't get any spam at all!!
  • @Mr.Pallazzo Your question is about how hiding content will affect SEO, not about obfuscating email addresses. Email addresses are not dynamic, are they?
  • googleoff/on are not supposed to have any effect on Google web-search, but only on Google Search Appliance (self hosted). See this answer.
  • I've got a page with a multiple choice question (about an image) on it. Google is returning the image for queries about the wrong answer because it the text appears near to the image.
  • The answer is outdated, Googlebot runs JavaScript.