The making of this site is in progress,do check it once in a week for new material.

M$IE - Access Denied - Essay Written By KRAS|

Have you ever been denied access to a page cos you are using Internet Explorer.If you did shame on you for using M$IE.Anyway I'm gonna tell you how this is done so when you publish your page on the net you will not allow these micro$oft lamers on your site.It all can be done with JavaScript.JavaScript in this case is a good way to do it,but not the best cos JavaScript can be disabled in Internet Explorer, but do you really think that those m$ lamers would know howto do that.The best probably way to do it is with SSI(Server Side Includes) but I'm gonna focus on JavaScript for now.Java Script is not that hard at all compared to C or Java.You dont even have to declare the type of the variable to use it.In order to disable M$IE access from your web page you just need only a few lines of code,so here there are:
	<script language="JavaScript">
	<!--
	if (navigator.appName == "Microsoft Internet Explorer")
	{alert("You are using M$IE.Shame on you"); 
	location.href="reject.htm";}
	//-->
	</script>
Since this is my first essay im gonna explain everything,turning this essay into a little bit of JavaScript for Dummies.
The <script> tag tells the tells the browser that folowing text till the closing </script> tag is a script,easy ain't it and pretty self explanatory too is the language="JavaScript".This will work without language="JavaScript", but anyway always include it cos there are other languages that you can write scripts in like VB.the "!--" at the beginning and the "//-->" are used cos there are text browsers like Lynx and older browser that don't support JavaScript(older doesn't mean worser,hell no) and these are used for comments so these browsers ignore the text between them.Now let's explain what this navigator.appName is:navigator is an Object in JavaScript and appName is a property of this particular object.There are other properties for this object too like appVersion etc... and there are other objects like document,window etc.... navigator.appName returns the name of the browser that you are using and if it is Microsoft Internet Explorer it follows the code between {}.What alert does is that a nice box pops up telling you the text inside "".Location is an object just like navigator and href is a property for this object just like appName was for navigator,what it does is that it changes the current location to the one in the "" and it's the one that holds some information why you are not supposed to use M$IE.Thats it, of course you can add more code to your liking.
A better way to accomplish this goal is trough SSI(Server Side Includes).I'll not go trough a great details cos most the Web hosting providers don't allow'em on their servers cos a SSI page needs to be looked for in it for SSI commands by the server which is slowing the server down and they present some security risks cos with'em you are able to execute shell commands, whatever...here is the code:
     #!/usr/bin/perl
     @user_agent = split(/\//,$ENV{'HTTP_USER_AGENT'});
     if ($user_agent[0] eq "Mircosoft Internet Explorer"){
     print "Location: http://yorserver/reject.htm\n\n";
     }
     else{
     print "Location: http://yourserver/main.htm\n\n";
     }

I haven't tested the above code with the "Microsot Internet Explorer" string but with "Lynx" just for fun,but as it is probably the best browser it will be kinda stupid to reject it,whatever... As far as I know this perl script can be beaten too,you can use a resource editor to change the description of the iexplore.exe file from "Microsoft Internet Explorer" to the "Lamest Browser" and you can browse with it.

KRAS| 1999 krasi@freeshell.org