On 12/8/20 6:17 PM, the...@sys-concept.com wrote:
so it might be easier to for apache, am I correct?

Apache vs iptables is somewhat a preference.

Though with Apache, chances are good that you would need to ban in multiple locations, possibly multiple VHOSTs or server wide. (See more below.)

Either way, the apache would have to access the database where all the codes are stored or .htaccess file. Or is it easier if I incorporate the IP addressed into main .config file (in apache)?

I personally prefer to put things in files that are included directly from the main Apache config file in lieu of .htaccess files. This harks back to a time when checking for a .htaccess file per page request had measurable impact. It just seemed easier to put the content in the main config file and skip looking for and processing .htaccess files on each request.

I don't know what would be more efficient, storing the data somewhere outside of Apache and having it check that -or- putting the data in the config / .htaccess file(s).



--
Grant. . . .
unix || die

Reply via email to