Whitelisted Services list optimization
-
Hi,
I found there is an internal IP whitelist for the well known services like Wordfence itself, Sucuri, Uptimerobot, Facebook etc.
There are 507 subnets on this list currently and it is processed 3 times in my case = 1521 IP checks. It takes around 60ms on my testing (not very powerful) VPS and so it is one of the most demanding operations on my site.
I realized it is possible to merge many smaller CIDR subnets to the bigger one. I tried it with https://github.com/grelleum/supernets and the result is the same list, but it has only 203 lines = 2.5x better performace.
The results:
https://gist.github.com/lynt-smitka/95c532b279f7e58e1696703c0025c4d7It would be great to implement it.
- The topic ‘Whitelisted Services list optimization’ is closed to new replies.