Getting 403 on some IPs, but not others. May or may not be Cloudflare-related...help! :)

Hi, Everyone

Not sure if it’s Cloudflare-related or not…

Background:
A week ago, our website was hijacked by a zero-day vulnerability in a Wordpress plugin. It would redirect traffic to a malicious site right away (even from within Wordpress).
We’ve cleaned it up within a day, and disabled the plugin, changed the passwords, did multiple scans of the website to make sure it’s clean.
We also have the Cloudflare Wordpress caching plugin.

Problem:
ever since then, we’ve been encountering “403 Forbidden / You don’t have permission to access the site”. This only happens on some IPs (if using VPN on the same computer, some IPs will get this, others will not). Country doesn’t seem to be a consistent source of 403s either.
We tried to disable the Cloudflare plugin, which seems to have reduced the 403s, but not entirely-eliminate them.
Hosting company doesn’t see any problems, says nothing’s being blocked.
Pinging works just fine.

Site is https://www.eyeseverywhere.ca

Any suggestions/recommendations would be appreciated!
Thanks!

Seems like Cloudflare is currently disabled? If it was related to Cloudflare, I can only think it could be because at one point in time, while restoring/fixing your website, you had forbidden URL’s. Chance is that these url’s may then have gotten cached by the Cloudflare CDN (for 4 hours or more, depending). Then, depending on geolocation of the visitor and what Cloudflare server they hit, they may have been served a stale outdated “403” page. If the issue is corrected on server, it’s likely these pages have been purged from cache by now anyway.

Having said that, the above would only happen if you have “cache everything” page rule, and you are actively caching pages (with the Cloudflare WP plugin).

Even if you temporarily disabled Cloudflare plugin, it could take time for some IP’s to resolve DNS to not go through Cloudflare, and pages might still be cached.

If it’s not Cloudflare, then I can only imagine it’s some WP security plugin you are using, which is blocking requests?

  1. Was your site proxied when you got the 403s? Right now it is not proxied, so any such errors would come straight from your server.
  2. Can you post a screenshot of that error?
  3. Your site does seem to return for certain locations a 503 (not 403)
    sitemeer.com/#https://www.eyeseverywhere.ca
    However that is not Cloudflare related but appears to come from your Wordfence setup

No proxy, that I know of. Error still happening, hosting company says that there’s no blocking, and nothing in their logs.

Here’s a screenshot of the error. Fairly-generic.
403error

Yes, we do have Wordfence, which I used to block countries where I seem to get a lot of hacking attempts from (manually). It does block some stuff automatically as well, but none of the IPs that seem to be affected (that we tested) show up on its block list.
As I understand it, it will only do 503 errors, not 403.

And you specifically get a 403? What about the screenshot?

its probably getting cached somewhere in the way… what headers are you see?

Screenshot above, but here is one with the header. just says our website address when the 403 error comes up (normally it should say “IT Support and consulting…”

That error comes straight from your server. Check your server logs, they should give you a hint why it is blocked.

It’s looking more and more like we’ll have to change hosts, then, to get rid of the error, as the current host claims they checked the logs for 403 multiple times, and for blocking and see nothing on their end :confused:

Well, the block seems to be selective and if they dont get it, it might be hard to debug, however it should show up in the logs.

The question is also whether it is their responsibility to check that. Do you have a managed service with them? If not, it will be best to involve your web developer.

He is involved. We don’t have access to the host’s logs, so we rely on them to check certain things

This topic was automatically closed after 14 days. New replies are no longer allowed.