Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6038537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:14:10+00:00 2026-05-23T06:14:10+00:00

I am creating an ASP.NET website witch forces users to accept a disclaimer. When

  • 0

I am creating an ASP.NET website witch forces users to accept a disclaimer. When they accept the disclaimer a cookie and session is set. On each page request a check is fired to see if the session or cookie present.

We want to allowed Google and other Searchbots to index/craw all the pages without accepting the disclaimer.

What is to best way to do this? The only thing that I can think about is a check in the Request.ServerVariables, but I am not sure witch values I should look for?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T06:14:11+00:00Added an answer on May 23, 2026 at 6:14 am

    You need to bypass the check for the session/coockie in case Googlebot is passing by.

    So in this check you indeed need to look at ServerVariables. E.g. for Google this would be something like

       HttpContext.Current.Request.ServerVariables["HTTP_USER_AGENT"].Contains("Googlebot"))
    

    Of course, anyone pretending to be google will now also be able to skip the disclaimer.

    I wouldn’t call this cloacking – but no guarantees as to wether google likes it or not

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I am creating a website in ASP.NET, is it possible to programmatically set
I am creating website (football, soccer) in ASP.NET MVC3 and I want have users
I'm creating a ASP.NET MVC website and I was wandering which techniques do you
I am creating an ASP.Net MVC website that I am launching soon in private
I am creating an installer for an ASP.Net website using WiX. How do you
Good Afternoon, A client is interested in creating an ASP.NET 2.0 website whose purpose
I'm creating a custom MembershipProvider for an ASP.NET MVC website, and I was planning
When creating a website using Asp.Net and using controls such as the ListView is
I have been thinking of creating a website with asp.net. Is it possible to
I am creating a website in asp.net but i have some issue.. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.