WhatsApp offers a lock feature that secures access to the messaging app by using your phone's biometric sensor.
You can easily hide your online status on WhatsApp by changing or disabling your "Last Seen" setting in the app.