wp-media / wp-rocket-helpers

🚀 Helper plugins for specific use cases with WP Rocket. ☝️ TEST BEFORE USE! ☝️
https://wp-rocket.me/support/
GNU General Public License v2.0
202 stars 68 forks source link

WPR Dbugger - new test: check if WP Rocket/Preload user agent is blocked #61

Closed alfonso100 closed 1 year ago

alfonso100 commented 2 years ago

we can check if WP Rocket/Preload is being blocked by the server firewall or any plugin, by sending a test request.

https://github.com/wp-media/wp-rocket/blob/a0526fb41a84a0a960e3e30bc32766c60c318829/inc/Engine/Preload/Controller/PreloadUrl.php#L76

we might check with and without the user agent by filtering at rocket_preload_before_preload_url

alfonso100 commented 1 year ago

example script https://www.notion.so/wpmedia/Code-Snippets-2b933bd0c6d2468eb00d66d531d5c5b2?p=63536096cdb24204911d27939e21de8c&pm=s