WordPress.org

Ready to get started?Download WordPress

Forums

BulletProof Security
[resolved] htaccess file size (5 posts)

  1. G
    Member
    Posted 1 year ago #

    Hi AITpro, your plugin works great, as always...

    I just wanted ask your learned advice on htaccess file size, and if it affects performance much or causes other issues.

    I want to put a long ip/cidr blocklist in wp-admin htaccess (not root as may affect all round performance). Looking at around 4000-6000 lines, file size 40kb-80kb.

    What is your opinion?

    http://wordpress.org/extend/plugins/bulletproof-security/

  2. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    You should not notice any loss of website performance with 4000-6000 lines of .htaccess code.

    This quoted statement below made on the Apache website is typically misunderstood/misinterpreted. There is a performance hit in milliseconds when AllowOverride is used in the httpd.conf Server config file. If your site is using .htaccess files in every single directory/folder then you will experience another performance hit in milliseconds, BUT if you only have a small number/finite number of .htaccess files such as an htaccess file in your Root folder and an htaccess file in your wp-admin file and a few more .htaccess files here and there then any performance hit that does occur is going to be very insignificant/not noticeable/milliseconds.

    The first of these is performance. When AllowOverride is set to allow the use of .htaccess files, httpd will look in every directory for .htaccess files. Thus, permitting .htaccess files causes a performance hit, whether or not you actually even use them! Also, the .htaccess file is loaded every time a document is requested.

    Source: http://httpd.apache.org/docs/2.2/howto/htaccess.html

    And of course .htaccess code can be used to increase website performance/load speed. Example: W3TC uses .htaccess code to boost website performance/website speed. ;)

  3. G
    Member
    Posted 1 year ago #

    Thankyou very much for your response, you confirmed just what I thought too.

    Thanks again for your wonderful plugin...

  4. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    Ur welcome. Just added logging in .47.8. Enjoy.

  5. G
    Member
    Posted 1 year ago #

    Beautiful! The upgrade was perfect, and I see the new logging feature - excellent.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags