# Einige Seiten sind vom Oneboxing blockiert

**URL:** https://meta.discourse.org/t/some-sites-are-blocked-from-oneboxing/189889
**Category:** Feature
**Created:** [10. Mai 2021 um 03:49 UTC](https://meta.discourse.org/t/some-sites-are-blocked-from-oneboxing/189889 "2021-05-10T03:49:12Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![SkyLin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/skylin/32/206593_2.png) [@SkyLin](https://meta.discourse.org/u/SkyLin)
#### Post date: [10. Mai 2021 um 03:49 UTC](https://meta.discourse.org/t/some-sites-are-blocked-from-oneboxing/189889/1 "2021-05-10T03:49:12Z")

</div>

Seit dem Update am 4. Mai habe ich ein Problem mit der Vorschau von Onebox-Nachrichten. Nicht alle Hyperlinks können erfolgreich eine Vorschau-Box erstellen.

Diese Hyperlinks funktionieren jedoch bis heute auf Meta einwandfrei. Erst heute habe ich einen Hyperlink mit einem ähnlichen\* Problem auf Meta gefunden.  
\*anderer Fehlercode

Bitte geben Sie eine Empfehlung ab. Vielen Dank für die Hilfe.

[https://medium.com/swlh/5-free-python-courses-for-beginners-to-learn-online-e1ca90687caf](https://medium.com/swlh/5-free-python-courses-for-beginners-to-learn-online-e1ca90687caf)

 ![Clipboard03](https://global.discourse-cdn.com/meta/original/3X/6/f/6fe377442981dc35d41de7b710de915d80e8dbe0.jpeg)

---

<div class="post-metadata">

### Author: ![JimPas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimpas/32/148179_2.png) [@JimPas](https://meta.discourse.org/u/JimPas)
#### Post date: [10. Mai 2021 um 06:13 UTC](https://meta.discourse.org/t/some-sites-are-blocked-from-oneboxing/189889/2 "2021-05-10T06:13:46Z")

</div>

Ich habe versucht, diesen Link auf meinem Forum zu Oneboxen und habe das gleiche Ergebnis erhalten.  
Ich habe das sofort bemerkt, als ich mir den Link angesehen habe. Er hat zwei Ausnahmen zurückgegeben. Der Link kann deshalb nicht Oneboxed werden. Deshalb haben wir diese Nachricht im Onebox erhalten.

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/2/b252e387f96bcc6012eb68b305f319031b33073d.png)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [10. Mai 2021 um 07:17 UTC](https://meta.discourse.org/t/some-sites-are-blocked-from-oneboxing/189889/3 "2021-05-10T07:17:30Z")

</div>

@jamie.wilson untersucht Probleme mit Medium-Oneboxes, eine Lösung ist in Arbeit.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [13. Mai 2021 um 04:39 UTC](https://meta.discourse.org/t/some-sites-are-blocked-from-oneboxing/189889/6 "2021-05-13T04:39:16Z")

</div>

Ja, das sieht nach demselben Problem aus, das einen 500-Fehler verursacht. Haben wir das angegangen, @jamie.wilson?

---

<div class="post-metadata">

### Author: ![jamie.wilson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamie.wilson/32/185466_2.png) [@jamie.wilson](https://meta.discourse.org/u/jamie.wilson)
#### Post date: [13. Mai 2021 um 20:47 UTC](https://meta.discourse.org/t/some-sites-are-blocked-from-oneboxing/189889/7 "2021-05-13T20:47:29Z")

</div>

Der von @SkyLin bereitgestellte Link zeigt erneut eine Onebox:

[https://medium.com/swlh/5-free-python-courses-for-beginners-to-learn-online-e1ca90687caf](https://medium.com/swlh/5-free-python-courses-for-beginners-to-learn-online-e1ca90687caf)

Es scheint, als hätte Medium auf ihrer Seite einige Änderungen vorgenommen, die Schwachstellen in unserer Onebox-Generierung aufgedeckt haben. Diese Probleme wurden nun auf unserer Seite behoben und in den Code übernommen, was Oneboxing allgemein robuster macht (und nicht nur für Medium).

---

<div class="post-metadata">

### Author: ![SkyLin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/skylin/32/206593_2.png) [@SkyLin](https://meta.discourse.org/u/SkyLin)
#### Post date: [15. Mai 2021 um 04:37 UTC](https://meta.discourse.org/t/some-sites-are-blocked-from-oneboxing/189889/8 "2021-05-15T04:37:21Z")

</div>

Dieses Problem wurde nach dem Update behoben. Vielen Dank!

[Comparing bbb44698...a24b6daa · discourse/discourse · GitHub](https://github.com/discourse/discourse/compare/bbb44698...a24b6daa)

Aber mein ursprüngliches Problem\* besteht weiterhin. Gibt es weitere Schritte, die ich unternehmen kann, um dies zu lösen? Nochmals vielen Dank.

\*Onebox funktioniert auf Meta einwandfrei, schlägt aber auf meiner Seite für dieselbe URL fehl:

> [@Onebox error code of 403](https://meta.discourse.org/t/onebox-error-code-of-403/189000):
>
> The preview function of Onebox for udemy url got an error as below. “Sorry, we were unable to generate a preview for this web page, because the web server returned an error code of 403.” Not sure if it’s due to the discourse updating today or the site itself. Here comes the situation. The udemy site preview works fine before yesterday. Sample url: [Udemy free coupon code 2021\_0502-2 - udemy 限免課程 - StudyCamp 線上學習論壇](https://vip.studycamp.tw/t/topic/1370) The Onebox preview doesn’t work today. Sample url: [Udemy free coupon cod…](https://vip.studycamp.tw/t/topic/1379)

---

<div class="post-metadata">

### Author: ![JimPas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimpas/32/148179_2.png) [@JimPas](https://meta.discourse.org/u/JimPas)
#### Post date: [15. Mai 2021 um 06:37 UTC](https://meta.discourse.org/t/some-sites-are-blocked-from-oneboxing/189889/9 "2021-05-15T06:37:09Z")

</div>

> [@SkyLin](#):
>
> \*Onebox funktioniert auf Meta einwandfrei, aber auf meiner Website für dieselbe URL nicht:

Ich habe gerade alle drei deiner Links ausprobiert – den für Medium und die beiden für Udemy – sowohl auf meiner Website als auch hier auf Meta. Alle drei wurden sowohl auf meiner Website als auch hier auf Meta einwandfrei als Onebox dargestellt.

---

<div class="post-metadata">

### Author: ![SkyLin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/skylin/32/206593_2.png) [@SkyLin](https://meta.discourse.org/u/SkyLin)
#### Post date: [15. Mai 2021 um 09:31 UTC](https://meta.discourse.org/t/some-sites-are-blocked-from-oneboxing/189889/10 "2021-05-15T09:31:32Z")

</div>

Danke für die freundlichen Informationen.

Ich habe die Methode aus [Amazon Onebox schlägt auf meiner Site fehl, funktioniert aber hier](https://meta.discourse.org/t/amazon-onebox-fails-on-my-site-but-works-here/41609) ausprobiert und erhielt bei [Udemy](https://www.udemy.com/course/certified-kubernetes-application-developer/) den Fehlercode 403. Ich habe sogar eine [Site](https://i94.tw) mit einem alten Backup geklont, und dort tritt das gleiche Problem auf. Ich frage mich, ob andere Gründe das Problem verursachen, zum Beispiel Einstellungen?

Bitte geben Sie einen Rat. Danke für die Hilfe.

```plaintext
root@localhost:~# curl https://www.udemy.com/course/certified-kubernetes-application-developer/ -o deleteme.html --verbose
  % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed
  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 2606:4700::6810:4255:443... * TCP_NODELAY set
  0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0* Connected to www.udemy.com (2606:4700::6810:4255) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
} [5 bytes data]
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* TLSv1.3 (IN), TLS handshake, Server hello (2):
{ [122 bytes data]
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
{ [19 bytes data]
* TLSv1.3 (IN), TLS handshake, Certificate (11):
{ [3726 bytes data]
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
{ [264 bytes data]
* TLSv1.3 (IN), TLS handshake, Finished (20):
{ [52 bytes data]
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
} [1 bytes data]
* TLSv1.3 (OUT), TLS handshake, Finished (20):
} [52 bytes data]
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use h2
* Server certificate:
* subject: C=US; ST=California; L=San Francisco; O=Udemy, Inc.; CN=*.udemy.com
* start date: Sep 10 15:45:40 2020 GMT
* expire date: Oct 12 15:45:40 2021 GMT
* subjectAltName: host "www.udemy.com" matched cert's "*.udemy.com"
* issuer: C=BE; O=GlobalSign nv-sa; CN=GlobalSign RSA OV SSL CA 2018
* SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
} [5 bytes data]
* Using Stream ID: 1 (easy handle 0x55ba70848e10)
} [5 bytes data]
> GET /course/certified-kubernetes-application-developer/ HTTP/2
> Host: www.udemy.com
> user-agent: curl/7.68.0
> accept: */*
>
{ [5 bytes data]
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
{ [230 bytes data]
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
{ [230 bytes data]
* old SSL session ID is stale, removing
{ [5 bytes data]
* Connection state changed (MAX_CONCURRENT_STREAMS == 256)!
} [5 bytes data]
< HTTP/2 403
< date: Sat, 15 May 2021 09:15:50 GMT
< content-type: text/plain; charset=UTF-8
< content-length: 16
< x-frame-options: SAMEORIGIN
< cache-control: private, max-age=0, no-store, no-cache, must-revalidate, post-c heck=0, pre-check=0
< expires: Thu, 01 Jan 1970 00:00:01 GMT
< cf-request-id: 0a10e892d400000ac0a696a000000001
< expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-c gi/beacon/expect-ct"
< set-cookie: __cf_bm=b04492251e1a16bfdad619155f03441f5707d134-1621070150-1800-AS6cROKp+jLfN9ubIJem+TuX5dANVYbshBzqeRTZhheBx6lOtfM8RPRDSGDLEObLD8tWwjbrp+D5Sh4RcCTXGNw=; path=/; expires=Sat, 15-May-21 09:45:50 GMT; domain=.udemy.com; HttpOnly; Secure; SameSite=None
< x-content-type-options: nosniff
< server: cloudflare
< cf-ray: 64fb4397bea70ac0-NRT
<
{ [16 bytes data]
100 16 100 16 0 0 10 0 0:00:01 0:00:01 --:--:-- 10
* Connection #0 to host www.udemy.com left intact

```

---

<div class="post-metadata">

### Author: ![JimPas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimpas/32/148179_2.png) [@JimPas](https://meta.discourse.org/u/JimPas)
#### Post date: [16. Mai 2021 um 06:04 UTC](https://meta.discourse.org/t/some-sites-are-blocked-from-oneboxing/189889/11 "2021-05-16T06:04:58Z")

</div>

> [@SkyLin](#):
>
> `expires: Thu, 01 Jan 1970 00:00:01 GMT`

Woher kommt das? 1970? Das ist schon über 50 Jahre her.

---

<div class="post-metadata">

### Author: ![SkyLin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/skylin/32/206593_2.png) [@SkyLin](https://meta.discourse.org/u/SkyLin)
#### Post date: [17. Mai 2021 um 01:41 UTC](https://meta.discourse.org/t/some-sites-are-blocked-from-oneboxing/189889/12 "2021-05-17T01:41:11Z")

</div>

Stammt aus der Antwort dieses Befehls:

`curl https://www.udemy.com/course/certified-kubernetes-application-developer/ -o deleteme.html --verbose`

---

<div class="post-metadata">

### Author: ![SkyLin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/skylin/32/206593_2.png) [@SkyLin](https://meta.discourse.org/u/SkyLin)
#### Post date: [17. Mai 2021 um 01:50 UTC](https://meta.discourse.org/t/some-sites-are-blocked-from-oneboxing/189889/13 "2021-05-17T01:50:06Z")

</div>

Und hier kommt die Antwort von Amazon mit dem Fehlercode 503.

```plaintext
root@localhost:~# curl https://www.amazon.com/Deep-Learning-Python-Francois-Chollet/dp/1617294438 -o deleteme.html --verbose
  % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed
  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 162.219.225.118:443...
* TCP_NODELAY set
* Connected to www.amazon.com (162.219.225.118) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
} [5 bytes data]
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* TLSv1.3 (IN), TLS handshake, Server hello (2):
{ [122 bytes data]
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
{ [19 bytes data]
* TLSv1.3 (IN), TLS handshake, Certificate (11):
{ [4447 bytes data]
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
{ [264 bytes data]
* TLSv1.3 (IN), TLS handshake, Finished (20):
{ [52 bytes data]
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
} [1 bytes data]
* TLSv1.3 (OUT), TLS handshake, Finished (20):
} [52 bytes data]
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use h2
* Server certificate:
* subject: CN=www.amazon.com
* start date: Apr 26 00:00:00 2021 GMT
* expire date: Apr 25 23:59:59 2022 GMT
* subjectAltName: host "www.amazon.com" matched cert's "www.amazon.com"
* issuer: C=US; O=DigiCert Inc; CN=DigiCert Global CA G2
* SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
} [5 bytes data]
* Using Stream ID: 1 (easy handle 0x55993f5fae10)
} [5 bytes data]
> GET /Deep-Learning-Python-Francois-Chollet/dp/1617294438 HTTP/2
> Host: www.amazon.com
> user-agent: curl/7.68.0
> accept: */*
>
{ [5 bytes data]
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
{ [177 bytes data]
* Connection state changed (MAX_CONCURRENT_STREAMS == 100)!
} [5 bytes data]
  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
< HTTP/2 503
< server: Server
< date: Mon, 17 May 2021 01:37:18 GMT
< content-type: text/html
< strict-transport-security: max-age=47474747; includeSubDomains; preload
< x-amz-rid: 72RYS75V0EMTMX4RK38T
< vary: Content-Type,Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent
< last-modified: Wed, 30 Sep 2020 23:54:00 GMT
< etag: "a6f-5b0909d09d600"
< accept-ranges: bytes
< content-length: 2671
<
{ [1139 bytes data]
100 2671 100 2671 0 0 3604 0 --:--:-- --:--:-- --:--:-- 3599
* Connection #0 to host www.amazon.com left intact
root@localhost:~#

```

Eine Sache noch: Die Onebox-Vorschau für Amazon funktioniert jetzt nach Jamies Update-Code einwandfrei. Die Vorschau vor dem Update finden Sie in diesem Bild:

[![](https://global.discourse-cdn.com/meta/original/3X/f/7/f74a6dd626ee936cf0856ab136958ee6e6f1b3ab.jpeg) ](https://global.discourse-cdn.com/meta/original/3X/f/7/f74a6dd626ee936cf0856ab136958ee6e6f1b3ab.jpeg)

---

<div class="post-metadata">

### Author: ![JimPas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimpas/32/148179_2.png) [@JimPas](https://meta.discourse.org/u/JimPas)
#### Post date: [17. Mai 2021 um 05:17 UTC](https://meta.discourse.org/t/some-sites-are-blocked-from-oneboxing/189889/14 "2021-05-17T05:17:43Z")

</div>

Gut mit dem Amazon-Link. Funktionieren die Udemy-Links jetzt, oder bekommst du immer noch eine 403-Fehlermeldung? Bei mir gibt es weiterhin keine Probleme, diese direkt einzubetten.

---

<div class="post-metadata">

### Author: ![SkyLin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/skylin/32/206593_2.png) [@SkyLin](https://meta.discourse.org/u/SkyLin)
#### Post date: [17. Mai 2021 um 05:45 UTC](https://meta.discourse.org/t/some-sites-are-blocked-from-oneboxing/189889/15 "2021-05-17T05:45:01Z")

</div>

Vielen Dank noch einmal.

Alle Udemy-Links auf meiner Seite sind fehlgeschlagen.

Ich habe gerade ein anderes Forum auf Discourse-Basis ausprobiert und denselben Fehlercode 403 festgestellt.

Forum-Website: [https://forum.quantifiedself.com/](https://forum.quantifiedself.com/)

Test 1: OK  
Amazon [Amazon.com](https://www.amazon.com/Deep-Learning-Python-Francois-Chollet/dp/1617294438)

Test 2: NG mit Fehlercode 500. Ich vermute, diese Seite wurde noch nicht auf die neueste Version aktualisiert.  
Medium [https://medium.com/swlh/5-free-python-courses-for-beginners-to-learn-online-e1ca90687caf](https://medium.com/swlh/5-free-python-courses-for-beginners-to-learn-online-e1ca90687caf)

 ![medium error code 500 on quantifiedself forum](https://global.discourse-cdn.com/meta/original/3X/9/8/98846b3333089f28e7636c8e948611e4203907be.jpeg)

Test 3: NG, derselbe Fehlercode 403, genau wie bei mir.  
Udemy [https://www.udemy.com/course/certified-kubernetes-application-developer/](https://www.udemy.com/course/certified-kubernetes-application-developer/)

 ![udemy error code 403 on quantifiedself forum](https://global.discourse-cdn.com/meta/original/3X/2/c/2c690f01a706b02e3c5a2eabc1b0a170b4257699.jpeg)

---

<div class="post-metadata">

### Author: ![SkyLin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/skylin/32/206593_2.png) [@SkyLin](https://meta.discourse.org/u/SkyLin)
#### Post date: [17. Mai 2021 um 06:21 UTC](https://meta.discourse.org/t/some-sites-are-blocked-from-oneboxing/189889/16 "2021-05-17T06:21:40Z")

</div>

Ich habe alle mir bekannten Discourse-basierten Seiten getestet, das Ergebnis sieht wie folgt aus:

| onebox | Site 1 | Site 2 | Site 3 | Site 4 | Site 5 | Site 6 | Site 7 | Site 8 |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Amazon | OK | OK | OK | OK | OK | OK | OK | OK |
| Medium | OK | NG | OK | NG | NG | OK | NG | NG |
| Udemy | NG | NG | OK | OK | OK | OK | NG | OK |
| Standort\* | Tokio | Kalifornien | Kalifornien | Kalifornien | Kalifornien | Paris | Kalifornien | England |
| | | | Irland | Virginia | | | Chicago | |
| | | | Afrika | Alaska | | | | |
| \*getestet mit [Check host](https://check-host.net/ip-info) | | | | | | | | |

Site 1. [https://vip.studycamp.tw/](https://vip.studycamp.tw/)  
Site 2. [https://forum.quantifiedself.com/](https://forum.quantifiedself.com/)  
Site 3. [https://discussions.udacity.com/](https://discussions.udacity.com/)  
Site 4. [https://forum.uipath.com/](https://forum.uipath.com/)  
Site 5. [https://forums.envato.com/](https://forums.envato.com/)  
Site 6. [https://rideabl.es/](https://rideabl.es/)  
Site 7. [https://blenderartists.org/](https://blenderartists.org/)  
Site 8. [https://se23.life/](https://se23.life/)

---

<div class="post-metadata">

### Author: ![mstm](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@mstm](https://meta.discourse.org/u/mstm)
#### Post date: [17. Mai 2021 um 06:28 UTC](https://meta.discourse.org/t/some-sites-are-blocked-from-oneboxing/189889/17 "2021-05-17T06:28:36Z")

</div>

> [@SkyLin](#):
>
> Und noch eine Sache: Die Onebox-Vorschau für Amazon funktioniert jetzt nach Jamies Update-Code einwandfrei. Die Vorschau vor dem Update findest du in diesem Bild.

Du hast Glück, denn nur [amazon.com](http://amazon.com) funktioniert. Bei allen anderen Amazon-Seiten funktioniert die Onebox-Vorschau nicht.

---

<div class="post-metadata">

### Author: ![jamie.wilson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamie.wilson/32/185466_2.png) [@jamie.wilson](https://meta.discourse.org/u/jamie.wilson)
#### Post date: [17. Mai 2021 um 21:09 UTC](https://meta.discourse.org/t/some-sites-are-blocked-from-oneboxing/189889/18 "2021-05-17T21:09:28Z")

</div>

> [@SkyLin](#):
>
> `curl https://www.udemy.com/course/certified-kubernetes-application-developer/ -o deleteme.html --verbose`

Die Websites, die Sie testen, blockieren möglicherweise den Curl-Benutzeragenten. Der Oneboxing-Prozess verwendet je nach URL, die Sie Oneboxen möchten, den Benutzeragenten eines echten Browsers. Im Moment verwendet er in solchen Fällen folgenden Benutzeragenten:

`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`

Versuchen Sie, Ihre Curl-Tests mit der Option `-A` auszuführen. Zum Beispiel:

`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`

Was ist das Ergebnis dieses Befehls auf Ihrer Seite?

Falls es immer noch fehlschlägt:

1. Haben Sie eine ungewöhnlich große Anzahl von Oneboxing-Anfragen an diese Websites gesendet? Möglicherweise wurden Sie von den betreffenden Websites vorübergehend blockiert, und die Dinge funktionieren nach einer angemessenen Wartezeit wieder (dies liegt bei den Betreibern der Websites, und leider können wir von unserer Seite nichts dagegen unternehmen).

2. Wo befindet sich Ihr Server? Haben Sie Zugriff auf eine Maschine an einem anderen Standort, von der aus Sie Tests durchführen? Selbst das Testen von Ihrem persönlichen Computer anstelle Ihres Produktions-Servers könnte zu anderen Ergebnissen führen.

---

<div class="post-metadata">

### Author: ![SkyLin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/skylin/32/206593_2.png) [@SkyLin](https://meta.discourse.org/u/SkyLin)
#### Post date: [18. Mai 2021 um 00:28 UTC](https://meta.discourse.org/t/some-sites-are-blocked-from-oneboxing/189889/19 "2021-05-18T00:28:33Z")

</div>

Danke für den Rat.

Der Rückgabecode ist immer noch 403:

```plaintext
root@localhost:~# 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
  % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed
  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 2606:4700::6810:4155:443...
* TCP_NODELAY set
  0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0* Connected to www.udemy.com (2606:4700::6810:4155) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
} [5 bytes data]
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* TLSv1.3 (IN), TLS handshake, Server hello (2):
{ [122 bytes data]
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
{ [19 bytes data]
* TLSv1.3 (IN), TLS handshake, Certificate (11):
{ [3726 bytes data]
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
{ [264 bytes data]
* TLSv1.3 (IN), TLS handshake, Finished (20):
{ [52 bytes data]
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
} [1 bytes data]
* TLSv1.3 (OUT), TLS handshake, Finished (20):
} [52 bytes data]
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use h2
* Server certificate:
* subject: C=US; ST=California; L=San Francisco; O=Udemy, Inc.; CN=*.udemy.com
* start date: Sep 10 15:45:40 2020 GMT
* expire date: Oct 12 15:45:40 2021 GMT
* subjectAltName: host "www.udemy.com" matched cert's "*.udemy.com"
* issuer: C=BE; O=GlobalSign nv-sa; CN=GlobalSign RSA OV SSL CA 2018
* SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
} [5 bytes data]
* Using Stream ID: 1 (easy handle 0x5591c76d8e10)
} [5 bytes data]
> GET /course/certified-kubernetes-application-developer/ HTTP/2
> Host: www.udemy.com
> user-agent: 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
> accept: */*
>
{ [5 bytes data]
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
{ [230 bytes data]
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
{ [230 bytes data]
* old SSL session ID is stale, removing
{ [5 bytes data]
* Connection state changed (MAX_CONCURRENT_STREAMS == 256)!
} [5 bytes data]
< HTTP/2 403
< date: Mon, 17 May 2021 23:59:37 GMT
< content-type: text/plain; charset=UTF-8
< content-length: 16
< x-frame-options: SAMEORIGIN
< cache-control: private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
< expires: Thu, 01 Jan 1970 00:00:01 GMT
< cf-request-id: 0a1e5e6b920000952193363000000001
< expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
< set-cookie: __cf_bm=3224e014d6b0b4eca1cf8a59c6c180928b2ffa0f-1621295977-1800-AU4UK/k3sl61kbMPYizcsl1TI7NAHkvE1mfjoKIPdrvGAJJeYUF8e72hQljXNwVTO+BcqfsAXxoiQDEy1cL+aVA=; path=/; expires=Tue, 18-May-21 00:29:37 GMT; domain=.udemy.com; HttpOnly; Secure; SameSite=None
< x-content-type-options: nosniff
< server: cloudflare
< cf-ray: 6510ccf28d0a9521-NRT
<
{ [16 bytes data]
100 16 100 16 0 0 10 0 0:00:01 0:00:01 --:--:-- 10
* Connection #0 to host www.udemy.com left intact

```

> [@jamie.wilson](#):
>
> a) Haben Sie eine ungewöhnlich große Anzahl von Oneboxing-Anfragen gegen diese Seiten ausgeführt?

Ja, das habe ich. Aber die Klon-Seite hat seit mehr als 20 Tagen keine Inhalte mehr veröffentlicht und hat das gleiche Problem.

Außerdem haben laut der [Testtabelle](https://meta.discourse.org/t/onebox-preview-issue/189889/16?u=skylin), die ich gestern erwähnt habe, die Seiten 2 und 7 das gleiche Problem, und ich glaube, es ist der erste Udemy-bezogene Beitrag auf diesen Seiten.

> [@jamie.wilson](#):
>
> b) Wo befindet sich Ihr Server? Haben Sie Zugriff auf eine Maschine an einem anderen Standort, von der aus Sie Tests durchführen können?

Mein Serverstandort befindet sich in Japan. Ich kann die Klon-Seite später heute für Tests in eine andere Region wie die USA verlegen und werde dann erneut aktualisieren.

**Update** :

1. Nach 11 Stunden ist es nach dem Verschieben der geklonten Testseite von Tokio nach Kalifornien immer noch derselbe 403er Fehler. Ich werde später nach Europa wechseln, um Tests durchzuführen, und morgen erneut aktualisieren.
2. Der gleiche 403er Fehlercode in London.

Nochmals vielen Dank.

---

<div class="post-metadata">

### Author: ![jamie.wilson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamie.wilson/32/185466_2.png) [@jamie.wilson](https://meta.discourse.org/u/jamie.wilson)
#### Post date: [18. Mai 2021 um 16:04 UTC](https://meta.discourse.org/t/some-sites-are-blocked-from-oneboxing/189889/20 "2021-05-18T16:04:49Z")

</div>

Ich habe von meiner Seite aus etwas mehr getestet.

Ich kann die Udemy-URL sowohl von meinem privaten Internetanbieter (Nordamerika) als auch von einer Maschine in einem hochwertigen Rechenzentrum (Nordamerika) erfolgreich mit `curl` erreichen.

Ein Versuch von einem populären Hosting-Anbieter (Nordamerika) schlägt fehl. Auch ein Versuch von einem anderen populären Hosting-Anbieter (Europa) schlägt fehl.

Wenn es fehlschlägt, lautet der zurückgegebene Inhalt:

`error code: 1020`

was von folgendem stammt:

> [@SkyLin](#):
>
> `server: cloudflare`

Dieser Beitrag von Cloudflare erklärt, was ihr Fehler 1020 bedeutet und was Sie tun können, um ihn zu beheben:

[https://community.cloudflare.com/t/community-tip-fixing-error-1020-access-denied/66439](https://community.cloudflare.com/t/community-tip-fixing-error-1020-access-denied/66439)

---

<div class="post-metadata">

### Author: ![TallTrees](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/talltrees/32/208620_2.png) [@TallTrees](https://meta.discourse.org/u/TallTrees)
#### Post date: [17. Juni 2021 um 13:19 UTC](https://meta.discourse.org/t/some-sites-are-blocked-from-oneboxing/189889/21 "2021-06-17T13:19:06Z")

</div>

> [@SkyLin](#):
>
> Seite 8. [https://se23.life/](https://se23.life/)

Derzeit 2.7.0.beta8, falls das hilft.

---

<div class="post-metadata">

### Author: ![SkyLin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/skylin/32/206593_2.png) [@SkyLin](https://meta.discourse.org/u/SkyLin)
#### Post date: [28. Juli 2021 um 12:54 UTC](https://meta.discourse.org/t/some-sites-are-blocked-from-oneboxing/189889/22 "2021-07-28T12:54:23Z")

</div>

Das neue Build löst dieses Problem; die Onebox-Vorschau von Udemy wird wieder angezeigt. Ich bin mir nicht sicher, welcher Teil das behoben hat.

> **[Comparing 91bf85a...5faa725 · discourse/docker\_manager](https://github.com/discourse/docker_manager/compare/91bf85a...5faa725)**
>
> Plugin for use with discourse docker image. Contribute to discourse/docker\_manager development by creating an account on GitHub.

> **[Comparing 8de89895...e28fbf73 · discourse/discourse](https://github.com/discourse/discourse/compare/8de89895...e28fbf73)**
>
> A platform for community discussion. Free, open, simple. - Comparing 8de89895...e28fbf73 · discourse/discourse

> **[Comparing 855436d...eb17e25 · discourse/discourse-calendar](https://github.com/discourse/discourse-calendar/compare/855436d...eb17e25)**
>
> Adds the ability to create a dynamic calendar in the first post of a topic. - Comparing 855436d...eb17e25 · discourse/discourse-calendar

> **[Comparing 6b0ee89...4c9d850 · discourse/discourse-reactions](https://github.com/discourse/discourse-reactions/compare/6b0ee89...4c9d850)**
>
> Moved to https://github.com/discourse/discourse/tree/main/plugins/discourse-reactions - Comparing 6b0ee89...4c9d850 · discourse/discourse-reactions

> **[Comparing 5e0ef4b...f5c5f28 · discourse/discourse-solved](https://github.com/discourse/discourse-solved/compare/5e0ef4b...f5c5f28)**
>
> Allow accepted answers on topics. Contribute to discourse/discourse-solved development by creating an account on GitHub.
