Viewing 2 replies - 1 through 2 (of 2 total)
  • I am working in a new option that will be added in the next version of the plugin to allow the admin users to whitelist PHP files after they are hardened with the option that you mentioned. Until I finish writing the code for that option you have to whitelist that file manually adding something like this in this file “/wp-content/.htaccess”.

    <Files *.php>
    deny from all
    </Files>
    
    <Files "styles.php">
    allow from all
    </Files>
    

    Note. In your message you said that the CSS file is named “/wp-content/theme/styles.css” but I think you meant to write “/wp-content/theme/styles.php” right? Because the hardening only targets files with the “php” extension.

    Thread Starter kcwebguy

    (@kcwebguy)

    Thanks for your quick reply, Yorman…

    Actually this theme does a process where it calls a php file that then renders up the correct stylesheet. Which is what caused the problem we are discussing.

    I am looking forward to your solution being put in place. That will save me some trouble down the road. =D

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Restrict wp-content Access Blocks Stylesheet’ is closed to new replies.