Just plug it in as the Density Shader input, and set distances as-needed. You can temporarily plug the Distance Shader into your surface shader network to better visualize the area of coverage, too. The attached example will give you rocks at a distance but not closer-up; you can reverse the colors if you want to mask out objects further in the distance instead.
- Oshyan