Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I am working on a website for a client that is requesting a way to verify your age. I have debated on creating a cookie that stores your age but I am unsure on a few things.

  1. How does SEO play into this if I create a landing page prior to the physical address?
  2. Is there a better way to possibly go about doing this other than a cookie?
  3. Should I create a separate page or code it within the header of the index page?

This is something similar I am trying to accomplish.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

With regard to SEO, the content of the site may not be accessible to crawlers unless you provide a means of distinguishing crawler traffic from human users. You could parse the user agent string and allow traffic from search engine crawlers to bypass the age gate. Ordinary users would not know how to exploit this to not have to verify their age, so I don't think this is an issue. For Google, see http://support.google.com/webmasters/bin/answer.py?hl=en&answer=1061943. Otherwise, if the crawler can access the page, there should not be a significant impact on SEO (but see below).

With regard to how to store this information, doing it server-side requires a means of identifying the computer users are accessing the site with, so this isn't really an option. The only other realistic choice is HTML5 Local Storage, which won't work with older browsers, so cookies are probably the best way to go.

Coding the age gate into the header of the index will not work for other pages. You could reference the code in every page of the site which must remain behind the age gate, which this would make it easier for crawlers to read the content, but you must remember to place the reference on every page on the site which requires it, and the age gate may end up in the search engine's index, which may not be what you want.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.