title: How can I block POST requests to urls ending with /trackback/ in .htaccess?
body: <p>I'm wanting to block POST requests to a specific URL on a website. Here is an example of a spammy POST request from my Apache log:</p>
  
  <pre><code>110.86.178.xxx - - [14/Jan/2015:17:05:05 +0000] "POST /profile/example/trackback/ HTTP/1.1" 200 85 "http://example.com/profile/example/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) )"
  </code></pre>
  
  <p>I added the following code to the .htaccess file:</p>
  
  <pre><code># deny POST requests
  &lt;IfModule mod_rewrite.c&gt;
      RewriteCond %{REQUEST_METHOD} POST
      RewriteRule /profile/example/trackback/ [F,L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>Unfortunately I'm still receiving trackback emails, so it's not working. </p>
  
  <p>What is the issue and how can I fix this?
  Also, how could I amend the code to block all POST requests sent to urls ending in /trackback/</p>
  
  <p>Thanks!</p>