This post is explain to allow WHM login  specific IP Addresses and denied others.

Login into your WHM Panel and search "Host Access Control"

You want to specify the below details as you need it.

Daemon :     Choose the Cpaneld process
Access List : Enter IP Address
Action :        Allow / Deny
Comment :  Your comments for identification

Finally, click on "Save Host Access List"