* The Business of Software

A former community discussing the business of software, from the smallest shareware operation to Microsoft. A part of Joel on Software.

We're closed, folks!

Links:

» Business of Software FAQ
» The Business of Software Conference (held every fall, usually in Boston)
» Forum guidelines (Please read before posting!)

Moderators:

Andy Brice
Successful Software

Doug Nebeker ("Doug")

Jonathan Matthews
Creator of DeepTrawl, CloudTrawl, and LeapDoc

Nicholas Hebb
BreezeTree Software

Bob Walsh
host, Startup Success Podcast author of The Web Startup Success Guide and Micro-ISV: From Vision To Reality

Patrick McKenzie
Bingo Card Creator

Hide text from Google?

On one of my web pages, I have a need to hide a certain string of text so that people Googling for it won't find it, but that they can see if they directly visit my page.  It's basically an unlock code for one of my apps that I only want direct visitors to see, and not people Googling it to find.

I was thinking of just doing it as an image, but it needs to blend in with the rest of a line of text, so it's not the best solution.

So does anyone know if there's a way to tell Googlebot to NOT index just part of a web page, rather than the whole page?
PSB136 Send private email
Saturday, August 24, 2013
 
 
This is called cloaking and may get your site banned from google if they find out.
Use a button or something clickable to reveal the code for real visitors imho.
Zka Send private email
Saturday, August 24, 2013
 
 
But can't the text still be indexed from a button click?
PSB136 Send private email
Saturday, August 24, 2013
 
 
You can use an inline image where it looks like part of the text, or a button, link to a "reveal" page, or even an iframe with the appropriate "robots" settings, etc.
Scorpio Send private email
Saturday, August 24, 2013
 
 
Use javascript to show the text. I don't think Google executes javascript so the text won't be seen by them.
Anthonyb Send private email
Saturday, August 24, 2013
 
 
I guess you are trying to do with a quick and dirty solution...
You had better find another way around doing it.
It is a very simple thing I suppose.

Put your alarm clock to 15 min and start thinking of another solution, I bet you will have one after 15 min
alexandar Send private email
Saturday, August 24, 2013
 
 
Than come back here and thank me
alexandar Send private email
Saturday, August 24, 2013
 
 
+1 to Anthonyb for easier option.
Scorpio Send private email
Saturday, August 24, 2013
 
 
Sounds good, Anthony.  I'll test it for a month or so (with some other text) to see how it goes, and if it gets indexed.
PSB136 Send private email
Saturday, August 24, 2013
 
 
Google said a while back that they now sometimes follow JS links but I doubt very much they'll parse the new addition to your page, I think they were only talking about simple cases.

Personally I'd go with Scorpio's suggestion....

"iframe with the appropriate "robots" settings."

... this has the advantage that it can look like a seamless part of the page to a human, still allows copy and paste, still works where JS is disabled, doesn't increase the click count (thereby reducing click-throughs) and is guaranteed to work on Google.
Jonathan Matthews Send private email
Saturday, August 24, 2013
 
 
Any reason why you can't use robots.txt and exlude this page from indexing?
Jim Morrison Send private email
Monday, August 26, 2013
 
 
Also, spending 1 minute at google I found this solution:

Put simply, the googleon/googleoff tags tell GoogleBot Google Search Appliance when to start and stop indexing various parts of the web document

<!--googleoff: index-->

<p>This (X)HTML content will NOT be indexed by Google.</p>

<!--googleon: index>
Jim Morrison Send private email
Monday, August 26, 2013
 
 
Jim, that looks like just what I need!  :)  Thanks.
PSB136 Send private email
Monday, August 26, 2013
 
 
Googleoff is a command for the Google Search Appliance. This will not work with the Google index Bot
Ralph R Send private email
Monday, August 26, 2013
 
 
Ah, stuff it... I'll just an image after all.
PSB136 Send private email
Monday, August 26, 2013
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz