Hiding pages from search results Sep11 '07
Sometimes it's wise to hide certain pages from search engine crawlers. A good example is having your resume posted on your web site. On one hand, it's helpful to have a direct link to your resume, where anyone can view it upon request. On the other hand, a resume usually contains personal information, as well as company-specific job duties that probably shouldn't be showing up in a random Google or Yahoo search.
Thankfully, Google provides two simple ways to ensure private pages remain hidden from search engines:
- robots.txt file
- Meta tags
robots.txt
By creating a robots.txt file and placing it in your root directory of your web site, you are providing instructions to "Googlebot" (Google's site crawler) on which pages or directories you'd like hidden from search results.
If your resume is located at /resume.html on your domain, you can stop Googlebot from indexing that page by including this text in the robots.txt file:
User-agent: Googlebot Disallow: /resume.html
That's it! Include as many rules as you'd like - each on a separate line. Google will ignore these pages or directories, preventing them from showing up in search results.
Meta tags
Although using the robots.txt file to block pages is quick and easy, there's another way that provides an added level of security.
By using meta tags, you provide more specific, page-level instructions.
Simply include this <meta> tag in your HTML document:
<html> <head> <meta name="googlebot" content="noindex"> ...
Is it working properly?
To test whether Google is properly acknowledging your instructions, you can log into Google Webmaster Tools, choose your domain, and analyze the robots.txt file.

Other resources
- Official Google Blog: Controlling how search engines access and index your website.
- Official Google Blog: The Robots Exclusion Protocol.
- Official Google Blog: Robots Exclusion Protocol: now with even more flexibility.
Categories: Google
, Tips
, Web Development ![]()
Add Feedback (view all)
Leave feedback
matthom
is published and produced by Matt Thommes - an independent publishing enthusiast, mobile blogger, content creator, informative writer, web developer from a suburb of Chicago.
Never one to conform, Matt intends to promote the effect the web has on our lives, in an effort to intensify, instruct, and clarify all that is happening around us.
Popular Pages
- Fast rounded corners in Photoshop (7384 recent visits)
- PHP – passing variables across pages (2705 recent visits)
- JavaScript set selected on load (2273 recent visits)
- Removing all child nodes from an element (1650 recent visits)
- iPod songs out of order? (1306 recent visits)
- Firefox 3 smart address bar: wildcard search (1232 recent visits)
- Britney - Everytime piano tab (1109 recent visits)
- MySQL LEFT JOIN syntax (931 recent visits)
- Breathe Me - Sia (785 recent visits)
- Tumblr: how blogging should be (687 recent visits)
Similar Entries
- Firefox keyword search: Google glossary definition (4 recent visits)
- Firefox 3 smart address bar: wildcard search (1232 recent visits)
- Yahoo! Web Services: Image Search (2 recent visits)
- MySQL search criteria - column alias (273 recent visits)
- Google Docs dynamic search shortcoming (2 recent visits)
- How far to a MapQuest built–in search? (2 recent visits)
Stats
6 unique visits since August 2008
Recent Referrers (click)
- hiding pages from google
- hiding pages from google
- hiding pages from google
- hiding pages from google
- hiding pages from google'
- hiding pages from google
- hiding pages from google
- hiding pages from google
- hiding pages from google
- hiding pages from google
- hiding pages from google'
- hiding pages from google
- hiding pages from google
- hiding pages from google
- hiding pages from google
- hiding pages from google
- hiding pages from google'
- hiding pages from google