TOOLS.PERVII.COM

FreeBSD firewall.conf
Deny - If you want to prevent users from China to visit your server.
Allow - If you want to allow users in Europe to visit your server.
Required settings you specify in the file firewall.conf
Possible ways:
/etc/rc.conf
firewall_enable="Yes"
firewall_type="/etc/firewall.conf"

/etc/rc.d/ipfw start

Problems:
ipfw -flush
ipfw show
65535 0 0 deny ip from any to any
The solution:
/boot/loader.conf
net.inet.ip.fw.default_to_accept=1
Allow, Deny by country for FreeBSD firewall.conf (Update: 12 Nov. 2019)
Country:
Permission:
Example of the result firewall.conf - China
Users from China will not be able to visit your server.

add deny ip from 1.0.1.0/24 to any in
add deny ip from 1.0.2.0/23 to any in
add deny ip from 1.0.8.0/21 to any in
add deny ip from 1.0.32.0/19 to any in
add deny ip from 1.1.0.0/24 to any in
add deny ip from 1.1.2.0/23 to any in
add deny ip from 1.1.4.0/22 to any in
add deny ip from 1.1.8.0/21 to any in
add deny ip from 1.1.16.0/20 to any in
add deny ip from 1.1.32.0/19 to any in
add deny ip from 1.2.0.0/23 to any in
add deny ip from 1.2.2.0/24 to any in
add allow ip from any to any
Online PHP functions
Encoding strings
base64_encode
base64_decode
rawurlencode
rawurldecode
urlencode
urldecode
Encryption
md5
sha1
Length of string
strlen
mb_strlen
crc32
Processing strings
nl2br
strrev
Get all headers
exif_read_data
Converts (IPv4)
ip2long
long2ip
CIDR
IPv4 CIDR calculator
IPv4 CIDR to Host Range
IPv6 CIDR to Host Range
ACL - Access Control List
IP Allow, Deny .htaccess
IP Allow, Deny, Reset FreeBSD
uTorrent IPfilter.dat by country