חלק מהאתרים חסומים מ-oneboxing

The sites you’re testing against may be blocking the curl user agent. The Oneboxing process will use the user agent from a real browser, depending on the URL you’re trying to Onebox. At the moment, the user agent it uses in such cases is:

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15

Try running your curl tests with the -A flag. e.g.:

curl -A "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15" https://www.udemy.com/course/certified-kubernetes-application-developer/ -o deleteme.html --verbose

What is the result of that command on your end?

If it’s still failing:

  1. Have you been running an unusually large number of Oneboxing requests against these sites? You may have been temporarily blocked by the sites in question and find things start working after waiting an appropriate period of time (this is up to the site operators, and there’s nothing we can do about it from our end unfortunately).

  2. Where is your server located? Do you have access to a machine in a different location that you run tests from? Even testing from your personal machine instead of your production server may get you different results.

4 לייקים