hello, I'm evaluating web servers for a project I'm working on, and openresty looks like a good candidate.
my first question about using it would be how to properly cache
large lists of IP addresses to be blocked from accessing the
server. I'm doing this for abuse/bot prevention, in addition to a
strict robots.txt and user-agent
for context, I'm experimenting with access_by_lua_file
for preventing access by setting ngx.status
and then redirecting straight to an @error
named location, which itself uses content_by_lua_file
(but that's not really important).
I want to use this list for blocking IPs: https://github.com/stamparm/ipsum
obviously, that would involve a couple moving parts:
I need help mainly with the second one. I'm not sure how to cache such a large thing, update it properly or anything like that. sure I could probably get something to work, but there's probably a good way of doing it that I wouldn't be able to figure out on my own.
note that I'm not interested in using any other services or proxies (fail2ban, CloudFlare, etc.), as I want blocked IPs to hit the @error named location.
please let me know if you have any ideas or need any additional
You received this message because you are subscribed to the Google Groups "openresty-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openresty-en...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openresty-en/2335e72b-18a0-01fa-589c-4f2ea1d5814f%40aaathats3as.com.