1.0.0 β€’ Published 2 years ago

pilotcz-web4ukraine v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

STOP Russian military aggression against Ukraine πŸ‡ΊπŸ‡¦

If you are concerned about the security of the web4ukraine.org project. Use this open source version of the script.

This version is hosted publicly, so you could see what you embed to your site. Script will call free API ipapi.co, which will retrive conuntry of visitor by IP lookup. If user country is RU script redirect user to website web4ukraine with url of visitor page. Website web4ukraine.org redirect user back to your website after 6 seconds.

Script will remember detection result in cookie for one day.

use

<script async src="https://pilotcz.github.io/web4ukraine/index.js"></script>

insted of

<script async src="https://js.web4ukraine.org/"></script>

or install wia npm

npm i pilotcz-web4ukraine

than import module

import web4ukraine from "pilotcz-web4ukraine"

web4ukraine();

Use freely or fork it.

Ukraine flag image source