4

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?

7

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):

<html>
<head>
<title>...</title>
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
</head>

This should stop all indexing for crawlers who play nice.

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

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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