1. 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

Discussion in 'XenForo Questions and Support' started by caoanh204, Jun 19, 2014.

  1. caoanh204

    caoanh204 Active Member

    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.
     
  2. Tracy Perry

    Tracy Perry Well-Known Member

    In your robots.txt disallow the members profiles (everybody) from being be accessed.
     
  3. caoanh204

    caoanh204 Active Member

    This's not good solution.
     
  4. Tracy Perry

    Tracy Perry Well-Known Member

    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 likes this.
  5. caoanh204

    caoanh204 Active Member

    Thanks for you reply.
     
  6. ENF

    ENF Well-Known Member

    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.
     
    caoanh204 and RoldanLT like this.
  7. RoldanLT

    RoldanLT Well-Known Member

    Then going to include all /members/ route to robots.txt :)
     

Share This Page