Hiding pages from search results
September 11, 2007 /
Filed under: Google, Tips, Web Development
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.txtBy 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 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 tagsAlthough using the By using meta tags, you provide more specific, page-level instructions. Simply include this <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
Comments/Mentions |
Recent Comments
Recent Music Listens
|
