{"id":2150,"date":"2022-08-30T15:22:28","date_gmt":"2022-08-30T15:22:28","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/01\/04\/is-there-a-way-to-block-my-website-in-ie-and-let-it-work-in-all-other-browsers-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:22:28","modified_gmt":"2022-08-30T15:22:28","slug":"is-there-a-way-to-block-my-website-in-ie-and-let-it-work-in-all-other-browsers-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/is-there-a-way-to-block-my-website-in-ie-and-let-it-work-in-all-other-browsers-collection-of-common-programming-errors\/","title":{"rendered":"Is there a way to block my website in IE and let it work in all other browsers-Collection of common programming errors"},"content":{"rendered":"<p>basically I have this code on my website that IE seems to have a lot of trouble with and keeps crashing and stuff, The good news is there is a 99.9% chance that the users that will be on my site will not be using IE, so I want to make my website available to all other browsers except IE. If they are using IE I just want a message saying something like &#8220;Unfortunately this website is not available in this browser&#8221; or something like that. Can I do this, if so, How?, im guessing JavaScript, right?<\/p>\n<ol>\n<li>\n<p>You can wrap your page content in conditional comments.<\/p>\n<p>http:\/\/msdn.microsoft.com\/en-us\/library\/ms537512%28v=vs.85%29.aspx<\/p>\n<pre><code>\n    \n\n    \n    <br \/>The page content for all other browsers.<br \/><br \/>\n    \n\n<\/code><\/pre>\n<\/li>\n<li>\n<p>I would really suggest to fix what&#8217;s broken instead. Otherwise, I suggest conditional comments(but rather not the whole body, just to refresh to a different website)<\/p>\n<\/li>\n<li>\n<p>Can be done in pure HTML:<\/p>\n<pre><code>\n<\/code><\/pre>\n<\/li>\n<li>\n<p>Do it on the server side using the <code>User-agent<\/code> request header, that way you don&#8217;t have to send all your page or could even send an alternate version.<\/p>\n<\/li>\n<li>\n<p>Do nothing!<\/p>\n<p>Just wait a year or tow and Microsoft will give you this for free \ud83d\ude09<\/p>\n<\/li>\n<\/ol>\n<p id=\"rop\"><small>Originally posted 2014-01-04 00:52:45. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>basically I have this code on my website that IE seems to have a lot of trouble with and keeps crashing and stuff, The good news is there is a 99.9% chance that the users that will be on my site will not be using IE, so I want to make my website available to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2150","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2150"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2150\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}