How to allow access to a file for a specific domain and block for other domain in Apache2.conf? <p>I have blocked the access to a file in apache configuration by editing the .conf file. For now, only localhost can access the files. Is there a way where i can access the files if it requested from a specific domain name or if requested by query string parameters.</p> <p>Apache.conf - </p> <blockquote> <p> Order allow,deny Allow from 127.0.0.1 </p> </blockquote>