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 9126509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:03:32+00:00 2026-06-17T07:03:32+00:00

I am currently adding an aspx page to my web site (.net) where my

  • 0

I am currently adding an aspx page to my web site (.net) where my clients can insert credit card details.
I would like to give access for that page from several pages only (lets call them a.aspx and b.aspx) and if someone tries to access this page from c.aspx he won’t be able to do so.
Is there a way to limit the redirect to a page for few pages only?

I’ve tried to check at the page event what is the source of the call, with the “sender” object, however I am not sure it the right way to go.

Hope the question is clear enough.

  • 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-17T07:03:33+00:00Added an answer on June 17, 2026 at 7:03 am

    What you need to know to do this is the referer.
    The referer is, briefly, the page that brought you to the page you are currently at.

    I believe this should get the referrer for ASP.net

    Request.Server["HTTP_REFERER"]
    

    Then you can just check and see if the referer matches your desired origins. However, I’m not sure about the ease/prevalence of referer spoofing, or if it even exists.

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

Sidebar

Related Questions

I'm currently adding JMS support to a application-server-like framework. The JMS will be implemented
I am currently adding an action filter to handle session timeout in our site:
i have a site that uses globalize3 gem (https://github.com/svenfuchs/globalize3) and i'm currently adding the
I'm using an asp.net 4 web site project (C#) in VS2008 and I have
I would like to not cache my aspx pages anywhere. For some reason IE
Issue adding on change event to a control. I currently have a page that
I am currently working on an web application that uses ASP.NET 2.0 framework. I
I'm currently adding a div to use as a slider programmatically, but when I
I am currently adding products programatically to the cart, to create a 'free sample'
I'm currently adding transposition tables in my chess engine, and I'm having issues with

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.