Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


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

Posted on 2014-08-12
Medium Priority
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
  • 2
  • 2
LVL 35

Assisted Solution

by:Paul MacDonald
Paul MacDonald earned 400 total points
ID: 40256839
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

Gary earned 1600 total points
ID: 40256902
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 35

Expert Comment

by:Paul MacDonald
ID: 40257523
The visitor may have javascript turned off...
LVL 58

Expert Comment

ID: 40257529
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

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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you don’t want your company's site to fail on the web, you’d do well to observe these best web design practices and make sure you implement them when applicable.
We take a look at the fast-evolving changes in Search Engine Optimization rules and algorithms by Google.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
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.
Suggested Courses
Course of the Month10 days, 15 hours left to enroll

572 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