C
C#•3y ago
Luizdodibre

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
canton7
canton7•3y ago
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?
Luizdodibre
LuizdodibreOP•3y ago
@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.
canton7
canton7•3y ago
That's not an easy thing to do, for obvious reasons.
Cisien
Cisien•3y ago
It would need to be a proxy server that sets the proxy settings for other browsers
canton7
canton7•3y ago
Do you want to make it hard for the user to bypass the block?
Cisien
Cisien•3y ago
Which is pretty shady
Luizdodibre
LuizdodibreOP•3y ago
Ok No
Cisien
Cisien•3y ago
It also breaks https
canton7
canton7•3y ago
Creating a proxy is the way to go then. You'll need to install a root cert as well
Luizdodibre
LuizdodibreOP•3y ago
ok i will look for more thanks šŸ¤
Accord
Accord•3y ago
āœ… This post has been marked as answered!

Did you find this page helpful?