Hello. I have a problem - some application sends too many queries to my API (works by http). I have forbidden it in php and in .htaccess:
RewriteRule ^.*$ - [F,L])```
But it doesn't help. So my apache2/access.log has very-very big size and it leads to the lack of free space on server.
Can I ban this query in Apache and how can I do it?
UPDATE.
Queries are sent from the different ip-addresses and rarely (from one ip), so banning them by IP or by time limit won't help...
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
You’ll need to set RewriteEngine on before it will work. I would write it like this:
RewriteEngine on
RewriteCond %{QUERY_STRING} ^(.*)23e8a4dccbcfae76f73292fd5cc13f84(.*)$
RewriteRule .* - [F]
Thank you, but I needed block this URL in iptables. If somebody has the same problem, read this article http://spamcleaner.org/en/misc/w00tw00t.html
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.