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

  • SEARCH
  • Home
  • 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 8057331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:59:51+00:00 2026-06-05T08:59:51+00:00

My website includes subscription based pages, meaning that the content in those pages are

  • 0

My website includes subscription based pages, meaning that the content in those pages are password protected. I would like to implement a site search, and have these protected pages appear in the search results, but require login in order to view them.

What I thought about, is creating, for each protected page, an unprotected version, and then in each of these uprotected pages do a redirect on page load to the protected version.

Are there better ways of doing this ?

  • 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-06-05T08:59:52+00:00Added an answer on June 5, 2026 at 8:59 am

    There are some ways that you can do that more easy. Let say that you won to make it fully automatically on all page, then you go to the global.asax, on the AuthenticationRequest and if you see that is a google crawler, or a crawler in general you automatically loggin him with a simple login name.

    Must have in mine that any one can set a false browser id and see your “protected page”. And the code can be:

    protected void Application_AuthenticateRequest(object sender, EventArgs e)
    {
       // if its crawler - or check for what else you wish for
       if(HttpContext.Current.Request.Browser.Crawler){      
           // then log him automatically using the 'OneName' user
           FormsAuthentication.SetAuthCookie("OneName", false);       
       }
    }
    

    relative:
    http://msdn.microsoft.com/en-us/library/system.web.security.formsauthentication.setauthcookie.aspx

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

Sidebar

Related Questions

I have a marketplace website which includes listings of student housing. I would like
I'm looking into creating a system / site which includes a website. I would
I'm working on a website that includes Facebox to load content for a basket
I have a website design that includes text input fields that look like this:
We are launching a website (paid subscription) and the sign up process includes entering
I would like to include an audio/possible video player on my website with the
Given: I have a website that includes both ASP.NET Web Forms and Classic ASP
The website that I'm building includes a section where two users can interact. I
I recently built a website using the sammy.js framework. The site includes a portfolio
My Website is Structured like: index.php which includes a router.php and router.php calls required

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.