https://raw.githubusercontent.com/E-F-A ... timport.sh
To download:
Code: Select all
wget https://raw.githubusercontent.com/E-F-A/v3/master/tools/listimport.sh
chmod ugo+x userimport.sh
Examples:EFA Mass Whitelist and Blacklist Import Help
listimport.sh Copyright (C) 2014 efa-project.org
Licened GNU GPL v3. This program comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it under
certain conditions. See http://www.gnu.org/licenses for more details
Usage: listimport.sh -f mylist -b|-w [-a|-o [-q]]
-f Whitelist or Blacklist File
-a append to existing list
-b File is a Blacklist
-q force overwrite database tables without prompting
-o overwrite existing list
-w File is a Whitelist
Whitelist and Blacklist is newline separated list with each
line in either of the following formats:
<From Address Domain or IP>, <To Address Domain or IP>
<From Address Domain or IP>
Code: Select all
sudo /path/to/listimport.sh -f /path/to/mywhitelist.txt -a -w
Code: Select all
sudo /path/to/listimport.sh -f /path/to/myblacklist.txt -a -b