Results 1 to 3 of 3

Thread: Googlebot and restricted areas

  1. #1
    User
    Join Date
    04-27-10.
    Posts
    134

    Default Googlebot and restricted areas

    Hi,

    Does or can googlebot crawl restricted areas of a contao website?

    I would like this answer to be yes. You may ask why?
    I have pages that users need to accept the terms and conditions to before viewing them. Instead of having everyone signing up for membership, I have a hidden login form with pre-set guest credentials that submits when the user clicks Agree, thus showing the restricted pages.

    I have done it this way, because the client doesn't want someone to be able to access a page directly from a link without first confirming the terms first or be able to see the hidden menu points until then.

    Thanks

  2. #2
    User
    Join Date
    06-19-09.
    Location
    Elbl?g, Poland
    Posts
    152

    Default Re: Googlebot and restricted areas

    Maybe something like this (in HEAD section of your template):

    Code:
    if (agreeCheckBox == 1) {
    echo = "<META NAME="ROBOTS" CONTENT="INDEX, FOLLOW">";
    }else{
    echo = "<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">";
    }
    Marcin

    http://www.contao.pl - Polish Support Site
    http://forum.contao.pl - Polish Contao community forum


    -----------------------
    Need custom template? Feel free to contact me by e-mail marcin@contao.pl

  3. #3
    User
    Join Date
    04-27-10.
    Posts
    134

    Default Re: Googlebot and restricted areas

    Hi

    I'm not sure if that will work. Checking with a googlebot sim, it reports the hidden/protected pages as type 301 Moved Permanently.
    My agree button is more than just a checkbox. It's basically the membership login with out the user having to enter credentials because these are already set in hidden form fields and as far as I'm aware, google doesn't follow forms, only links.

    Maybe there is a different way of restricting users to pages through use of a cookie or session but I'm not sure how I'd implement that.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •