I have a file that has a list of "bad" IP addresses. I want to import this file of bad IP addresses into my
.htaccess file to deny access via apache.
I want to automate this process using
sed. How would I go about doing this?
You can make
Why sed? Use fail2ban. It can be configured to work with many different services, including Apache.