https://github.com/psephopaiktes/ie-blocker
Block your site when user use Internet Explorer.
https://github.com/psephopaiktes/ie-blocker
Last synced: 3 months ago
JSON representation
Block your site when user use Internet Explorer.
- Host: GitHub
- URL: https://github.com/psephopaiktes/ie-blocker
- Owner: psephopaiktes
- Created: 2020-05-08T09:39:04.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-05T09:21:29.000Z (over 5 years ago)
- Last Synced: 2025-12-13T04:00:25.451Z (6 months ago)
- Size: 57.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# IE-blocker
Webページに Internet Explorer でアクセスされると、サイトをブロックできます。
## 使い方
HTMLファイルのHeadタグ内に以下のコードを貼り付けます。
`https://example.com` の部分は、IE以外のブラウザでアクセスされたときのリダイレクト先です。
あなたのサイトのURLに置き換えるか、省略してください。
```
if ( document.documentMode ) {
location.href = 'https://psephopaiktes.github.io/IE-blocker/?https://example.com';
}
```
もしくは、以下のようにjsファイルを読み込みます。
```
```