title: Only Allow POST Requests and Deny all other REQUEST_METHOD using .htaccess
body: <p>I have some email PHP Scripts which I do not want the user to have a look by a GET, but I am using it to send as an email, using wufoo's webHook if anyone knows about it, so it uses POST so I just want POST Requests to be allowed otherwise, 403 or 404 how do I do that? </p>
  
  <p>I tried some answers given on SO and browsed documentation of apache web server, the best answer I found was this: </p>
  
  <pre><code> RewriteEngine On
   RewriteCond %{REQUEST_METHOD} !=GET
   RewriteRule ^.*$ /path/to
  </code></pre>
  
  <p>But I suppose this should be written in the directory where I have PHP Script, I just want use one .htaccess in root. </p>
  
  <p>Folder Structure : </p>
  
  <pre><code>      public_html (would want to use this folders .htaccess only)
        -- email 
           -- mail.php (ONLY POST)
  </code></pre>
  
  <p>I know we can use REQUEST_METHOD in <code>mail.php</code> directly but I don't want to do that, it is kind of thing which is not related to the script actually.</p>
  
  <p>can anyone provide some help. </p>