| | #1 |
| Active Warrior War Room Member Join Date: 2007 Location: West Virginia, USA!
Posts: 79
Thanks: 17
Thanked 26 Times in 16 Posts
Blog Entries: 1 |
Okay that sounds like a strange question since most people want to get the googlebot to visit. But I just bought a more advanced wordpress theme than I'm used to and I need time to work out the kinks first before it goes live. I know there has to be some code you can but in to keep the bot out. Could someone please let me know what that is and in which folder do I put it in? My hosting account has several domains and I don't want anything that might mess up the googlebot from visiting those sites. Does some kind generous hearted warrior know what I can do? Thanks in an advance so much... Dolores |
| |
| | #2 |
| VIP Warrior War Room Member Join Date: 2007 Location: Caldwell, Idaho, USA.
Posts: 1,967
Thanks: 1,024
Thanked 2,043 Times in 1,183 Posts
|
Make a new file named robots.txt, and in it, put Code: User-agent: * Disallow: / |
|
The 2nd Amendment, 1789 - The Original Homeland Security. Gun control means never having to say, "I missed you." | |
| |
| | #4 |
| New Warrior Member War Room Member Join Date: 2011
Posts: 27
Thanks: 0
Thanked 1 Time in 1 Post
|
Yes in wordpress > Admin Panel > Settings > Privacy > check the radio box I would like to block search engines, but allow normal visitors. Best done via the wp-admin panel rather than via .htaccess file manually
|
| |
| | #5 |
| Marketing with an accent. War Room Member Join Date: 2010 Location: Switzerland
Posts: 556
Thanks: 103
Thanked 179 Times in 135 Posts
|
Hi Dolores, if there's stuff on those pages that you don't want to be publically available for protection reasons (sounds a bit like it), you might need more protective measures, as people will still be able to access content... |
| ================================================== === This blog is awesome: http://www.robkonrad.com/blog. Read it. ================================================== === | |
| |
| | #6 |
| Warrior Member Join Date: 2011
Posts: 21
Thanks: 0
Thanked 2 Times in 2 Posts
|
Use a robots.txt robots exclusion file The robots exclusion standard, as articulated in the robots.txt protocol, says that spiders should look for a plain text file called robots.txt in a site’s top (root) directory. To exclude all robots from crawling directories called sales and images, the following syntax is used: User-agent: * Disallow: /sales/ Disallow: /images/ A common error is to forget the trailing slash – we even spotted this error in a recent google blog post. User-agent: googlebot Disallow: /sales will stop any file beginning with sales* from being indexed – not usually what you want. In this case, we have limited the exclusion to googlebot. See our article on search engine spiders for a list of spider bots associated with each of the major search engines. |
| |
|
| Bookmarks |
| Tags |
| blog, google, indexing |
| |