Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I secure HTML pages

Status
Not open for further replies.

adm1122

Programmer
Jul 11, 2000
3
AU
I have an ASP web site that is secured using a session variable that is set by a logon page. Any asp page that a user may goto checks the variable and redirects to the logon page if required. The user's now need to have secure HTML pages on this site, they can't be converted to ASP because styesheets and layers don't work. How can I secure these HTML pages ? <br>
 
Dear admin1122,<br><br>&gt; they can't be converted to ASP because styesheets and layers don't work. <br><br>You will have to convince me of that with some facts.<br><br>&gt; How can I secure these HTML pages ? <br><br>'secure' is an ambiguous term in this case. Normally I would think in terms of SSL but your post seems to indicate that you have a 'permissions' issue, i.e., you want to limit access to a page based on the users permissions.<br><br>Please clarify<br>-pete<br>
 
I dont know if this is of any help to you, but if you were try possibly try on session start in the global.asa, you can then check the file of request, then redirect them if they dont have access to it, via Session variables. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)<br>
 
first of all, anything you have in HTML can be converted to ASP.&nbsp;&nbsp;Anything.&nbsp;&nbsp;Stylesheets, layers, whatever.<br><br>But if you don't want to you have another option, use ASP to validate the user (via database, server certificate or whatever) and then set a cookie.&nbsp;&nbsp;Then, you can use JavaScript to check the cookie in the HTML page.&nbsp;&nbsp;If the cookie is valid, load the page, else use Javascript to redirect the page to a login page.
 
hehe , he's right any HTML -&gt; ASP, but it gets hard to take a ASP -&gt; HTML<br><br>reason being is an ASP is an HTML , plain and simple, you throw some serverside script into it, and modify it's behavior, but in the end it compiles(better word is interprets) into a HTML when it's finally sent back to the server, so you can throw all the html stuff you want into an ASP. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top