File format with a list of URLs to block: [Документация VAS Experts]

This is an old revision of the document!


The dictionary that holds a list of resources to block takes two steps. First, one creates a text file with a list of resources. Second, one converts this file into an internal format by means of a special utility.

File format with a list of URLs to block:

Each line contains one URL (with no http:// prefix). For example:

1magehut.com/users.php?act=gallery&gal=81&page=4
3dmx.net

To convert into the internal format1):

cat my_url_list.txt|url2dic my_url_list.dic

File format with a list of names to block in SSL certificates:

Each line contains one name. For example:

*.facebook.com
www.vasexperts.ru

To convert into the internal format2):

cat my_cn_list.txt|url2dic my_cn_list.dic

File format with a list of IP addresses to block:

Each line contains one IP then space then the port's number:

78.47.115.34 443
95.211.6.92 443

To convert into the internal format:

cat my_ip_list.txt|ip2bin my_ip_list.bin
1)
Old versions of the converter place empty lines in this file into the list to block. This leads to blocking of all sites. Update utilities!