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!
Want results from more Discord servers?
Add your server