0

I am developing an ASP.NET application. But i would like to hide the URL so user don't know on which page he or she standing. Is their any solution?

4
  • 1
    What do you mean by hiding the URL? From browser address bar? If it is what you are looking for, then No is the answer.. But you can try changing into different route as explained in different way here Commented Aug 4, 2016 at 4:18
  • Yes, hiding the URL isn't any more possible than it is possible to publish a book in such a way that readers can't look at the cover. Commented Aug 4, 2016 at 4:22
  • Yes like in other site URL will be rewrite when you browse any page. Commented Aug 4, 2016 at 4:27
  • You can use Encryption in Querystring Commented Aug 4, 2016 at 4:43

2 Answers 2

1

Use Server.Transfer . It doesn't change the URL.

Server.Transfer happens without the browser knowing anything, the browser request a page, but the server returns the content of another.

Server.Transfer() should be used when:

  • we don't need to show the real URL where we redirected the request in the users Web Browser
  • we want to transfer current page request to another .aspx page on the same server
  • we want to preserve server resources and avoid the unnecessary roundtrips to the server
  • we want to preserve Query String and Form Variables (optionally)
Sign up to request clarification or add additional context in comments.

1 Comment

You can't hide the main URL like www.YourWebsite.com. Also replace all Response.Redirect with Server.Transfer
0

There is no solution unless you can force the user to browse only from a restricted environment in which you can control what software is installed or run. Even if you force the user to use a specific browser, they could use a tool like Fiddler to see what URLs they are going to.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.