Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted March 10, 20205 yr Hi All, I am getting some 403 errors when trying to save some changes. For example, I am trying to set up Google Analytics, I paste the code, hit save, 403. Same when setting up Terms and Privacy. I have full access. This is self hosting. Any thoughts? UPDATE: If I remove the Google tracking code, and replace it with some basic text, it saves fine.... so I am not sure why it doesn't want to accept.. below is the following code trying to save... <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=removed"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'removed'); </script>
March 10, 20205 yr Sounds like Mod_Security is blocking your change, try disabling it or reviewing your logs for mod_security.
March 10, 20205 yr That will be something your host would need to advise on, as Mod Security is controlled at the server level.
March 17, 20205 yr Author Hey guys, Mod Security was disabled and this is still causing an issue. For example, some users on the same group with same settings have no issue editing their bio, but another user who also has the same group permissions gets a 403 when trying to edit the profile still. This is really frustrating. There are no error logs either.... can anyone suggest anything?
March 17, 20205 yr Author Also if someone can attach their htaccess file? This is mine <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule \.(js|css|jpeg|jpg|gif|png|ico|map)(\?|$) /404error.php [L,NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
Archived
This topic is now archived and is closed to further replies.