Expiring HTML Code
You can expire the HTML code, so that when a user views the source code it
will not appear. If the user is very savvy, or a hacker, he can retrieve
the code with a key stroke (I think: Alt-R.)
I've seen the following code expire HTML content. This code does not
work at this site. I think the web server must enable the option.
<meta http-equiv="expires" content="Thu, 01-Jan-1970 00:00:01 GMT">
or
<META HTTP-EQUIV=Expires
CONTENT="Mon, 01 Jan 1996 01:01:01 GMT">
Enabling Content Expiration on the Web Server
Warning
(I'm still having problems on my local Win NT server running IIS with content
expiration enabled. I'll share what knowledge I have until I find the
total solution)
IIS (Microsoft Internet Information Server) - NT 4.0 Server w/Option Pack 4
- On the WinNT 4.0 Server that is running IIS (Option Pack 4): Start,
Programs, Windows NT 4.0 Option Pack, Microsoft Internet Information Server,
Internet Service Manager.
- Within the browser, now go to the web server you want to enable content
expiration.
- Next, choose the Web Site.
- With the Web Site highlighted (single click), right click and choose
"Properties".
- Under the tab "HTTP Headers" click on the option:
"Enable Content Expiration".
Expiration Options
- Expire Immediately
- Expire After <your value> (min, hrs, or days)
- Expire on: <you give a date>