Passive indoor positioning, also known as Device-Free Localization (DFL), has applications such as occupancy sensing, human-computer interaction, fall detection, and many other location-based services in smart buildings. Vision-, infrared-, wireless-based DFL solutions have been widely explored in recent years. They are characterized by respective strengths and weaknesses in terms of the desired accuracy, feasibility in various real-world scenarios, etc. Passive positioning by tracking the footsteps on the floor has been put forward as one of the promising options. This article introduces CapLoc, a floor-based DFL solution that can localize a subject in real-time using capacitive sensing. Experimental results with three individuals walking 39 paths on the CapLoc show that it can detect and localize a single target's footsteps accurately with a median localization error of 0.026 m. The potential for fall detection is also shown with the outlines of various poses of the subject lying upon the floor.