I am currently developing an Apache module and after parsing POST data from a request to another page, I make an internal redirect to a PHP page that makes some final operations and echoes out an HTML meta refresh tag. This in turn makes the browser refresh, requesting the first page.
The problem is, I don't want explicit outside requests to be able to access that page, but let the module do the internal redirect successfully.
Is there a way I can do this? I have tried using:
<Directory /var/www/cc_jnlp/php/>
<Files session_init.php>
Order allow,deny
Deny from all
</Files>
</Directory>
...but that just blocks all requests, regardless of whether it was or not an internal redirect.