pubsubhubbub / wordpress-pubsubhubbub

WebSub/PubSubHubbub for WordPress
https://wordpress.org/plugins/pubsubhubbub/
MIT License
64 stars 11 forks source link

HTTP 403 #24

Closed i0n1ca closed 1 month ago

i0n1ca commented 2 months ago

Hello,

Thanks for this awesome plugin. I'm using it for a few years now but starting from 2023 I have an issue and I cannot bypass it.

I have the wordpress plugin installed and it worked perfectly till 2023, all the posts published were successful. Since 2023 till now I cannot get any successful post only Last fetch error Thu, 29 Aug 2024 06:07:16 +0000 (HTTP 403)

I don't have any restriction on wordpress files, no hotlink active, rss and feed allowed in robots.txt, bypassed in Cloudflare. The only thing that exists in htaccess is <FilesMatch "wp-login.php"> for authentification security.

My website is https://www.isay.ro

Any help would be appreciated!

Thank you, ionica

i0n1ca commented 2 months ago

On cloudflare dashboard if the option to allow only https connections that have TLS v1.2. I've tried to go back on v1.0 but still not working. I don't know if this affect my issue or not. Using the development mode to bypass all CF settings, but with no success.

i0n1ca commented 2 months ago

Feed tested on validator, all is green.

image

i0n1ca commented 2 months ago

Renamed the htaccess file and created a new one with just #wordpress lines

RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]

Still not working.

i0n1ca commented 1 month ago

Hi,

Changed header cache control from 7 days to 1 hour, now is on max-age=0. Removed the Cache Enabler plugin used for cache, disabled Redis on server side and the plugin. Turned off cache on Cloudflare dashboard, bypass cache, turned proxied off. Still HTTP 403 in Websub Publisher test page.

It’s very strange that the last item received is correct but it’s still unsuccessful.

In line 51 from functions.php inside includes folder I have found that the self url is set to “http” and I’ve changed it to “https”. But still the same HTTP 403

Thanks, ionica IMG_8252

i0n1ca commented 1 month ago

Here is the picture from functions.php IMG_8253

i0n1ca commented 1 month ago

These are my wordpress and php versions.

Tried from App Store different apps for RSS and all of them pull the correct feed with all the articles. HTTP 200 everytime, even in Chrome tools when debugging.

I’m using now Feedly and Inoreader with realtime updates for feed (thanks to your plugin) everything works perfectly.

But on Google News is not working in real time. On your appspot publisher test I receive HTTP 403.

IMG_8254

pfefferle commented 1 month ago

The http:// in the pubsubhubbub_get_self_link is no problem, because the set_url_scheme checks if it has to be replaced with https or not.

pfefferle commented 1 month ago

Btw. The appspot hub is also maintained by google and has nothing to do with this community and/or the plugin!

pfefferle commented 1 month ago

have you tried to contact the google news team, to maybe let them check why your site fails?

i0n1ca commented 1 month ago

Hello @pfefferle, Thanks for the recommendation, I've opened a ticket to Google News Support and received their response. GN Response Got in contact with my hosting provider, ModSecurity was turned off and now I receive successful fetch in Pubsubhubbub. WebSub successful fetch Kindly appreciate your help! Many thanks, ionică

pfefferle commented 1 month ago

Nice!

i0n1ca commented 1 month ago

Issue is now closed. 🙏