rkn-checker - Script for checking domains for banning by RKN

Table of Contents

This post was waiting for 3 years, 2 years the script was on github, tonight I decided to update it to the current one and write about it in the blog, with instructions on how to run it. Such solutions are interesting, first of all, webam working with gembling and betting, not to pour dear Russians on the banned mirror.

Download rkn-checker

Install rkn-checker

To receive alerts about blocking you should already have a bot created in Telegram. Google will tell you how to do it better than me. Connect via ssh to the server, in your home directory (or wherever you like, personally I always have a soft directory in my home where I store different scripts) run this:

git clone https://github.com/Banochkin/rkn-checker.git

The rkn-checker folder will appear, go there and immediately give the script execution rights:

chmod +x rkn-checker.sh

In config settings.conf in the first line enter your bot token, in the second line - your user id in Telegram (this is also easy to google). In sites.txt you need to enter domains, 1 per line, without http\https and other things, for example:

site1.com
site2.com
site3.com

For the test, let’s run the checker manually:

./rkn-checker.sh

The result will be something like this:

rkn-checker

And on Telegram:

rkn-checker

All that’s left is to add the script to cron with the desired run frequency, that’s it. Type:

crontab -e.

And at the bottom of the file you’re editing, paste:

0 0 * * * /root/soft/rkn-checker/rkn-checker.sh > /dev/null 2>&1

To run the script once a day. The advantages of my solution over free site monitoring services is that it’s closed. No one but you can see the sites being checked for banning. If you think the creators of services do not look at logs with checks for interesting sites - why?