STOP a virtual host by PHP API

Discussion in 'General' started by dk.mmmm, Jul 13, 2010.

  1. dk.mmmm

    dk.mmmm New Member

    Example, I check and see a domain have large request, and I want to write a code in PHP to stop it.

    Have API or something can do it ?
  2. NiteWave

    NiteWave Administrator

    how about:

    replace the .htaccess in docRoot with:

    RewriteEngine on
    RewriteRule .* - [F]

Share This Page