title: Deny access to any URL containing certain word(s)
body: <p>Something is continually hammering my website adding PLACEIMPMACROHERE to the end of URLs. I am not sure what it is, but it doesn't look good. So I'd like to thwart it if possible.</p>
  
  <p>'Place IMP Macro Here' as if it's some bot/flooding script and it hasn't been configured yet.</p>
  
  <p>How could I block any URL ending in PLACEIMPMACROHERE, it appears as if it's a folder. It hits like this:</p>
  
  <pre><code>www.website.com/directory/another-directory/PLACEIMPMACROHERE
  </code></pre>
  
  <p>Or anywhere, not always the same location, sometimes:</p>
  
  <pre><code>www.website.com/directory/PLACEIMPMACROHERE
  </code></pre>
  
  <p>I tried this but with no success</p>
  
  <pre><code>RewriteCond %{THE_REQUEST} PLACEIMPMACROHERE  [NC]  
  RewriteRule .*  - [F]
  </code></pre>
  
  <p>Does anyone see where that's going wrong or is it entirely wrong?</p>