After some testing, I was able to generate a working script to block this, and it wasn't difficult.
I posted it here and explained how it works.
https://gist.github.com/jesussuarz/1b3d93236fc9bae113076d3bb3ee7a84