CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Preventing template page from being accessed when asp page secured.

Print topic Send  topic

Author Message
steveni

Posts: 33
Posted: 02/15/2005, 3:13 AM

Hi All,

I have discovered that you can view the html page when the asp page is secured i.e. Menu.asp might be secured and require login but Menu.html (template) is not.
The info that is displayed may be marginal but any plain text may be insecure.
Has anyone a way to check (javascript?) that the Menu.html page is not loaded in the browser i.e. Menu.asp is loaded?
Try it yourself. Go to a page that you have secured on one of your web sites. Instead of typing the page name.asp, type page name.html in the browser.

Cheers!
View profile  Send private message
steveni

Posts: 33
Posted: 02/15/2005, 3:56 AM

I found the answer:
Include this Javascript at the top of the template page.
<SCRIPT LANGUAGE="JavaScript">
if (parent.location.href == 'http://Web Site URL/Menu.html') {
// change the url below to the url of the
// asp page...
window.location.href = 'Menu.asp';
}
</script>

View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.