UndeadDragon
Super Moderator
- Reaction score
- 447
The only bad thing with that snippet would be if someone has the same IP as the admin IP (extremely low chances).
The only bad thing with that snippet would be if someone has the same IP as the admin IP (extremely low chances).
switch(navigator.appName)
{
case "Microsoft Internet Explorer":
// Do stuff
break;
case "Netscape":
// Do other stuff
break;
default:
// Do stuff for other browsers
}
Chrome seems to be detected as Netscape
<?php
header("HTTP/1.0 404 Not Found");
exit;
?>
<script type="text/javascript">
document.getElementById("YOURID").innerHTML="New content, this can contain HTML"; //Change YOURID to the ID of the desired element.
</script>