tlpgo
Posts: 4
|
| Posted: 06/17/2005, 8:28 PM |
|
i would appreciate any help with surpress showing teh pages and parametsrs in the address window of the browser.
i would like to see the following, no matter what page is visted.
http://mywebsite/
any help would be appreciated.
Thank You
_________________
Thank You, Tony |
 |
 |
smalloy
Posts: 107
|
| Posted: 06/20/2005, 11:40 AM |
|
Well, since no one answered than I do have a solution but its NOT a good one for a lot of reasons. one is that it is not supported by all browsers, another is that it is hard to maintain and debug.
The solution is to have the opening page contain an inline frame (IFRAME) and then have the source of the inline frame be the content of the main page. As the user navigated the navigation will occur inside of the frame leaving the http://www.yoursitye.com be the only thing that displays.
Steps to do this:
1 Create a page with a label
2 In the labels BEFORE SHOW event use this code:
Dim sResult
Dim strREF
'this is the "reference" or page to be initially shown. What USED to be your default
strREF = "Mydefault.asp"
'Create the Iframe, NOTE MY use of quotes!!!!
sResult = "<P ALIGN=middle><IFRAME SRC=""" & strREF & """ WIDTH=100% HEIGHT=900 FRAMEBORDER=0 SCROLLING=No NAME=""detail"" ALIGN=Top></IFRAME></P>"
'Populate the label with the Frame
label.Value = sResult
This will doe what you want but your site now uses IFRAMEs. Also, remember that this page is just a viewer so to speak, all the stuff that happens happens within the frame.
Steve
_________________
Anything can be done, just give me time and money. |
 |
 |
Cass
Posts: 26
|
| Posted: 06/21/2005, 6:25 AM |
|
Hi there,
If you only want to hide the URLs for cosmetic reasons, the iframe, or any frame method would work okay. If you wish to do it for security, you have to find some way of getting the true URLs away from your html source code, which is easily viewed by end-users either directly or through the temporary internet files cache.
So if you really want to hide URLs, one possible solution is to use an ASP page as 'page server'. The syntax for a link calling the page can be for example http://mysite.com/pageserver.asp?page=about_us or http://mysite.com/pageserver.asp?page=homepage. This is called a 'freiendly URL'.
Within pageserver.asp, you can 'translate' (either using hard-wired select-case or if-elseif statements, or via a db lookup) the friendly URL 'page=xxx' to a real URL and redirect to it. You can use server.transfer ASP command instead of the response.redirect, which gives you a transfer to any of your own websitre's pages, preserving post and get parameters from any original call.
Just an idea. Takes a bit of work, but does totally hide the structure and page naming from an outsider. If you want a touch more elegance in calling, you can put the page server code into your index.htm, or index.asp (whatever is your default start page), and place the page=xxx into a hidden variable for each link on a page, and then just call the link by executing the statement http://mysite.com. This will automatically call your default start page and the 'friendly URL' will be in a posted form variable.
Just an idea... probably lots of others out there...
Cheers,
Cass.
|
 |
 |
wiseguy
Posts: 6
|
| Posted: 06/21/2005, 10:23 AM |
|
well u can use frames to hide the pages..
but if u want to encrypt the parameters passed then use the code from here http://www.4guysfromrolla.com/webtech/code/qs.enc.asp.html
i used it on my site www.playcricketonline.com. Its pretty neat. The encryption
|
 |
 |
|