Source
#
SourceAll sources are available in the ./resource
directory. You can edit and the resources. The files get checked once a
day by the different modules in the app.
#
Regular ExpressionsRegex expressions are saved in the ./resource/expressions.json
file in JSON format.
Each regex looks like this:
Name: The UNIQUE name of the regular expression.
Expression: The regex
Type: The type of expression. For IPs, it is usually is a ipv4 or ipv6. For IP proxy, its http, https, sock4, sock5.
#
Emails and IPsThe IP files are stored in the ./resource
directory and start with ip_
such as ip_tor
for tor.
You can add sources by adding a new file to ./resource
directory and updating the config.yml
file:
Each file takes in an array of sources:
- Name: The name of the source
- URL: the URL of the source, this can be a text file, ipset or something similar
- Timeout: Time before the link should timeout.
- Feed: An array of feeds
- Score: The score between 0โ5 (with 5 being the highest priority).
- Expression: This part references the regex expression name below.
For each source, you can have multiple feeds with multiple expressions. For example, if a source has both Ipv4 and Ipv6 in it, you can reference different regular expressions.