Quantcast
Channel: BulletProof Security Forum » All Posts
Viewing all articles
Browse latest Browse all 12508

Reply To: Themify – Mobile theme 403 error

$
0
0

The error messages show that js files stored in the WordPress /uploads folder are being blocked by BPS Pro UAEG.  Do these steps below to whitelist all themify js files stored in this /uploads/themify-builder/ folder. You will be adding the SetEnvIf Request_URI "themify-builder/.*$" whitelist rule above the FilesMatch section of code and adding the Allow from env=whitelist and Require env whitelist lines of code as shown below.

1. Copy and paste your entire Uploads .htaccess file code from the “Your Current Uploads htaccess File” tab on the htaccess File Editor page into the CUSTOM CODE UAEG text box.
2. Edit/modify/customize your UAEG htaccess code – see edited code below.
3. Click the Save UAEG Custom Code button to save your UAEG custom code.
4. Go to the Security Modes page, select the Activate UAEG BulletProof Mode Radio button and click the Activate|Deactivate button.

# Whitelist an entire folder in the uploads folder: /uploads/themify-builder/
SetEnvIf Request_URI "themify-builder/.*$" whitelist
#
# FORBID THESE FILE EXTENSIONS FROM BEING ACCESSED OR EXECUTED REMOTELY
<FilesMatch "\.(7z|as|bat|bin|cgi|chm|chml|class|cmd|com|command|dat|db|db2|db3|dba|dll|DS_Store|exe|gz|hta|htaccess|htc|htm|html|html5|htx|idc|ini|ins|isp|jar|jav|java|js|jse|jsfl|json|jsp|jsx|lib|lnk|out|php|phps|php5|php4|php3|phtml|phpt|pl|py|pyd|pyc|pyo|rar|shtm|shtml|sql|swf|sys|tar|taz|tgz|tpl|vb|vbe|vbs|war|ws|wsf|xhtml|xml|z)$">
<IfModule mod_authz_core.c>
Require env whitelist
Require all denied
</IfModule>

<IfModule !mod_authz_core.c>
<IfModule mod_access_compat.c>
Order Allow,Deny
Allow from env=whitelist
Deny from all
</IfModule>
</IfModule>
</FilesMatch>
  • This reply was modified 13 hours, 34 minutes ago by Profile photo of AITpro Admin AITpro Admin.
  • This reply was modified 13 hours, 33 minutes ago by Profile photo of AITpro Admin AITpro Admin.
  • This reply was modified 13 hours, 32 minutes ago by Profile photo of AITpro Admin AITpro Admin.

Viewing all articles
Browse latest Browse all 12508

Trending Articles