interconnectit / Search-Replace-DB

This script was made to aid the process of migrating PHP and MySQL based websites. Works with most common CMSes.
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
GNU General Public License v3.0
4k stars 855 forks source link

Issue with Apache mod_evasive #234

Closed marcochiesi closed 4 years ago

marcochiesi commented 6 years ago

I was trying to perform a Search-Replace but I was always getting an Ajax error after few tables were processed (even with dry-run), so I decided to track down the issue and I found that the cause was related to mod_evasive, which is an Apache module aimed to mitigate DoS attacks. This means that the sequence of Ajax calls made by the Search-Replace-DB tool was (mistakenly) considered a DoS attack and thus blocked. I could configure mod_evasive with less restrictive parameters, but that would consist in a reduction of the protection as well, so I would prefer to handle this conflict on the client site by reducing the impact of the calls slowing them down. I'd like to ask if you could add (configurable?) delay between consequent Ajax calls. Thank you!

gianluigi-icit commented 4 years ago

hello, in this case it's better to use the cli version, server setup can be very complex and we cannot handle every case