I don't want to allow people to go directly to the pages in the AJAX directory but they still need to be served from their parent page. I have tried numerous .htaccess lines but they all block it from the main page as well. to sum up, I dont want people to be able to type in http://www.mysite.com/AJAX/page1.html and view it but page1.html needs to be brought into its parent page via AJAX.
<LIMIT GET POST>
Order deny, allow
deny from all
</LIMIT>
blocks all access
Can you define a flag in the parent file define('IS_IN_SCRIPT',1);
and check for it in the AJAX pages? will that work with AJAX pages or only PHP includes?