Title: 403/404 Errors
Last modified: November 7, 2022

---

# 403/404 Errors

 *  Resolved [devitaliza](https://wordpress.org/support/users/devitaliza/)
 * (@devitaliza)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/403-404-errors-3/)
 * Hi,
 * I’m having some issues with CAOS. I’ve been trying to set it up with Stealth 
   Mode, but I keep getting a 403 error on the script. I checked file permissions(
   which appear to be the most common issue to cause a 403), and they seem to be
   in order.
 * I then disabled Stealth Mode and found that instead of a 403, I get a 404 error.
   I contacted my host, and they said file permissions don’t seem to be the issue
   here.
 * Any idea what’s causing these issues? Any help would be greatly appreciated!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2F403-404-errors-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/403-404-errors-3/#post-16173236)
 * Hi!
 * There’s a couple of things you might want to try:
 * First, change CAOS’ cache directory to anything without ‘analytics’ init, e.g./
   cache/caos/, /uploads/caos/ or just /caos/.
 * The phrase ‘analytics’ will set off Ad Blockers and Stealth Mode won’t stand 
   a chance 🙂
 * Then, make sure that PHP file execution is allowed from within the cache directory
   you just picked. E.g. some hosting providers don’t allow PHP file execution within
   the /uploads/ directory, so if that’s the case, make sure CAOS’ cache directory
   is located outside the /uploads/ directory.
 * If all those things are done, make sure you flushed all caches your site might
   be using (also server level, e.g. Varnish, Redis, etc!)
 * Looking forward to your findings!
 *  Thread Starter [devitaliza](https://wordpress.org/support/users/devitaliza/)
 * (@devitaliza)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/403-404-errors-3/#post-16174519)
 * Hi Daan,
 * Thanks for your suggestions! I moved the script to the /caos/ folder, and checked
   that PHP file execution is allowed in that folder with my host. However, I still
   get a 403 error for the script when I visit my website.
 * Is there anything else it could be?
 *  Thread Starter [devitaliza](https://wordpress.org/support/users/devitaliza/)
 * (@devitaliza)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/403-404-errors-3/#post-16174688)
 * Aha!
 * You were right. It definitely was the PHP file execution being limited. I allowed
   PHP access to all files, and it worked. I’ll get back to my host and check why
   they said it wasn’t an issue.
 * Thank you so much!
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/403-404-errors-3/#post-16174797)
 * No problem! 🙂

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

The topic ‘403/404 Errors’ is closed to new replies.

 * ![](https://ps.w.org/host-analyticsjs-local/assets/icon-256x256.png?rev=3307068)
 * [CAOS | Host Google Analytics Locally](https://wordpress.org/plugins/host-analyticsjs-local/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/host-analyticsjs-local/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/host-analyticsjs-local/)
 * [Active Topics](https://wordpress.org/support/plugin/host-analyticsjs-local/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/host-analyticsjs-local/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/host-analyticsjs-local/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/403-404-errors-3/#post-16174797)
 * Status: resolved