Title: 403 When Using Matomo Analytics
Last modified: January 24, 2022

---

# 403 When Using Matomo Analytics

 *  Resolved [smissingham](https://wordpress.org/support/users/smissingham/)
 * (@smissingham)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/403-when-using-matomo-analytics/)
 * I’ve noticed when I turn on BPS RBM mode I get the following 403’s in the log.
   It looks like an incompatibility with Matomo analytics?
 *     ```
       [403 GET Request: January 24, 2022 - 12:49 pm]
       BPS: 5.6
       WP: 5.8.3
       Event Code: PSBR-HPRA
       Solution: https://forum.ait-pro.com/forums/topic/security-log-event-codes/
       REMOTE_ADDR: 159.196.9.101
       Host Name: 159-196-9-101.9fc409.mel.nbn.aussiebb.net
       SERVER_PROTOCOL: HTTP/1.1
       HTTP_CLIENT_IP: 
       HTTP_FORWARDED: 
       HTTP_X_FORWARDED_FOR: 159.196.9.101
       HTTP_X_CLUSTER_CLIENT_IP: 
       REQUEST_METHOD: POST
       HTTP_REFERER: https://itstuff.com.au/product/adonit-adjd4s-dash-4-silver/
       REQUEST_URI: /wp-content/plugins/matomo/app/matomo.php?action_name=Adonit%20ADJD4S%20Dash%204%20(Silver)%20-%20IT%20Stuff&idsite=1&rec=1&r=986398&h=12&m=49&s=26&url=https%3A%2F%2Fitstuff.com.au%2Fproduct%2Fadonit-adjd4s-dash-4-silver%2F&urlref=https%3A%2F%2Fitstuff.com.au%2F&_id=a84c086ef17f1e97&_idn=0&_refts=0&send_image=0&pdf=1&qt=0&realp=0&wma=0&fla=0&java=0&ag=0&cookie=1&res=3440x1440&pv_id=6KuE2Q&pf_net=0&pf_srv=766&pf_tfr=18&pf_dm1=108
       QUERY_STRING: action_name=Adonit%20ADJD4S%20Dash%204%20(Silver)%20-%20IT%20Stuff&idsite=1&rec=1&r=986398&h=12&m=49&s=26&url=https%3A%2F%2Fitstuff.com.au%2Fproduct%2Fadonit-adjd4s-dash-4-silver%2F&urlref=https%3A%2F%2Fitstuff.com.au%2F&_id=a84c086ef17f1e97&_idn=0&_refts=0&send_image=0&pdf=1&qt=0&realp=0&wma=0&fla=0&java=0&ag=0&cookie=1&res=3440x1440&pv_id=6KuE2Q&pf_net=0&pf_srv=766&pf_tfr=18&pf_dm1=108
       HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36
       ```
   
 * `
    -  This topic was modified 4 years, 4 months ago by [smissingham](https://wordpress.org/support/users/smissingham/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/403-when-using-matomo-analytics/#post-15286380)
 * What is being blocked is the round bracket code characters/parentheses in the
   Query String: `(Silver)`.
 * Do these steps to allow round bracket code characters/parentheses in Query Strings.
   
   1. Copy this modified code below to this BPS Root Custom Code text box: CUSTOM
   CODE BPSQSE BPS QUERY STRING EXPLOITS Note: If htaccess code already exists in
   this Custom Code text then overwrite it. 2. Click the Save Root Custom Code button.
   3. Go to the Setup Wizard page and run the Setup Wizard.
 *     ```
       # BEGIN BPSQSE BPS QUERY STRING EXPLOITS
       # The libwww-perl User Agent is forbidden - Many bad bots use libwww-perl modules, but some good bots use it too.
       # Good sites such as W3C use it for their W3C-LinkChecker. 
       # Use BPS Custom Code to add or remove user agents temporarily or permanently from the 
       # User Agent filters directly below or to modify/edit/change any of the other security code rules below.
       RewriteCond %{HTTP_USER_AGENT} (havij|libwww-perl|wget|python|nikto|curl|scan|java|winhttp|clshttp|loader) [NC,OR]
       RewriteCond %{HTTP_USER_AGENT} (%0A|%0D|%27|%3C|%3E|%00) [NC,OR]
       RewriteCond %{HTTP_USER_AGENT} (;|<|>|'|"|\)|\(|%0A|%0D|%22|%27|%28|%3C|%3E|%00).*(libwww-perl|wget|python|nikto|curl|scan|java|winhttp|HTTrack|clshttp|archiver|loader|email|harvest|extract|grab|miner) [NC,OR]
       RewriteCond %{THE_REQUEST} (\?|\*|%2a)+(%20+|\\s+|%20+\\s+|\\s+%20+|\\s+%20+\\s+)(http|https)(:/|/) [NC,OR]
       RewriteCond %{THE_REQUEST} etc/passwd [NC,OR]
       RewriteCond %{THE_REQUEST} cgi-bin [NC,OR]
       RewriteCond %{THE_REQUEST} (%0A|%0D|\\r|\\n) [NC,OR]
       RewriteCond %{REQUEST_URI} owssvr\.dll [NC,OR]
       RewriteCond %{HTTP_REFERER} (%0A|%0D|%27|%3C|%3E|%00) [NC,OR]
       RewriteCond %{HTTP_REFERER} \.opendirviewer\. [NC,OR]
       RewriteCond %{HTTP_REFERER} users\.skynet\.be.* [NC,OR]
       RewriteCond %{QUERY_STRING} [a-zA-Z0-9_]=(http|https):// [NC,OR]
       RewriteCond %{QUERY_STRING} [a-zA-Z0-9_]=(\.\.//?)+ [NC,OR]
       RewriteCond %{QUERY_STRING} [a-zA-Z0-9_]=/([a-z0-9_.]//?)+ [NC,OR]
       RewriteCond %{QUERY_STRING} \=PHP[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12} [NC,OR]
       RewriteCond %{QUERY_STRING} (\.\./|%2e%2e%2f|%2e%2e/|\.\.%2f|%2e\.%2f|%2e\./|\.%2e%2f|\.%2e/) [NC,OR]
       RewriteCond %{QUERY_STRING} ftp\: [NC,OR]
       RewriteCond %{QUERY_STRING} (http|https)\: [NC,OR]
       RewriteCond %{QUERY_STRING} \=\|w\| [NC,OR]
       RewriteCond %{QUERY_STRING} ^(.*)/self/(.*)$ [NC,OR]
       RewriteCond %{QUERY_STRING} ^(.*)cPath=(http|https)://(.*)$ [NC,OR]
       RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
       RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
       RewriteCond %{QUERY_STRING} (\<|%3C).*embed.*(\>|%3E) [NC,OR]
       RewriteCond %{QUERY_STRING} (<|%3C)([^e]*e)+mbed.*(>|%3E) [NC,OR]
       RewriteCond %{QUERY_STRING} (\<|%3C).*object.*(\>|%3E) [NC,OR]
       RewriteCond %{QUERY_STRING} (<|%3C)([^o]*o)+bject.*(>|%3E) [NC,OR]
       RewriteCond %{QUERY_STRING} (\<|%3C).*iframe.*(\>|%3E) [NC,OR]
       RewriteCond %{QUERY_STRING} (<|%3C)([^i]*i)+frame.*(>|%3E) [NC,OR] 
       RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [NC,OR]
       RewriteCond %{QUERY_STRING} base64_(en|de)code[^(]*\([^)]*\) [NC,OR]
       RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
       RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2}) [OR]
       #RewriteCond %{QUERY_STRING} ^.*(\(|\)|<|>|%3c|%3e).* [NC,OR]
       RewriteCond %{QUERY_STRING} ^.*(\x00|\x04|\x08|\x0d|\x1b|\x20|\x3c|\x3e|\x7f).* [NC,OR]
       RewriteCond %{QUERY_STRING} (NULL|OUTFILE|LOAD_FILE) [OR]
       RewriteCond %{QUERY_STRING} (\.{1,}/)+(motd|etc|bin) [NC,OR]
       RewriteCond %{QUERY_STRING} (localhost|loopback|127\.0\.0\.1) [NC,OR]
       RewriteCond %{QUERY_STRING} (<|>|'|%0A|%0D|%27|%3C|%3E|%00) [NC,OR]
       RewriteCond %{QUERY_STRING} concat[^\(]*\( [NC,OR]
       RewriteCond %{QUERY_STRING} union([^s]*s)+elect [NC,OR]
       RewriteCond %{QUERY_STRING} union([^a]*a)+ll([^s]*s)+elect [NC,OR]
       RewriteCond %{QUERY_STRING} \-[sdcr].*(allow_url_include|allow_url_fopen|safe_mode|disable_functions|auto_prepend_file) [NC,OR]
       RewriteCond %{QUERY_STRING} (;|<|>|'|"|\)|%0A|%0D|%22|%27|%3C|%3E|%00).*(/\*|union|select|insert|drop|delete|update|cast|create|char|convert|alter|declare|order|script|set|md5|benchmark|encode) [NC,OR]
       RewriteCond %{QUERY_STRING} (sp_executesql) [NC]
       RewriteRule ^(.*)$ - [F]
       # END BPSQSE BPS QUERY STRING EXPLOITS
       ```
   
 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/403-when-using-matomo-analytics/#post-15311725)
 * Is the issue/problem still occurring or is it resolved?
 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/403-when-using-matomo-analytics/#post-15325751)
 * Assuming all questions have been answered – the thread has been resolved. If 
   the issue/problem is not resolved or you have additional questions about this
   specific thread topic then you can post them at any time. I still receive email
   notifications when threads have been resolved.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘403 When Using Matomo Analytics’ is closed to new replies.

 * ![](https://ps.w.org/bulletproof-security/assets/icon-128x128.png?rev=1731938)
 * [BulletProof Security](https://wordpress.org/plugins/bulletproof-security/)
 * [Support Threads](https://wordpress.org/support/plugin/bulletproof-security/)
 * [Active Topics](https://wordpress.org/support/plugin/bulletproof-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bulletproof-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bulletproof-security/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [AITpro](https://wordpress.org/support/users/aitpro/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/403-when-using-matomo-analytics/#post-15325751)
 * Status: resolved