Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Google bots have recently indexed my test web site which is not intended for users. How can i exclude my JSP web site from google's search result?

share|improve this question

migrated from stackoverflow.com Jan 24 '11 at 2:35

This question came from our site for professional and enthusiast programmers.

up vote 7 down vote accepted

Add a robots.txt file on the root of your server with:

User-agent: *
Disallow: /

You can also add this to your start page (or any page):


This should stop all indexing for crawlers who play nice.

More information at http://www.robotstxt.org/

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.