On 5/30/21 1:27 AM, [email protected] wrote:
> 
> My attempt to block these does not appear to be working.  Suggestions
> please?
> 
>> RewriteEngine on
>> RewriteCond %{REQUEST_METHOD} POST
>> RewriteCond "%{HTTP_USER_AGENT}" "^axios"
>> RewriteRule ^/mailman//subscribe/ - [F]


I'm not sure why the above doesn't work assuming that you have
mod_rewrite enabled. You might try dropping the POST condition and
changing the rule to just

RewriteRule ^/mailman/ - [F]

I doubt you get any legitimate 'non-crawler' type requests from axios
agents.

-- 
Mark Sapiro <[email protected]>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan
------------------------------------------------------
Mailman-Users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/[email protected]/
    https://mail.python.org/archives/list/[email protected]/

Reply via email to