Returns true if visitor of your web resource is russian. Do what you want with him, I don't care.
Zero dependency, lightweight detector of russian clients (by different browser data and ip).
Install with npm:
$ npm i -S russians-detector
import { isRussian, isRussianByIP } from 'russians-detector';
// or
const { isRussian, isRussianByIP } = require('russians-detector');
// or
const isRussian = require('russians-detector').isRussian;
const isRussianByIP = require('russians-detector').isRussianByIP;
isRussian(); // => true | false
isRussianByIP().then((result) => result); // => true | false | undefined*
// * – client blocks tracking or server response error
Check if you are russian according to my script.
Russians do not deserve to enjoy the benefits of the civilized democratic world. Not anymore.
So you can show them different content, or nothing at all. It's up to you.
Russia has been waging wars and genocide against peaceful peoples for centuries. Russia is a terrorist state that sneezes at the freedom and sovereignty of others. And what about the russians themselves? They do not protest, they do not oppose the dictatorial regime. Moreover, they support every war and every murder. This is what is happening today in relation to Ukraine and Ukrainians. This is what happened earlier in relation to Moldova and Georgia. Moscow imperialism must disappear!
Copyright © 2023, Bohdan Yatsenko. Released under the MIT License.