I came across a Web site whose home page appeared to be designed purposely to
deny access to all but the latest and greatest browsers:
http://www.3com.com
It showed as a blank page in DOS Lynx386 (typical symptom of Javascript, could
also occur if there really is nothing there), htget couldn't get it at all
(unusual). I was able to download the page by making a link in my bookmarks
file,
<a href="http://www.3com.com">http://www.3com.com</a>
then bringing up that file in Lynx386, and typing d on the link.
Here is what resulted, a prime rogues' gallery candidate:
<!-- X-URL: http://www.3com.com/ -->
<!-- Date: Sat, 02 Jun 2001 10:58:07 GMT -->
<BASE HREF="http://www.3com.com/">
<html>
<head>
<!-- *********************************************************************** -->
<!-- SET DOCUMENT TITLE -->
<title>International Splash Page</title>
<!-- *********************************************************************** -->
<!-- *********************************************************************** -->
<!-- SET DOCUMENT META TAGS -->
<meta name="TEMPLATE" content="None"/>
<meta name="CONTENT_OWNER" content=" "/>
<meta name="PROGRAMMER" content=" "/>
<meta name="KEYWORDS" content=""/>
<meta name="DESCRIPTION" content=""/>
<!-- *********************************************************************** -->
<!-- *********************************************************************** -->
<!-- START GLOBAL JAVASCRIPT -- DO NOT CHANGE -->
<!-- *********************************************************************** -->
<script type="text/javascript" language="JavaScript1.1">
<!-- hide script content from old browsers
// If setting environment and preview variables, you should place server side
tags here.
// REMEMBER: You must comment out corresponding variables in NavObjects.js
// Initialize environment
var gintEnvironment = 2;
var gblnPreview = false;
// Initialize paths to stylesheets and javascript directories
var gstrCSSPath = "/stylesheets/common/en_US/";
var gstrJSPath = "/scripts/common/en_US/";
// end hiding -->
</script>
<!-- Load javascript libraries for template initialization -->
<script type="text/javascript" language="JavaScript1.1"
src="http://cache.3com.com/www.3com.com/scripts/common/en_US/start.js">
</script>
<script type="text/javascript" language="JavaScript1.1"
src="http://cache.3com.com/www.3com.com/scripts/common/en_US/Country.js">
</script>
<!-- *********************************************************************** -->
<!-- END GLOBAL JAVASCRIPT -->
<!-- *********************************************************************** -->
<!-- *********************************************************************** -->
<!-- START LOCAL JAVASCRIPT -- TO BE MODIFIED BY IMPLEMENTATION TEAMS -->
<!-- *********************************************************************** -->
<!-- *********************************************************************** -->
<!-- END LOCAL JAVASCRIPT -->
<!-- *********************************************************************** -->
<!-- *********************************************************************** -->
<!-- Redirect to error page for browsers with Javascript turned off -->
<noscript>
</noscript>
<!-- *********************************************************************** -->
</head>
<body>
<script type="text/javascript" language="JavaScript1.1">
<!-- Begin hide from older browsers
/**
* fncCheckCountry
* ===============
*
* Checks country cookie
* If country cookie exists and is set to "US",
* then this function redirects page to US homepage
* This check & corresponding redirect should be modified and expanded for
globalization
*
* Parameters
* ----------
*
* Return value
* ------------
*
*/
function fncCheckCountry()
{
// check if there are any cookies
if (document.cookie.length > 0)
{
var intIndex = document.cookie.indexOf("country=");
// Check if country cookie exists
if (intIndex != -1)
{
strCountry = fncGetCookie(gstrCountryCookie);
if (strCountry == "US")
{
return true;
}
}
}
return false;
}
/**
* fncCheckFlash
* ===============
*
* Checks if client browser supports Flash or not
*
* Parameters
* ----------
*
* Return value
* ------------
*
*/
function fncCheckFlash()
{
// Set flag for flash installed to default value of false
var blnFlashInstalled = false;
// Check for Flash plugin
if (navigator.mimeTypes)
{
if (navigator.mimeTypes["application/x-shockwave-flash"])
{
if
(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)
{
if (navigator.plugins)
{
if (navigator.plugins["Shockwave Flash"])
{
var strFlashDescription =
navigator.plugins["Shockwave Flash"].description;
var intFlashVersion =
parseInt(strFlashDescription.charAt(strFlashDescription.indexOf(".") - 1));
if (intFlashVersion >= 3)
{
blnFlashInstalled = true;
}
}
}
}
}
}
// Check for Flash ActiveX control
if (objClient.ie && objClient.win)
{
document.write('<scr' + 'ipt language="VBScript" \> \n');
document.write('on error resume next \n');
document.write('blnFlashInstalled = (
IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")))\n');
document.write('if ( not blnFlashInstalled ) then blnFlashInstalled =
( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")))\n');
document.write('if ( not blnFlashInstalled ) then blnFlashInstalled =
( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))\n');
document.write('</scr' + 'ipt\> \n');
}
return blnFlashInstalled;
}
/**
* Start javascript code that checks for cookie and flash,
* then redirects to homepage or runs flash movie accordingly
*/
// Check for country cookie
if (fncCheckCountry())
{
// Redirect to US homepage
window.location.replace("/index2.html");
}
else
{
// Check for Flash support
if (fncCheckFlash())
{
// Run 3Com branding movie
var strTemp = "<body bgcolor='#FFFFFF' marginwidth='0'
marginheight='0' topmargin='0' leftmargin='0'
background='/images/common/en_US/spl_bkgrnd.gif'>";
strTemp += "<object
classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'
codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0'
width='778' height='450'>";
strTemp += "<param name='movie'
value='/other/flash/legacy/en_US/branding.swf'>";
strTemp += "<param name='loop' value='false'>";
strTemp += "<param name='quality' value='high'>";
strTemp += "<param name='scale' value='noborder'>";
strTemp += "<param name='salign' value='LT'>";
strTemp += "<param name='bgcolor' value='#FFFFFF'>";
strTemp += "<embed src='/other/flash/legacy/en_US/branding.swf'
loop='false' quality='high' scale='noborder' salign='LT' bgcolor='#FFFFFF' width='778'
height='450' type='application/x-shockwave-flash'
pluginpage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'>";
strTemp += "</embed>";
strTemp += "</object>";
document.write(strTemp);
}
else
{
// Redirect to Select Country page
window.location.replace("/selectcountry.html");
}
}
//end hide from older browsers-->
</script>
</body>
</html>