FN-FAL113 / cs2-server-picker

A portable and lightweight server picker windows app for Counter Strike 2!
GNU General Public License v3.0
200 stars 12 forks source link

Request: option "use hosts file for ip blocking" #16

Closed rainbowjose closed 12 months ago

rainbowjose commented 1 year ago

Hi. I don't know what mechanism is used now to block IP, I assume it's firewall mechanisms. But many people disable firewall and many other windows mechanisms, so these methods may not work. I suggest adding blocking options through C:/Windows/System32/drivers/etc/hosts.

rainbowjose commented 1 year ago

And add "donate" button :D

FN-FAL113 commented 1 year ago

Hi. I don't know what mechanism is used now to block IP, I assume it's firewall mechanisms. But many people disable firewall and many other windows mechanisms, so these methods may not work. I suggest adding blocking options through C:/Windows/System32/drivers/etc/hosts.

Will test this out! Thank you for the feedback. Will get back here with any progress hopefully its viable with vb.net. Currently it uses firewall to add entries that will be blocked.

FN-FAL113 commented 1 year ago

And add "donate" button :D

Will do! Thank you

FN-FAL113 commented 1 year ago

Hi. I don't know what mechanism is used now to block IP, I assume it's firewall mechanisms. But many people disable firewall and many other windows mechanisms, so these methods may not work. I suggest adding blocking options through C:/Windows/System32/drivers/etc/hosts.

Hi unfortunately, upon my research Windows Host files are used for domain names, before the client try to access a domain/website, windows checks the host file for entries that are being resolved through a dns server (if an entry IP is overriden then it will not be resolved). Since cs2 servers are using ip addresses already, it doesn't need a dns server and is not applicable to use host files.

FN-FAL113 commented 1 year ago

Will do another research since host files are limited to domain names only.

rainbowjose commented 1 year ago

Sad! Thank you.