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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:12:39+00:00 2026-05-26T11:12:39+00:00

This page lists a number of security issues to be aware of when redirecting

  • 0

This page lists a number of security issues to be aware of when redirecting a user off your primary website.

How can I hook into the ASP.NET MVC “pipeline” to detect when a hyperlink is being created, and alter it so that it goes to a redirection page such as https://host.com/redirect.aspx?http://yourlink.com

  • 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-26T11:12:40+00:00Added an answer on May 26, 2026 at 11:12 am

    There isn’t any easy way to directly modify all links created by your View code, so it really depends on how much work you’re willing to do.

    Assuming your users have javascript enabled, the easiest way would probably be to use jQuery to scan your page for links and modify them as appropriate. That way, none of your other code has to change.

    http://jquery-howto.blogspot.com/2009/06/find-select-all-external-links-with.html

    Another approach would be to have a policy of always creating external links by invoking a specific extension method:

    @Html.ExternalLink("Click here", "http://www.google.com")
    

    This introduces more maintenance overhead, but at least it consolidates the redirect code itself to one place where you could easily change it if you need to at some point in the future.

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

Sidebar

Related Questions

So i have this page which lists '.txt' file contents on the website. I
So I currently have three unordered lists in my header. This is a single-page
I have a web page that lists a number of companies from a MYSQL
As soon as i am on a single-view-page, i can use this to see
The CUDA Wikipedia page lists the Maximum number of threads per block as 1024
I'm just beginning this nice hashkell beginners tutorial: http://learnyouahaskell.com on this page on lists
I'm trying to create a page by using view 2. This page list all
On this page there is a list of footer links that have a little
I'm having this error page in Django. Exception Type: IndexError Exception Value: list index
in the aspx page i am getting this error while binding dropdown list Unable

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.