lucabarelli
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Performance Pack] PHP7.2-FPM errorOk, I’ll be trying it right now and will keep you updated.
Thanks,– Luca
Hi Bjoern,
thank you for your work and for this wonderful plugin.
I’ve been using it a lot and has always pleased me.
It’s not common to see such an active developer.
Happy to be of help.
Cheers,– Luca
Hi Bjoern,
thank you very much!!!I have to say that, without “regenerating”, images won’t show in sizes different than the uploaded one. It’s an expected behavior, am I right?
Hi @sunny454,
got it and thank you for your reply!
Forum: Plugins
In reply to: [Remove Yoast SEO Comments] Plugin conflict with Yoast 5.8My site has been offline for a good afternoon thanks to the shady Dutch.
Very bad business practice, Yoast. Very bad.Thank you nintechnet!
By the way, it seems that the real problem was that.htninja
was not owned by apache group so it was not usable. Spotted, corrected and now it seems that it’s working again.
Sorry for the trouble but still you’ve taught me a lot about your plugin.
Cheers,– Luca
Great and thank you!
One more thing please. Permissions for.htninja
can be set to0440
?Ok, I’ve commented out the CF lines and checked that the IP is correct and that there’re no warnings.
I’ve also modified the functions in.htninja
accordingly.
Now what I need to know is whether the notation is right or not since the array function uses"HTTP_CF_CONNECTING_IP"
(ie double quotes)if ( in_array( $_SERVER["HTTP_CF_CONNECTING_IP"], $ip_array_no ) ) { return 'BLOCK'; // blacklist }
whilst this one uses
'HTTP_CF_CONNECTING_IP'
(ie single quotes)foreach ( $cidr_array_no as $cidr ) { // Check IP vs CIDR: if ( ipCIDRCheck( $_SERVER['HTTP_CF_CONNECTING_IP'], $cidr ) ) { // IP matches, block it: return 'BLOCK'; } }
Kindly let me know ??
– Luca
- This reply was modified 7 years ago by lucabarelli.
Oh wow, so you mean that I’ve got to disable this
// Users of Cloudflare CDN: if (! empty($_SERVER["HTTP_CF_CONNECTING_IP"]) && filter_var($_SERVER["HTTP_CF_CONNECTING_IP"], FILTER_VALIDATE_IP) ) { $_SERVER["REMOTE_ADDR"] = $_SERVER["HTTP_CF_CONNECTING_IP"]; }
and then update all the other functions?
Kindly help me clarify this.
Thank you!- This reply was modified 7 years ago by lucabarelli. Reason: sorry, messed up
In fact I’m behind Cloudflare but I’m using the code you’ve provided me in
.htninja
:if (! empty($_SERVER["HTTP_CF_CONNECTING_IP"]) && filter_var($_SERVER["HTTP_CF_CONNECTING_IP"], FILTER_VALIDATE_IP) ) { $_SERVER["REMOTE_ADDR"] = $_SERVER["HTTP_CF_CONNECTING_IP"]; }
I’ve also
libapache2-mod-cloudflare
up and running and it should be working.
I’m getting attacks from IPs owned by web hosting companies and using CIDRs should ease the pain.
Any ideas, please?Hi nintechnet,
sorry it was just a typo. It is indeed a 4 sets of numbers like'185.81.156.0/22',
.
Can you please help me spot why it’s not working?– Luca
@nintechnet @ducksportsfan
Great job!Hi nintechnet,
ok I get it. Am going to open another thread about the CIDR notation since it’s not workingHi David,
sorry but have been very busy lately. I’ll try to debug the whole demo site this weekend and see whether I can pinpoint the issue.
Will keep you updated.
Cheers,– Luca
Hi David,
I’ve manually created the files (got regenerate thumbs) to no avail. At this point I presume there’s something wrong on my side.
I’ll get back on you as soon as I’ll have more info.
Thank you for your time!
Cheers,– Luca