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

XF 1.2 Granting access to Adsense crawler

Discussion in 'XenForo Questions and Support' started by Joshua, Feb 28, 2014.

  1. Joshua

    Joshua Active Member

    I'm trying to give the Google Adsense crawler access to pages available only behind a login. I can't seem to find the right combination of settings...
    Adsense prompts for the following info:
    Screen Shot 2014-02-28 at 12.04.07 PM.png

    What I've been using is:
    Restricted Directory or URL: http://mydomain.com
    Login URL: http://mydomain.com
    Login Method: POST
    Parameter 1: login = googlecrawler
    Parameter 2: password = password

    Any help would be greatly appreciated! Thanks in advance!
  2. Joshua

    Joshua Active Member

    Obviously, I've created account 'googlecrawler' with password 'password' on my forum...
  3. Jeremy

    Jeremy Well-Known Member

    If they are logging in, you need to send it to /login/login (or if you don't use friendly urls. index.php?login/login).
  4. Joshua

    Joshua Active Member

    Thanks for the input but that doesn't work either.
  5. Mike

    Mike XenForo Developer Staff Member

    Does it give you the ability to view the response from the login attempt?
  6. Joshua

    Joshua Active Member

    Sort of... Nothing useful to be gleaned though
    Screen Shot 2014-02-28 at 2.24.23 PM.png

    Edit: Actually it's more like a lack of response from the login attempt.
    Last edited: Feb 28, 2014
  7. Joshua

    Joshua Active Member

    So many variables involved, I still haven't been able to narrow this down. I've turned on Friendly URLs (see my other thread posted today) and I've tried different variations like: http://www.mydomain.com, http://mydomain.com
    Also setting Parameter 1 to login, username, etc
  8. CyclingTribe

    CyclingTribe Well-Known Member

  9. Joshua

    Joshua Active Member

  10. CyclingTribe

    CyclingTribe Well-Known Member

    No, I think it'll only work for a specific member who has disallowed non-member viewing of their profile; you could always set-up privacy on the Google crawler account and reference its account profile in the URL! (y)
  11. Joshua

    Joshua Active Member

    Thanks everyone for your help. These settings seem to be working OK now! I will update this thread if anything changes!
    Screen Shot 2014-02-28 at 6.43.26 PM copy.png
    CyclingTribe likes this.

Share This Page