On ok.ru there is an option to block region when uploading video.
It is not possible to set fixed rules, only with each upload you have to enter the countries to be blocked manually.
If it were possible to set this from within your program it would be a huge help.