How can I get Bing to index past an age check page?

Posted on 2014-08-12
Last Modified: 2014-08-13
About five years ago a client (a beer distribution company) had a site created that required an age check to enter. The client just discovered last week that they're not being indexed by Bing.

I ran an automated site map program and discovered that it's getting hung up on the age check page and won't index beyond that. Looking at the code -- it's written in ColdFusion -- here's how the age check is handled:


Application.cfc checks to see if a cookie saying the user is over 21 is set.


If not, cflocation to the age check page.


If the user clicks the "over 21" from button, set the cookie and cflocation to the index page where life goes on as usual.
Google doesn't have a problem with indexing the site, so I'm wondering how to get around it in Bing. Would creating a sitemap with the internal pages do it? They're probably going to be redoing their site in the near future, so I've been told not to spend too much time on the solution.

Question by:SiobhanElara
    LVL 33

    Assisted Solution

    Step 0)  Application.cfc checks to see if the user agent is a spider and, if so, sets the cookie and cflocation to the index page where life goes on as usual.
    LVL 58

    Accepted Solution

    Use javascript to set a cookie
    In your redirect code check if the cookie exists, if it does then it means a real person, then check your age check cookie
    If it doesn't exist its a bot.

    Googlebot accepts cookies so it has no problem with that side of things.
    LVL 33

    Expert Comment

    The visitor may have javascript turned off...
    LVL 58

    Expert Comment

    So <0.2% of your visitors don't get the age verification screen
    Reality is it is probably about 0.0001% of your users if even that much.

    This is the common method.

    Author Closing Comment

    Thanks, guys! I used the javascript and it worked perfectly.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Today, I was working on some optimization and spam-stopping techniques when I encountered Ben Nadel's post to reduce spam feature using Math ( While this method is not o…
    [Part 4 of a 6 part series called SEO Basics: 5 SEO Secrets for Creating Content that Drives Traffic (…
    This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
    This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now