Python 阻止与帕劳的连接?

Python 阻止与帕劳的连接?,python,cmd,packet,Python,Cmd,Packet,有没有办法阻止所有来帕劳/向帕劳发送的数据包(国家:p)?帕劳的领地是.pw 我想用以下方法之一阻止它: 命令提示符命令 蟒蛇 操作系统:Windows 7 64位 Python v.:2.7我在.htaccess文件中找到了这个: order allow,deny # # Block from PALAU (PW) # deny from 103.30.248.0/22 deny from 103.251.132.0/23 deny from 202.124.224.0/20 allow

有没有办法阻止所有来帕劳/向帕劳发送的数据包(国家:p)?帕劳的领地是.pw

我想用以下方法之一阻止它:

  • 命令提示符命令
  • 蟒蛇
操作系统:Windows 7 64位
Python v.:2.7

我在.htaccess文件中找到了这个:

order allow,deny
#
# Block from PALAU (PW)
#
deny from 103.30.248.0/22
deny from 103.251.132.0/23
deny from 202.124.224.0/20
allow from all

显然,这些是帕劳分配的IPv4块。

您从中获得了范围吗?@Kay: