@NN1990 Thanks for posting in our Q&A.
From intune's point of view, there is no method to make it. What intune can do is based on windows CSPs provided. Based on my research, I didn't find that there is such windows CSP can block access to open wifi.
Let's wait someone else to share more information from other angles.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.