You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Václav Slováček <re...@wessan.net> on 2004/08/18 21:19:39 UTC

[users@httpd] .thaccess

hi,

i would like to ask what happens when a user is downloading a large file from apache server and i modify (using PHP script) the .htaccess file affecting the folder where is the file beeing downloaded by the user. For example i rewrite the list of ips allowed to access the file/folder and i remove the user's ip. Will the tranfer be interrupted or not? If not, is there any other way how to interupt the transfer? Thank you for help.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] .thaccess

Posted by Joshua Slive <js...@gmail.com>.
On Wed, 18 Aug 2004 21:19:39 +0200, Václav Slováček <re...@wessan.net> wrote:
> hi,
> 
> i would like to ask what happens when a user is downloading a large file from apache server and i modify (using PHP script) the .htaccess file affecting the folder where is the file beeing downloaded by the user. For example i rewrite the list of ips allowed to access the file/folder and i remove the user's ip. Will the tranfer be interrupted or not? If not, is there any other way how to interupt the transfer? Thank you for help.

No, the transfer will not be interupted.  .htaccess files are read and
processed before the response is sent.

If you want to interrupt a transfer-in-progress, you'll need to
identify the process handling the request (perhaps using mod_status),
and kill that process.

A cleaner way would perhaps be to adjust the firewall settings on your
server, which should take effect immediately.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org