• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.3 Remove 403 Forbidden when user banned

caoanh204

Active member
#1
Hi, I have a question, please help me :)

By default, when user got banned, the user's profile page will show "XenForo - Error
This user's profile is not available.
" and return error code:

Request Method:GET
Status Code:403 Forbidden


So, in google webmaster, I got so much more Crawl Errors Access denied and this not good for SEO.

2014-06-19_111947.jpg

How to config/modifiy to when user banned, the user's profile still available or return status code 200?

Thanks.
 

Tracy Perry

Well-known member
#4
This's not good solution.
Guess I'm a little different then... For me, Google (nor guests) have any business seeing user profiles.
If you want their profiles to be able to be viewed, don't use the built in ban features but create a new banned user group and add them to that group. That way the profile can be viewed.
 

caoanh204

Active member
#5
Guess I'm a little different then... For me, Google (nor guests) have any business seeing user profiles.
If you want their profiles to be able to be viewed, don't use the built in ban features but create a new banned user group and add them to that group. That way the profile can be viewed.
Thanks for you reply.
 

ENF

Well-known member
#6
This's not good solution.
It actually is. It prevents Google from gathering junk search results for your site. Having your member's profiles index offers no benefit in value of the content indexed by Google or other search engines. If your user profiles are included in the index, your noise ratio goes way up and depending on the number of members.. that can be a massive amount of junk that Google has to sort through.

I'm not aware of anyone's member profile being worth indexing.... FWIW.
 

RoldanLT

Well-known member
#7
It actually is. It prevents Google from gathering junk search results for your site. Having your member's profiles index offers no benefit in value of the content indexed by Google or other search engines. If your user profiles are included in the index, your noise ratio goes way up and depending on the number of members.. that can be a massive amount of junk that Google has to sort through.

I'm not aware of anyone's member profile being worth indexing.... FWIW.
Then going to include all /members/ route to robots.txt :)