Score:1

Nginx & Dynamic banlist

in flag

I have block list of IP addresses in a file. How can I make this file a ban list for Nginx? This ban list resets every 5 minutes, it's a dynamic list.

djdomi avatar
za flag
i would not suggest to reload nginx every 5 minutes, imho its a vad practice. if you really need such frequency i think only nginx plus will be a solution
Score:1
jp flag

Create a script which converts the file into a list of Deny X.X.X.X;. Add include directive with this file into your nginx config. Run the script when the ban list is updated and reload nginx.

Alternatively, use a commercial solution NGINX Plus Dynamic Denylisting of IP Addresses

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.