Whitelisting itself is not a great security measure. With whitelisting, you are trusting the network(s) behind those IPs to be 100% secure, without any way to obtain a physical connection (a spare hot jack somewhere), wireless connection (including IOT devices that typically have weak default passwords), VPN access (lack of 2FA/MFA, etc), able to block all Remote Access Trojans, etc.
Very few networks get all of this security correct, so any weakness in that network is also effectively a weakness in your whitelisted server/firewall. 2FA/MFA is the "gold standard" for modern services that need to be secured, as it prevents most types of attacks (except targeted attacks against a specific person), since users of these techs have something physical to use in addition to a password.
I wouldn't go so far as to say that whitelisting is "obsolete", as it does offer some limited protection against attacks. It's a matter of risk assessment. I would not use whitelisting as the only line of defense for something as valuable as banking or other ecommerce systems, since high value systems are prime targets for attacks, but on the other hand, whitelisting might be perfectly serviceable for your personal blog on a server you run yourself.