473,385 Members | 1,333 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Hide URL (querystring)


Hello to all,

I have a page ASPX that calls to another one.

It does window.open to another URL, and I want to hide the URL because the
user not must see the querystring by security subjects.

I discard properties of window.open (javascript) because the url can be
displayed by contextual menu of IE - Option Properties.
What options could take to do this?

I have two cases:

1.) I am within the same application Web.

A page aspx http://localhost:2121/TareaRevision/WFImagenes.aspx it opens to
another page aspx of the same application Web

2.) I have two applications Web.

A page aspx
http://localhost:2121/TareaRevision/WFGraficas.aspx

it calls to another page aspx of another application Web
http://localhost:2121/RepartoWF/WFTa...valoracion=533

The question is to hide querystring idvaloracion.

I discard use of frames. I do not know if with method POST it would be
possible to be done or even with Session; the problem would be when an
application Web calls to the other.

Thanks in advance. Greetings.

Any help will be appreciated

--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net

Apr 18 '07 #1
5 11061
It does window.open to another URL, and I want to hide the URL because the
user not must see the querystring by security subjects.
Not possible, you'll have to think of another way.

Would it be enough to encrypt the data on the querystring then have the
receiving page decrypt it?
Apr 18 '07 #2

I think it is possible encrypt-decrypt data for my project.

How I can do this ? Any help , please ?

I need some C# methods for encrypt-decrypt arguments of querystring

Thanks in advance.

"Aidy" wrote:
It does window.open to another URL, and I want to hide the URL because the
user not must see the querystring by security subjects.

Not possible, you'll have to think of another way.

Would it be enough to encrypt the data on the querystring then have the
receiving page decrypt it?
Apr 18 '07 #3
Hi,

There are a couple of ways that I can think of but I think whit your after
is URL Rewriting which allows you to rewrite the url to a more friendly
name. This would allow you to pass across the querystring as normal then
rewrite to hide the info. A good article to read is:

http://msdn2.microsoft.com/en-us/library/ms972974.aspx

- Mike

---------------------------------------------------------------------------------
<a href="http://www.cogitar.net"Cogitar Software. (
http://www.cogitar.net ) </a>
http://www.cogitar.net Cogitar Software. (Software Development and Managment
Systems)
http://www.web-dominion.co.uk Web-Dominion. (Web Design and hosting )
http://shop-dominion.com (senery landscape pictur gallery)
---------------------------------------------------------------------------------
"Alhambra Eidos Kiquenet" <Al*******************@discussions.microsoft.com >
wrote in message news:21**********************************@microsof t.com...
>
Hello to all,

I have a page ASPX that calls to another one.

It does window.open to another URL, and I want to hide the URL because the
user not must see the querystring by security subjects.

I discard properties of window.open (javascript) because the url can be
displayed by contextual menu of IE - Option Properties.
What options could take to do this?

I have two cases:

1.) I am within the same application Web.

A page aspx http://localhost:2121/TareaRevision/WFImagenes.aspx it opens
to
another page aspx of the same application Web

2.) I have two applications Web.

A page aspx
http://localhost:2121/TareaRevision/WFGraficas.aspx

it calls to another page aspx of another application Web
http://localhost:2121/RepartoWF/WFTa...valoracion=533

The question is to hide querystring idvaloracion.

I discard use of frames. I do not know if with method POST it would be
possible to be done or even with Session; the problem would be when an
application Web calls to the other.

Thanks in advance. Greetings.

Any help will be appreciated

--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net

Apr 18 '07 #4
Hi,

Alhambra Eidos Kiquenet wrote:
Hello to all,

I have a page ASPX that calls to another one.

It does window.open to another URL, and I want to hide the URL because the
user not must see the querystring by security subjects.
Additionally to what others suggested, you can use POST with the
"target" attribute set to the new window's name? POST is usually what's
used when the user shouldn't see the variables. You can transmit all the
variables you now put in the querystring using hidden fields in the
form. JavaScript can handle that.

Note however that any HTTP sniffer like Fiddler will show the sent
variables in clear text, so this is not secure, it's just a convenience.

HTH,
Laurent
>
I discard properties of window.open (javascript) because the url can be
displayed by contextual menu of IE - Option Properties.
What options could take to do this?

I have two cases:

1.) I am within the same application Web.

A page aspx http://localhost:2121/TareaRevision/WFImagenes.aspx it opens to
another page aspx of the same application Web

2.) I have two applications Web.

A page aspx
http://localhost:2121/TareaRevision/WFGraficas.aspx

it calls to another page aspx of another application Web
http://localhost:2121/RepartoWF/WFTa...valoracion=533

The question is to hide querystring idvaloracion.

I discard use of frames. I do not know if with method POST it would be
possible to be done or even with Session; the problem would be when an
application Web calls to the other.

Thanks in advance. Greetings.

Any help will be appreciated
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Apr 19 '07 #5

I have tested these:

1. Server.Transfer (Page, false);

Its appears the following error:

For Invalid path child request
'http://localhost:2121/TareaRevision/WFTareaRevision.aspx'. To virtual path
is expected.

2. Response.Redirect
I discard it because the URL can be displayed by user

3. POST

I have made the PostBack like this

<script type= " text/Javascript " language= " Javascript " >
document.forms [0] .target = “_blank”;
document.forms [0] .action = “<%= Page %>”;
document.forms [0] .submit ();
</script>

And it appears an error:

Validation of viewstate MAC failed. If this application is hosted by to Web
Farm or to cluster, ensure that <machineKeyconfiguration specifies the same
validationKey and validation algorithm. AutoGenerate cannot be used in a to
cluster. In any case if one becomes by POST it would appear the value of
idvaloración in the code of the page aspx that does submit.

I think the best solution is encrypt url,isnt ? Or use URL Rewrite...

Thanks in advance, any information about it will be appreciated
Apr 19 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Terri | last post by:
I want to send emails that would include a link to an asp page. The link would look like http://10.0.0.10/ContactDetails.asp?ID=18484 How can I prevent someone from simply typing in a...
4
by: -=franz=- | last post by:
is there a way to hide the query string? i receive a variable with a querystring from an external domain. i need to hide it cause it's a important data. thanks franz from italy
8
by: Alex Nitulescu | last post by:
Hi. I have the following question - is it possible (I assume it is, but I have no idea how to do it) to HIDE the href text which automatically shows in the status bar of IE ? I have build a...
3
by: Arjen | last post by:
Hi, Is there a way to hide the querystring? Now I have URL's like this: ....aspx?name=james&zip=1234 Is there a simple way to read this "name=james&zip=1234" and hide it? If there are more...
2
by: needin4mation | last post by:
Hi, I have an older webpage that uses a querystring to send data to an asp classic page. In that link there is data that contains sensitive information. I do not want this displayed when the user...
1
by: amol24 | last post by:
Hi everyone, I want to hide the QueryString so that no one should see that .... e.g. i want http://www.xyz.com for all my pages instead of displaying the querystring after the Domain Name .......
22
karthickkuchanur
by: karthickkuchanur | last post by:
I want to hide the following value to hide when i call the url <script> function callEmployeeEducationalHistory() { ...
2
by: ganesh22 | last post by:
Hi, How to Hide QueryString Value in asp.net? ex: iam having the link like this http://forums.asp.net/AddPost.aspx?ForumID=22 so i want to hide ForumID value there in some urls i saw like...
2
by: ziycon | last post by:
This function is in a class file, can't get the frmLogin form to hide when a user logins in, the frmMain will open fine though!??? public void login(string username,string password) { ...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.