WP Plugin: all-in-one htaccess plugin

Posted in » WordPress - by Ades on July 29th, 2008

New to this blog? See our Popular Posts section to get started, we have tons of great articles that can benefit you. Don't miss the upcoming interesting articles, subscribe to our RSS.


I have talked numerous times about .htaccess on this blog before. Here are the posts:

With .htaccess you can do so many things, but the risky part is almost all the time you need to edit your .htaccess file manually. However, now there is a special htaccess wp plugin for wordpress blogs that does so many things (full features are below the screenshot). All you need is “enable” a particular feature and it will rewrite your .htaccess file automatically.

wp_htaccess.png

Full Features

  • Directory Protection
    Enable the DirectoryIndex Protection, preventing directory index listings and defaulting.
  • Password Protect wp-login.php
    Requires a valid user/pass to access the login page
  • Password Protect wp-admin
    Requires a valid user/pass to access any non-static (css, js, images) file in this directory.
  • Protect wp-content
    Denies any Direct request for files ending in .php with a 403 Forbidden.
  • Protect wp-includes
    Denies any Direct request for files ending in .php with a 403 Forbidden.
  • Common Exploits
    Block common exploit requests with 403 Forbidden.
  • Stop Hotlinking
    Denies any request for static files (images, css, etc) if referrer is not local site or empty.
  • Safe Request Methods
    Denies any request not using GET,PROPFIND,POST,OPTIONS,PUT,HEAD
  • Forbid Proxies
    Denies any POST Request using a Proxy Server. Can still access site, but not comment. See Perishable Press
  • Real wp-comments-post.php
    Denies any POST attempt made to a non-existing wp-comments-post.php
  • HTTP PROTOCOL
    Denies any badly formed HTTP PROTOCOL in the request, 0.9, 1.0, and 1.1 only
  • SPECIFY CHARACTERS
    Denies any request for a url containing characters other than “a-zA-Z0-9.+/-?=&” - REALLY helps but may break your site depending on your links.
  • BAD Content Length
    Denies any POST request that doesnt have a Content-Length Header
  • BAD Content Type
    Denies any POST request with a content type other than application/x-www-form-urlencoded|multipart/form-data
  • Directory Traversal
    Denies Requests containing ../ or ./. which is a directory traversal exploit attempt
  • PHPSESSID Cookie
    Only blocks when a PHPSESSID cookie is sent by the user and it contains characters other than 0-9a-z - *** Safe, Use
  • NO HOST:
    Denies requests that dont contain a HTTP HOST Header.
  • Bogus Graphics Exploit
    Denies obvious exploit using bogus graphics
  • No UserAgent, No Post
    Denies POST requests by blank user-agents. May prevent a small number of visitors from POSTING.
  • No Referer, No Comment
    Denies any comment attempt with a blank HTTP_REFERER field, highly indicative of spam.
  • Trackback Spam
    Denies obvious trackback spam. See Holy Shmoly!
  • SSL-Only Site
    Redirects all non-SSL (https) requests to your https-enabled url
  • Anti-Spam, Anti-Exploits
    Denies Obvious Spam and uses advanced mod_security protection

Go get it tiger! ;)

Plugin page: www.askapache.com/wordpress/htaccess-password-protect.html

[Post to Twitter]  [Post to Delicious]  [Post to Digg]  [Post to StumbleUpon] 


Related Posts




11 Responses to “WP Plugin: all-in-one htaccess plugin”

  1. By Rice Blogger on Jul 29, 2008

    this is actually pretty good that you could protect your files with one plugin

  2. By Rajaie AlKorani on Jul 29, 2008

    Looks really sweet, but when dealing with my files, I like to do it with notepad :)

  3. By Fawaz on Jul 29, 2008

    I haven’t tried editing htaccess manually, now i might use plug-in, very useful.

  4. By Eva White on Jul 29, 2008

    This sounds interesting, must test it out and see how it works. Thanks for the tip.

  5. By Sergio on Jul 29, 2008

    this is very useful, thanks ades!

  6. By kabonfootprint on Aug 2, 2008

    Great plugin.

  7. By indocontest on Aug 13, 2008

    I’ll test this plugin.
    Thanks Ades

  8. By Gadgetfan on Aug 13, 2008

    Very nice plugin, makes it all a hell of a lot simpler, thanks !

  9. By AskApache on Aug 19, 2008

    Version 4.6 just released…. this plugin is going to be very helpful in the future for those who use it now, lots more on the way.

    I love the transparent gradient fadeout of the screenshot ades, very cool!

  10. By Ades on Aug 20, 2008

    AskApache, thanks for letting us know about the new version. You have done a great plugin!

    Thanks, do drop by again when you have some free time.

  1. 1 Trackback(s)

  2. Aug 17, 2008: Someone Really Want to Hack My Blog | Indo Contest

Post a Comment