Open thegulshankumar opened 4 years ago
I initially had something like this in WP2Static V7 diagnostics, but removed it as wasn't smoothly implemented. So, I am in the same mindset of wanting such a check.
Related issue in WP2Static: https://github.com/WP2Static/wp2static/issues/309
I think that's still useful and captures the rate limiting issues. ie, rate limiting won't fail in the beginning, but after n requests in succession, so n successive failures seems a good point to throw this error. Either n successive or first n requests all failing.
A user (like me) who want to accept guest post and comment wont hesitate keeping http-auth/IP protected development area and proxied with CF, there are some areas where things can improve
1. WP2Static should check if Development Area is reachable or not
For Cloudflare proxied Development Site
(But, why? There are chances when CF WAF settings can prevent crawling. If I am not wrong, they use Maxmind IP geo data. It was considering Russia but my original Server Location was Singapore.
And, I had a rule to force JavaScript validation for all Russian visitors because so many incoming spam.
Result: I accidently blocked my server and caused failure of crawling message. Intrestingly, crawling was still in the progress (as I seen NGINX logs, it was just browser end failure of loading ajax requests)
or, this can be avoided by hardcoded IP in the hosts file.
Hinting user to set up whitelist will allow free-road for crawling.
ignore query string
cache level because the plugin uses query string while making ajax request, or ask the user to add a page rule to bypass the cache for*example.com/wp-content/uploads/WP-STATIC-PROGRESS.txt*
2. Is development site HTTP Auth protected?
tail -f /var/log/nginx/error.log
)3. Validate Deployment Credential before starting 'crawling ...' before user click on "Deploy" button
4. Validate Permission to ensure "Delete button" works
5. Introduce better error message when unable to deploy
I feel this suggestion will help beginners to avoid client and proxy side common pitfalls.
Thanks