« Boost SEO, Drive Traffic with the 404 Error Page PluginLets win the DreamHost Contest »
WordPress Plugin for Apache .htaccess Security
# BEGIN AskApache PassPro # sid900 AuthName "Protected By AskApache" AuthUserFile /askapache.com/.htpasswda1 AuthType Basic Require valid-userAllow from All Allow from All Satisfy Any # sid900 # END AskApache PassPro
# BEGIN WordPressRewriteEngine On RewriteBase /blog/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /blog/index.php [L] # END WordPress # BEGIN AskApache PassProRewriteEngine On RewriteBase / # sid1000 RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /blog/wp-content/.*$ [NC] RewriteCond %{REQUEST_FILENAME} ^.+\.php$ RewriteRule .* - [F,NS] # sid1000 # sid1010 RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /blog/wp-includes/.*$ [NC] RewriteCond %{REQUEST_FILENAME} ^.+\.php$ RewriteRule .* - [F,NS] # sid1010 # sid1005AuthName "Protected By AskApache" AuthUserFile /askapache.com/.htpasswda1 AuthType Basic Require valid-user # sid1005 # END AskApache PassPro
If you have any ideas for some more, please let us know!
| SID | Protection | Description | Response | Enable |
|---|---|---|---|---|
| 900 | wp-admin/*.* | Requires a valid user/pass to access any non-static (css, js, images) file in this directory | 401 | |
| 1000 | wp-content/*.php | Denies any Direct request for files ending in .php with a 403 Forbidden | 401 | |
| 1005 | wp-login.php | Requires a valid user/pass to access the login page | 401 | |
| 1010 | wp-includes/*.php | Denies any Direct request for files ending in .php with a 403 Forbidden | 403 | |
| 1015 | REQUEST_METHODS | Denies any request not using !GET|POST|OPTIONS|PUT|HEAD | 403 | |
| 1025 | Directory Protection | Enable the DirectoryIndex Protection, preventing directory index listing | Disable |
« Boost SEO, Drive Traffic with the 404 Error Page Plugin
Lets win the DreamHost Contest »
The love of liberty is the love of others; the love of power is the love of ourselves.
-- William Hazlitt
Please consider donating to support active development of the free software and articles here.![]()
The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect. Tim Berners-Lee
It's very simple - you read the protocol and write the code. -Bill Joy
HTML | DCMI | GRDDL | XOXO | XDMP | XFN | DOM | XML | XHTML 1.1 Strict | CSS 2.1 | W3C | TLDP | WAI | DISA | ICSI | GIAC | SANS RR | GHOST | DEFCON | NIST | DHS CYBER | NIST | Phrack
↑ TOPExcept where otherwise noted, content on this site is licensed under a Creative Commons Attribution 3.0 License, just credit with a link.
This site is not supported or endorsed by The Apache Software Foundation (ASF). All software and documentation produced by The ASF is licensed. "Apache" is a trademark of The ASF. HTTPD based on NCSA HTTPd
a great idea!.
But where is the download link to try it?
Thank you