Pages

remove ports 80,443,53

Saturday 18 January 2014
steps:
1.copy & paste the below code into notepad.
2.save file as file name.bat.
3.run file as run as administrator by right clicking on file.

code:
@echo off

Echo "Press ANY KEY to REMOVE ports 80 TCP (HTTP) / 443 TCP (HTTPSecure) / 53 UDP (DNS)"

pause

"%SYSTEMROOT%\system32\netsh" advfirewall firewall add rule name="HTTP 80" dir=in action=allow protocol=TCP localport=80
Echo "80 TCP Open."

"%SYSTEMROOT%\system32\netsh" advfirewall firewall add rule name="HTTPS 443" dir=in action=allow protocol=TCP localport=443
ECHO "443 TCP Open."

"%SYSTEMROOT%\system32\netsh" advfirewall firewall add rule name="DNS 53" dir=in action=allow protocol=UDP localport=53
ECHO "53 UDP Open."

pause

above codes which removes the ports 80,443,53

No comments:

Post a Comment