XF 2.1 Google Cache

stub

Member
When I did a site:domain.com for my domain on google, I was kinds shocked how much stuff was cached, which I'd like not to be cached. Here is what I found..

index.php (well ok)
forums/ (well ok)

but how do I make all these non- searchable

members/
categories/
help/cookies/
help/terms/
misc/contacts/
whats-new/
help/privacy-policy/
members/names/
members/list/

and I'm presuming there might be others too.

What is the best method to prevent google for searching all these folders?
 
Create a robots.txt file:

Code:
User-agent: *
Disallow: /members/
Disallow: /categories/
Disallow: /help/cookies/
Disallow: /help/terms/
Disallow: /whats-new/
Disallow: /help/privacy-policy/
Disallow: /account/
Disallow: /attachments/
Disallow: /goto/
Disallow: /posts/
Disallow: /login/
Disallow: /admin.php
Allow: /

Upload this to your forum root.
 
Create a robots.txt file:

Code:
User-agent: *
Disallow: /members/
Disallow: /categories/
Disallow: /help/cookies/
Disallow: /help/terms/
Disallow: /whats-new/
Disallow: /help/privacy-policy/
Disallow: /account/
Disallow: /attachments/
Disallow: /goto/
Disallow: /posts/
Disallow: /login/
Disallow: /admin.php
Allow: /

Upload this to your forum root.

OK. Done that. Is this a comprehensive list, or does this cover only what I mentioned and there are others which should be included. I noticed you combined my /members/ folders. I presume I can do the same for /help/

This was only after my board had been open for less than a week with only a few admin posts. Which is why I speculated there might be others?
 
A combination of permissions for the unregistered group and robots.txt.

Would you have anything else I might need to add to the robots.txt file? What are you suggesting needs to be changed from the default unregistered settings. All I want is that unregistered users can read the forums. Will that cause search engines to go crazy too?
 
OK. Done that. Is this a comprehensive list, or does this cover only what I mentioned and there are others which should be included. I noticed you combined my /members/ folders. I presume I can do the same for /help/
I think it applies to subfolders, yes. Someone will no doubt correct me if that's incorrect.

This is what https://xenforo.com uses:

Code:
User-agent: *
Disallow: /community/whats-new/
Disallow: /community/account/
Disallow: /community/attachments/
Disallow: /community/goto/
Disallow: /community/posts/
Disallow: /community/login/
Disallow: /community/admin.php
Allow: /

Sitemap: https://xenforo.com/community/sitemap.xml
 
Create a robots.txt file:

Code:
User-agent: *
Disallow: /members/
Disallow: /categories/
Disallow: /help/cookies/
Disallow: /help/terms/
Disallow: /whats-new/
Disallow: /help/privacy-policy/
Disallow: /account/
Disallow: /attachments/
Disallow: /goto/
Disallow: /posts/
Disallow: /login/
Disallow: /admin.php
Allow: /

Upload this to your forum root.

@djbaxter set that on my root page folder, any setting after that?
 
Assuming your forum is set up in the root, that should be okay.

See


and from that source see also

 
  • Like
Reactions: eL_
Top Bottom