Bloquear Internet Explorer PHP

<?php preg_match('/MSIE (.*?);/', $_SERVER['HTTP_USER_AGENT'], $matches); if(count($matches)<2){ preg_match('/Trident\/\d{1,2}.\d{1,2}; rv:([0-9]*)/', $_SERVER['HTTP_USER_AGENT'], $matches); } if (count($matches) > 1 && $matches[1] <= 11){ header('Location: http://novo.url'); die(); } ?>

1 Response

Bloqueio o acesso do site no navegador Internet Explorer

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.