How To Mass Import Whitelists and Blacklists

Questions and answers about how to do stuff
Post Reply
User avatar
shawniverson
Posts: 2643
Joined: 13 Jan 2014 23:30
Location: Rushville, Indiana, USA
Contact:

How To Mass Import Whitelists and Blacklists

Post by shawniverson » 21 Sep 2014 19:40

Mass import script is now available here:

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
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>
Examples:

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
Use the overwrite feature with caution. Always back up prior to executing your mass import.
Version 3.0.2.6 released! Update now to keep your eFa secure!

SupportOU
Posts: 47
Joined: 12 Sep 2016 18:47

Re: How To Mass Import Whitelists and Blacklists

Post by SupportOU » 17 Feb 2017 15:19

Hola!

Is there also a mass export functionality??

Grtz,
Ronald

User avatar
shawniverson
Posts: 2643
Joined: 13 Jan 2014 23:30
Location: Rushville, Indiana, USA
Contact:

Re: How To Mass Import Whitelists and Blacklists

Post by shawniverson » 17 Feb 2017 23:33

Should be pretty straightforward.
Version 3.0.2.6 released! Update now to keep your eFa secure!

User avatar
shawniverson
Posts: 2643
Joined: 13 Jan 2014 23:30
Location: Rushville, Indiana, USA
Contact:

Re: How To Mass Import Whitelists and Blacklists

Post by shawniverson » 17 Feb 2017 23:33

Version 3.0.2.6 released! Update now to keep your eFa secure!

enricosx
Posts: 1
Joined: 29 Mar 2018 11:52

Re: How To Mass Import Whitelists and Blacklists

Post by enricosx » 29 Mar 2018 12:08

thanks for yours hard work.

what is the correct syntax?

domain.com
or
*domain.com
or
*@domain.com

User avatar
shawniverson
Posts: 2643
Joined: 13 Jan 2014 23:30
Location: Rushville, Indiana, USA
Contact:

Re: How To Mass Import Whitelists and Blacklists

Post by shawniverson » 05 Jan 2019 18:48

Wildcards should not be used.
Version 3.0.2.6 released! Update now to keep your eFa secure!

Post Reply