How To Prevent Spoofing Attack Using Liveness Detection?

What is a spoofing attack? A spoofing attack is a theft attempt by a forbidding party to gain illegitimate access..