Nah, @Marc Stridgen this is for registration. Chinese bots never register, they just flood the server with request and do not respect robots.txt or any rules. Download all photos, everything.
They don't care to register, they just flood it as guests.
Yes, they are a plague. For the moment my forum works ok, but I am too interested in finding a proper solution to this disease. So please come back and post if you find anything.
To be honest, my server was swamped until I did this:
Now even they are hitting me pretty hard seems that the hardware is handling it well, so I am waiting a better solution to completely ban the chinese plague out of my server.
I host my server with Hetzner. They have a very basic firewall and picked up from logs the bytedance ip addresses (which were not so many) and blocked them in the hetzner firewall. I am not so happy with this solution but as a temporary step it works for now. I need to really install a good firewall with ip geocoding and everything.
That would be odd, to apply AND/OR to words but exclude tags from the same rule. I hope it is a "bug" not a "feature".
community/forums/search/?&tags=tag1,tag2&search_and_or=and
I did not change any query string manually. What are you saying? Are you saying it is a bug in here:
And search ignores ALL or ANY setting in this search page? The ACP setting should be for general queries as default search for multiple terms, but I used THIS page, where it is clearly specified ANY or ALL (AND or OR).
Well, seems not to be working correctly:
I want to search with AND for both tags:
community/forums/search/?&tags=tag1,tag2&search_and_or=and
and it gives me back resuts with OR, either tag1, either tag2, but I wanted only if it has both.
Is it possible browse the community using multiple tags?
community/tags/tag1+tag2/
Something like this, adding more tags to the search?
Nevermind! Found it!
/forums/search/?&tags=tag1,tag2&search_and_or=or&sortby=relevancy
Just so I don't leave the situation w/o a resolution.
This was in my apache2 server configuration file.
# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# MaxRequestWorkers: maximum number of server processes allowed to start
# MaxConnectionsPerChild: maximum number of requests a server process serves
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxRequestWorkers 150
MaxConnectionsPerChild 0
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
after I dramatically modified them to this:
# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# MaxRequestWorkers: maximum number of server processes allowed to start
# MaxConnectionsPerChild: maximum number of requests a server process serves
<IfModule mpm_prefork_module>
StartServers 20
MinSpareServers 20
MaxSpareServers 40
MaxRequestWorkers 1500
MaxConnectionsPerChild 1000
ServerLimit 2000
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Server went back to blazingly fast.
In the end found out bytedance/bytespider chinese bots were killing the server w/o pretty much no warning or errors. In the end I have found a MaxRequestWorkers too low error.
Then I banned from a firewall bytedance/bytespider bots.
And now if I could only ban yandex bots I'd be a happy camper.