Helpping to blocking traffic

Hello everybody how are you
I want to write some code to blocks traffic to come from port
like a simple firewall .
would you help me please .
Please understand that C++ is not a language designed for the creation of such programs. To make that sort of program involves interaction with the operation system, device drivers, which is rather difficult. I suggest you start learning some programming in order to have a valid idea of what programming is.

If you need a simple firewall, I suggest downloading one of the many free ones online.

-BlueBerry
thank you for your reply .
actually I want some thing to block packets and I thought to block ports is something benefit .
is there any other idea to block traffic .
You can use the hosts file if you want to block traffic coming from the computer.
http://en.wikipedia.org/wiki/Hosts_%28file%29

Other then that, you should look into getting a firewall.

If you have a router, most of them also have inbuilt firewall capability.
Topic archived. No new replies allowed.