Windows filtering platform - Not able to block Google

I have referred the Windows Filtering Platform (https://github.com/microsoft/Windows-driver-samples/tree/main/network/trans/inspect) and try to block Google site. But the problem is IP is changed frequently and not able to identify a particular IP.

Please help on this to figure out for Google and GMail.

Thanks in advance.

You can also lookup DNS for Google and GMail frequently and add the IPs to block.

1 Like

@Sooncheol_Won said:
You can also lookup DNS for Google and GMail frequently and add the IPs to block.

Can you recommend any program?

What he is suggesting is that instead of trying to block the connection to google.com, filter DNS query packets (UDP port 53) if they are for google.com. The browser or other client, won’t be able to resolve the IP address and can’t make the connection. A user who knows the exact IP address will still be able to make a connection, but hardly anything will work since every link (including those in scripts) will use the DNS name and all of those connections will fail.

I’m sure that there are products available that can do this. try googling to find one