How to block a website in csharp? [Closed] [Answered]
I'm creating an app and I want to block specific websites
if possible maybe replace the blocked site with another one. (antivirus style)
11 Replies
Block in what way? Is the user using your app to browse the Internet? Or are they using their normal browser and you app needs to sit in the background and sniff every request? Or something else?
@canton7 Block when the user is using any browser and accessing a blocked website. I think it would be better to leave it in the background.
That's not an easy thing to do, for obvious reasons.
It would need to be a proxy server that sets the proxy settings for other browsers
Do you want to make it hard for the user to bypass the block?
Which is pretty shady
Ok
No
It also breaks https
Creating a proxy is the way to go then. You'll need to install a root cert as well
ok i will look for more thanks
š¤
ā
This post has been marked as answered!