Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: MASKING URL IN ADDRESS LINE


Message #1 by "Phil Perks" <philp@w...> on Thu, 22 Jun 2000 17:25:1
-----Original Message-----

From: wswyght@t... [mailto:wswyght@t...]

Sent: 21 June 2000 23:14

To: Phil Perks

Subject: MASKING URL IN ADDRESS LINE



If you reply directly to me please use this address

wswyght@t...



My problem is when my page gets the user information to do a search in the 

Access Database it generates a URL that is a query string. This query 

string has information in it we do not want the general public to know. How 

can I hide this information in the address bar?



I have tried URLEncode but I can not seem to get this to work at all.



<%

Dim OldURL,strNewURL

OldURL = "http://www.globalautolink.com"

strNewURL = Server.URLEncode (OldURL)

%>



Problem 1) I do not know the OldURL address as the query string will 

change

this each time.



Problem 2) I do not even know where to put the code

nor do I know where to put 



<Form Action=????what do I put here and where do I put this????>





Why this is important is the URL is showing the location of what we are 

selling and the costs. We do not want that open to view.



Thanks for any help you may give me



Warren S. Wyght

Message #2 by "Ken Schaefer" <ken.s@a...> on Fri, 23 Jun 2000 10:57:03 +1000
Put the information into a database. Give the information an ID. Pass the ID

across in the querystring, extract the data from the database using the ID

passed in the querystring.



Alternatively use cookies or session variables to acoomplish the whole

thing.



Server.URLEncode() takes your input and URLEncodes all reserved characters

(eg replaces spaces with %20), it doesn't "encrypt" your URL in anyway.



Cheers

Ken





> -----Original Message-----

> From: wswyght

> Sent: 21 June 2000 23:14

> To: Phil Perks

> Subject: MASKING URL IN ADDRESS LINE

>

> If you reply directly to me please use this address

> wswyght@t...

>

> My problem is when my page gets the user information to do a search in the

> Access Database it generates a URL that is a query string. This query

> string has information in it we do not want the general public to know.

How

> can I hide this information in the address bar?

>

> I have tried URLEncode but I can not seem to get this to work at all.

>

> <%

> Dim OldURL,strNewURL

> OldURL = "http://www.globalautolink.com"

> strNewURL = Server.URLEncode (OldURL)

> %>

>

> Problem 1) I do not know the OldURL address as the query string will

> change

> this each time.

>

> Problem 2) I do not even know where to put the code

> nor do I know where to put

>

> <Form Action=????what do I put here and where do I put this????>

>

>

> Why this is important is the URL is showing the location of what we are

> selling and the costs. We do not want that open to view.

>

> Thanks for any help you may give me

>

> Warren S. Wyght

>





Message #3 by "Warren S. Wyght" <wswyght@t...> on Sat, 24 Jun 2000 18:32:37 -0600
Thank you Ken, I have not had the time today to get after this nor did I have the time yesterday. I feel
like a lucky man, I was put into a position of repairing a ASP site that uses Access, this site was not built correctly so I must
always be running trying to fix each

problem. So even though the URL is a problem for the last two days it has been replaced. I will try all your ideas on Monday and let
you know how it worked.



I am not kidding about being lucky, I will learn tons and I love to feel overburdened so this is fun for me. Mind you I do not want
to be in this position for ever. Peace is good also.



Warren



Ken Schaefer wrote:



> Put the information into a database. Give the information an ID. Pass the ID

> across in the querystring, extract the data from the database using the ID

> passed in the querystring.

>

> Alternatively use cookies or session variables to acoomplish the whole

> thing.

>

> Server.URLEncode() takes your input and URLEncodes all reserved characters

> (eg replaces spaces with %20), it doesn't "encrypt" your URL in anyway.

>

> Cheers

> Ken

>

> > -----Original Message-----

> > From: wswyght

> > Sent: 21 June 2000 23:14

> > To: Phil Perks

> > Subject: MASKING URL IN ADDRESS LINE

> >

> > If you reply directly to me please use this address

> > wswyght@t...

> >

> > My problem is when my page gets the user information to do a search in the

> > Access Database it generates a URL that is a query string. This query

> > string has information in it we do not want the general public to know.

> How

> > can I hide this information in the address bar?

> >

> > I have tried URLEncode but I can not seem to get this to work at all.

> >

> > <%

> > Dim OldURL,strNewURL

> > OldURL = "http://www.globalautolink.com"

> > strNewURL = Server.URLEncode (OldURL)

> > %>

> >

> > Problem 1) I do not know the OldURL address as the query string will

> > change

> > this each time.

> >

> > Problem 2) I do not even know where to put the code

> > nor do I know where to put

> >

> > <Form Action=????what do I put here and where do I put this????>

> >

> >

> > Why this is important is the URL is showing the location of what we are

> > selling and the costs. We do not want that open to view.

> >

> > Thanks for any help you may give me

> >

> > Warren S. Wyght

> >

>

> ---

> Wrox Professional Wireless Developer Conference, Amsterdam, July 10-12. Covering application of WAP, XML, ASP, Java and C++ to
wireless computing, choose from 40+ technical sessions delivered by industry experts:
http://www.wroxconferences.com/ConferenceHome.asp?ConfID=9

> ---

> You are currently subscribed to asp_databases




--

Those who make peaceful revolution impossible will make violent revolution inevitable

        JFK Speech at white House 13 March 62

        vital Speeches 1 April 1962 Page 356



http://www.lethbridgec.ab.ca/~wswyght/index.html






  Return to Index