Ajax pages

You are asking questions that I cannot answer cause my site is still local…nothing is uploaded to a live server yet.

Nonetheless…is it possible to test things locally and use htaccess to deny access to these files?