You are trying to implement a client side check that will not be possible without installation of some client side mod. If you are going to require all of your users to have to install a mod to get on your server, you will drastically reduce the number of possible players are many will not want to install the mod, or not want to take the time to do so.
Also since all client side mods are 100% subject to being manipulated this is a completely insecure way to confirm any "validation". I would highly suggest that you try to better define what your real target blocks are and then consider implementing server side mods that help to prevent the problems you are targeting. For example plugins like, Grief Prevention, or LogBlock will help prevent/undo griefing. As plugins like NoCheatPlus or AntiCheat will help to prevent/counter issues such as fast dig, flying, clipping, etc.