So, I found a work around. Its for windows 10 but can work for windows 7 too.
Visit here:
https://www.tenforums.com/tutorials/3562-add-remove-wireless-network-filter-windows-10-a.html
Use option 2 to allow all your own wifi networks, then use option 4 to block all non-allowed networks.
You can use option 5 to undo option 4.