Prevent Google from Indexing Site-How?

Kenneth Holland

Active member
Hi,

I'm testing my XF site right now and I don't want Google indexing my site until I launch. Is there any simple way I can restrict this without having to mess with the .htaccess?

Thanks! :)

Ken
 

Steve F

Well-known member
Yes the root for your site, or if you have your forum in say "community" make it like so but keep it in the root directory still.

Code:
User-agent *
Disallow: /community/
I added a robots.txt in my previous post.
 

Kenneth Holland

Active member
Yes the root for your site, or if you have your forum in say "community" make it like so but keep it in the root directory still.

Code:
User-agent *
Disallow: /community/
I added a robots.txt in my previous post.
Hi qwk,

Sorry I'm a little paranoid so I want to make sure I'm doing this right:

My root is 'public_html' and that's where my Wordpress files reside (the root). So put the file in there and and
then designate the directory like you said? EXAMPLE: /community/

Wanted to make sure I didn't tell G to stop indexing my blog. :)

Ken
 

Steve F

Well-known member
Yes, your telling the bots not to crawl "/community/". So your blog is fine.

If you have WP in your root, public_html, make there isn't already a robots.txt in there. If there is just add that disallow line to it .
 
Top