• beernews

    (@beernews)


    I’ve seen this code mentioned in a few blog comments now posted by AskApache though I have not seen a source on how to actually implement it.

    I am still looking for a way to close off access to my content and includes parent directories while still allowing my plug-ins to work.

    What .htaccess file would this go in?
    And what other code is needed to go with what’s below?

    RewriteCond %{QUERY_STRING} !error
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(wp-includes|wp-content)/(.+)\.php\ HTTP/
    RewriteRule .* - [F]

    Thanks!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Protect wp-content & wp-include using mod_rewrite?’ is closed to new replies.