Support » Plugin: WP Hide & Security Enhancer » Too kuch resources usage

  • Hi dev,
    After using your plugin, my site becomes non-responsive and showing resources limite reached!!

    • Changed Admin URLs
    • Rewrite all directories e.g. Include, Content, Theme, Plugin (not individual plugins, just main url)
    • Blocked file access e.g. Licence, Readme etc….

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author tdgu

    (@tdgu)

    Hi,
    Can you detail what kind of limit you reached?
    The plugin is really light, the average usage on total time run, should be under few percents (e.g. 2-3 %). Also using a cache plugin makes the code to not run on further loads.

    Thanks

    # BEGIN WP Hide & Security Enhancer
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    #WriteCheckString:1549556938_90533
    RewriteRule .* – [E=HTTP_MOD_REWRITE:On]

    RewriteRule ^fariocity-sub/(.+) /wp-content/themes/fariocity/$1 [L,QSA]

    RewriteRule ^fariocity/(.+) /wp-content/themes/flatsome/$1 [L,QSA]

    RewriteRule ^addons/(.+) /wp-content/plugins/$1 [L,QSA]
    RewriteCond %{ENV:REDIRECT_STATUS} ^$
    RewriteRule ^wp-content/plugins(.+) /index.php?wph-throw-404 [L]
    RewriteCond %{ENV:REDIRECT_STATUS} ^$
    RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in.*$ [NC]
    RewriteRule ^wp-includes(.+) /index.php?wph-throw-404 [L]

    RewriteRule ^includes/(.+) /wp-includes/$1 [L,QSA]

    RewriteRule ^files/(.+) /wp-content/uploads/$1 [L,QSA]
    RewriteCond %{ENV:REDIRECT_STATUS} ^$
    RewriteRule ^wp-content/uploads/(.+) /index.php?wph-throw-404 [L]
    RewriteCond %{ENV:REDIRECT_STATUS} ^$
    RewriteRule ^readme.html /index.php?wph-throw-404 [L]
    RewriteCond %{ENV:REDIRECT_STATUS} ^$
    RewriteRule ^license.txt /index.php?wph-throw-404 [L]

    RewriteRule ^content/(.+) /wp-content/$1 [L,QSA]
    RewriteCond %{ENV:REDIRECT_STATUS} ^$
    RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in.*$ [NC]
    RewriteRule ^wp-content(.+) /index.php?wph-throw-404 [L]

    <FilesMatch “”>
    <IfModule mod_headers.c>
    Header unset X-Pingback
    </IfModule>
    </FilesMatch>

    <FilesMatch “”>
    <IfModule mod_headers.c>
    Header unset X-Powered-By
    </IfModule>
    </FilesMatch>

    RewriteRule ^fario-login.php(.*) /wp-login.php$1 [L,QSA]
    RewriteCond %{ENV:REDIRECT_STATUS} ^$
    RewriteRule ^wp-login.php /index.php?wph-throw-404 [L]

    RewriteCond %{REQUEST_URI} /dashboard$
    RewriteRule ^(.*)$ /dashboard/ [R=301,L]
    RewriteRule ^dashboard(.*) /wp-admin$1 [L,QSA]
    RewriteCond %{ENV:REDIRECT_STATUS} ^$
    RewriteRule ^wp-admin(.+) /index.php?wph-throw-404 [L]

    </IfModule>

    # END WP Hide & Security Enhancer

    Plugin Author tdgu

    (@tdgu)

    Can you check your browser console if return any 404 errors for any files, when above rewrite are in place?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.