GET
H/1.1
|
200
OK
|
Primary Request
Cookie set
best-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html
Show response
www.golem.de/news/
|
113 KB
31 KB
|
363ms
25ms
|
Document
text/html |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H/1.1
|
200
OK
|
golem_main_129-min.css
www.golem.de/staticrl/styles/
|
73 KB
20 KB
|
55ms
24ms
|
Stylesheet
text/css |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H/1.1
|
200
OK
|
gg2_1-0-0-min.css
www.golem.de/staticrl/styles/
|
3 KB
1 KB
|
65ms
17ms
|
Stylesheet
text/css |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H/1.1
|
200
OK
|
golem_main_114-min.js
Show response
www.golem.de/staticrl/scripts/
|
100 KB
41 KB
|
105ms
57ms
|
Script
application/javascript |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H2
|
200
|
metaTag.min.js
Show response
cdn.stroeerdigitalgroup.de/metatag/live/ctc_golem/
|
257 KB
62 KB
|
107ms
8ms
|
Script
application/javascript |
2a02:26f0:6c00:194::5f76
AKAMAI-ASN1
|
|
|
GET
H/1.1
|
200
OK
|
logo-g.png
www.golem.de/staticrl/images/
|
4 KB
4 KB
|
76ms
29ms
|
Image
image/png |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H/1.1
|
200
OK
|
141275-196127-196126_rc.jpg
www.golem.de/1905/
|
76 KB
77 KB
|
95ms
49ms
|
Image
image/jpeg |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H/1.1
|
200
OK
|
gif
cpxl.golem.de/
|
43 B
292 B
|
79ms
15ms
|
Image
image/gif |
2a00:13c8:f5::f:4b3d:181
SYSELEVEN SysElev...
|
|
General
- Full URL
- https://cpxl.golem.de/gif?u=https%3A%2F%2Fwww.golem.de%2F&d=1557931142&f=ev&v=d&t=ad%2Fjobs2018kw10
- Requested by
- Host: www.golem.de
URL: https://www.golem.de/news/best-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_RSA, AES_256_GCM
- Server
-
2a00:13c8:f5::f:4b3d:181
, Germany,
ASN25291
(SYSELEVEN SysEleven GmbH, DE),
- Reverse DNS
- Software
-
/
Express
- Resource Hash
- 98b3d9d20e032f90aca49e9b116225d539ff6fbdb7e42c3c363f63896ac03d2a
|
GET
H/1.1
|
200
OK
|
gif
cpxl.golem.de/
|
43 B
292 B
|
80ms
16ms
|
Image
image/gif |
2a00:13c8:f5::f:4b3d:181
SYSELEVEN SysElev...
|
|
General
- Full URL
- https://cpxl.golem.de/gif?u=https%3A%2F%2Fwww.golem.de%2F&d=1557932041&f=ev&v=d&t=ad%2Fdeals2016kw24
- Requested by
- Host: www.golem.de
URL: https://www.golem.de/news/best-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_RSA, AES_256_GCM
- Server
-
2a00:13c8:f5::f:4b3d:181
, Germany,
ASN25291
(SYSELEVEN SysEleven GmbH, DE),
- Reverse DNS
- Software
-
/
Express
- Resource Hash
- 98b3d9d20e032f90aca49e9b116225d539ff6fbdb7e42c3c363f63896ac03d2a
|
GET
H/1.1
|
200
OK
|
finwave-snap.jpg
video.golem.de/teaser/1/1/22699/thumb-high-1000/
|
113 KB
114 KB
|
79ms
16ms
|
Image
image/jpeg |
2a00:13c8:f5::f:4b3d:175
SYSELEVEN SysElev...
|
|
|
GET
H/1.1
|
200
OK
|
links.png
www.golem.de/_img/gg/
|
195 B
550 B
|
40ms
23ms
|
Image
image/png |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H/1.1
|
200
OK
|
rechts.png
www.golem.de/_img/gg/
|
197 B
552 B
|
25ms
20ms
|
Image
image/png |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H/1.1
|
200
OK
|
minus.png
www.golem.de/_img/gg/
|
404 B
760 B
|
25ms
20ms
|
Image
image/png |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H/1.1
|
200
OK
|
icon-ggfs_w2.png
www.golem.de/staticrl/images/
|
274 B
630 B
|
44ms
27ms
|
Image
image/png |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H/1.1
|
200
OK
|
golemgallery2_125-min.js
Show response
www.golem.de/staticrl/scripts/
|
14 KB
5 KB
|
29ms
25ms
|
Script
application/javascript |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H/1.1
|
200
OK
|
account_js_dt18_1_0.php
Show response
www.golem.de/abo/
|
88 B
474 B
|
35ms
33ms
|
Script
application/javascript |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H/1.1
|
200
OK
|
sdcv.js
Show response
ads.golem.de/
|
63 B
430 B
|
81ms
16ms
|
Script
application/javascript |
2a00:13c8:f5::f:4b3d:17a
SYSELEVEN SysElev...
|
|
|
GET
H/1.1
|
200
OK
|
iam.js
Show response
script.ioam.de/
|
32 KB
10 KB
|
74ms
12ms
|
Script
application/javascript |
91.215.103.64
INFONLINE-AS
|
|
|
GET
H/1.1
|
200
OK
|
blank.gif
ssl-golem.met.vgwort.de/
Redirect Chain
-
https://ssl-golem.met.vgwort.de/na/8d3a440bbcf940299484ce12b865866d
-
https://ssl-golem.met.vgwort.de/blank.gif
|
43 B
310 B
|
10ms
7ms
|
Image
image/gif |
161.156.66.178
SoftLayer Technol...
|
|
|
GET
H2
|
200
|
gpt.js
Show response
www.googletagservices.com/tag/js/
|
31 KB
11 KB
|
91ms
39ms
|
Script
text/javascript |
2a00:1450:4001:816::2002
Google LLC
|
|
|
GET
H2
|
200
|
yieldlove-bidder-stroeer.js
Show response
cdn-a.yieldlove.com/
|
297 KB
87 KB
|
3085ms
18ms
|
Script
application/javascript |
13.32.223.212
Amazon.com
|
|
|
GET
H/1.1
|
200
OK
|
mtrcs_679600.js
Show response
s400.mxcdn.net/bb-mx/serve/
|
115 KB
45 KB
|
7101ms
16ms
|
Script
text/javascript |
104.111.214.228
Akamai Technologies
|
|
|
GET
H/1.1
|
302
Moved Temporarily
|
dmp
Show response
tracking.m6r.eu/sync/
Redirect Chain
-
https://tracking.m6r.eu/sync/dmp
-
https://tracking.m6r.eu/sync/dmp?checkcookies=true
|
0
-1 B
|
3107ms
46ms
|
XHR
text/plain |
2.19.33.59
AKAMAI-ASN1
|
|
|
GET
H/1.1
|
200
OK
|
rc
Show response
si.nuggad.net/
|
839 B
1 KB
|
3211ms
32ms
|
Script
text/javascript |
80.82.201.88
UNBELIEVABLE-AS
|
|
|
GET
H/1.1
|
200
OK
|
DroidSans-Bold.woff2
www.golem.de/staticrl/fonts/droidsans/
|
22 KB
22 KB
|
25ms
24ms
|
Font
application/octet-stream |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H/1.1
|
200
OK
|
DroidSerif.woff2
www.golem.de/staticrl/fonts/droidserif/
|
22 KB
22 KB
|
25ms
24ms
|
Font
application/octet-stream |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H/1.1
|
200
OK
|
DroidSans.woff2
www.golem.de/staticrl/fonts/droidsans/
|
21 KB
21 KB
|
20ms
19ms
|
Font
application/octet-stream |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
DATA
|
200
OK
|
truncated
/
|
335 B
0
|
|
Image
image/svg+xml |
|
|
|
GET
H/1.1
|
200
OK
|
DroidSerif-Italic.woff2
www.golem.de/staticrl/fonts/droidserif/
|
20 KB
20 KB
|
19ms
18ms
|
Font
application/octet-stream |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H/1.1
|
200
OK
|
minibanner_flat_620.shtml
Show response
www.golem.de/microsite/abo/
Frame 2407
|
963 B
792 B
|
18ms
17ms
|
Document
text/html |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H2
|
200
|
async.js
Show response
static.plista.com/
|
61 KB
17 KB
|
93ms
24ms
|
Script
application/javascript |
138.201.125.235
HETZNER-AS
|
|
|
GET
H/1.1
|
200
OK
|
btn-follow-sp4b.png
www.golem.de/staticrl/images/
|
3 KB
3 KB
|
33ms
25ms
|
Image
image/png |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H2
|
200
|
integrator.js
Show response
adservice.google.de/adsid/
|
109 B
481 B
|
65ms
19ms
|
Script
application/javascript |
2a00:1450:4001:81c::2002
Google LLC
|
|
|
GET
H2
|
200
|
integrator.js
Show response
adservice.google.com/adsid/
|
122 B
261 B
|
20ms
16ms
|
Script
application/javascript |
2a00:1450:4001:81a::2002
Google LLC
|
|
|
GET
H2
|
200
|
pubads_impl_2019050901.js
Show response
securepubads.g.doubleclick.net/gpt/
|
150 KB
55 KB
|
2527ms
58ms
|
Script
text/javascript |
216.58.206.2
Google LLC
|
|
|
GET
DATA
|
200
OK
|
truncated
/
|
126 B
0
|
|
Image
image/svg+xml |
|
|
|
GET
DATA
|
200
OK
|
truncated
/
|
66 B
0
|
|
Image
image/webp |
|
|
|
GET
H2
|
200
|
adsbygoogle.js
Show response
pagead2.googlesyndication.com/pagead/js/
|
87 KB
33 KB
|
81ms
29ms
|
Script
text/javascript |
2a00:1450:4001:820::2002
Google LLC
|
|
General
- Full URL
- https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
- Requested by
- Host: www.golem.de
URL: https://www.golem.de/news/best-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a00:1450:4001:820::2002
Frankfurt am Main, Germany,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
cafe /
- Resource Hash
- 1a774f9ff4c82d8feaa8412ed8a2520174ebda464b59bf772967a319d520e3ed
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
GET
H/1.1
|
200
OK
|
golem_csi-121-min.js
Show response
www.golem.de/staticrl/scripts/adsense/
|
2 KB
1 KB
|
25ms
24ms
|
Script
application/javascript |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H/1.1
|
200
OK
|
gx-ads.js
Show response
ads.golem.de/track.ads/
|
226 B
594 B
|
18ms
17ms
|
Script
application/javascript |
2a00:13c8:f5::f:4b3d:17a
SYSELEVEN SysElev...
|
|
|
GET
H/1.1
|
200
OK
|
font-face-1.0.5.css
www.golem.de/staticrl/styles/
Frame 2407
|
2 KB
729 B
|
20ms
19ms
|
Stylesheet
text/css |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H/1.1
|
200
OK
|
minibanner_flat2.css
www.golem.de/microsite/abo/
Frame 2407
|
2 KB
1 KB
|
26ms
25ms
|
Stylesheet
text/css |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H/1.1
|
200
OK
|
160622-teaser_4scotty.png
www.golem.de/_img/
|
22 KB
22 KB
|
42ms
23ms
|
Image
image/png |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H2
|
200
|
identitystatus
Show response
irqs.ioam.de/
|
25 B
204 B
|
71ms
10ms
|
XHR
application/vnd.api+json |
193.46.63.75
INFONLINE-AS
|
|
General
- Full URL
- https://irqs.ioam.de/identitystatus?offerIdentifier=golem&siteIdentifier=G_SEC&sampleType=in&pixelType=CP&isFadeoutFlash=true&isFadeoutFrame=true&isFadeoutForm=true&positionTop=10&positionLeft=100&zIndex=1100000&c=0.3302245518209368
- Requested by
- Host: script.ioam.de
URL: https://script.ioam.de/iam.js
- Protocol
- H2
- Security
- TLS 1.2,
ECDHE_RSA, AES_128_GCM
- Server
-
193.46.63.75
Alfter, Germany,
ASN43407
(INFONLINE-AS, NL),
- Reverse DNS
- irqs.ioam.de
- Software
-
nginx /
- Resource Hash
- 9efa53ec1a261a8576a66a71befaf9d03c1a108aac36271f4599b87597b8a71e
- Security Headers
-
Name |
Value |
Strict-Transport-Security |
max-age=15768000 |
|
GET
H/1.1
|
200
OK
|
tx.io
Show response
de.ioam.de/
Redirect Chain
-
https://de.ioam.de/tx.io?st=golem&cp=G_SEC&sv=i2&sc=yes&pt=CP&ps=lin&er=N22&rf=&r2=&ur=www.golem.de&xy=1600x1200x24&lo=DE%2FHessen&cb=0018&i2=00185baa8738ec99f5cdc29c6&ep=1588577014&vr=414&id=s9k4q...
-
https://de.ioam.de/tx.io?st=golem&cp=G_SEC&sv=i2&sc=yes&pt=CP&ps=lin&er=N22&rf=&r2=&ur=www.golem.de&xy=1600x1200x24&lo=DE%2FHessen&cb=0018&i2=00185baa8738ec99f5cdc29c6&ep=1588577014&vr=414&id=s9k4q...
|
0
694 B
|
18ms
13ms
|
Script
application/x-javascript |
91.215.100.40
INFONLINE-AS
|
|
General
- Full URL
- https://de.ioam.de/tx.io?st=golem&cp=G_SEC&sv=i2&sc=yes&pt=CP&ps=lin&er=N22&rf=&r2=&ur=www.golem.de&xy=1600x1200x24&lo=DE%2FHessen&cb=0018&i2=00185baa8738ec99f5cdc29c6&ep=1588577014&vr=414&id=s9k4qs&i3=00185baa8738ec99f5cdc29c6%3A1584889286649%3A1557932486649%3A.golem.de%3A1%3Agolem%3AG_SEC%3Anoevent%3A1557932486649%3Anby4n5&n1=1&dntt=0<=1557932486653&ev=&cs=jc2sjt&mo=1&sr=71
- Requested by
- Host: www.golem.de
URL: https://www.golem.de/news/best-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_RSA, AES_256_GCM
- Server
-
91.215.100.40
, Germany,
ASN43407
(INFONLINE-AS, NL),
- Reverse DNS
- de4.ioam.de
- Software
-
nginx /
BLACKBIRD-RCV v1.05.0 0023
- Resource Hash
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
GET
H/1.1
|
200
OK
|
IjvnOpbzskTW
Show response
cdn.onthe.io/io.js/
|
72 KB
27 KB
|
1103ms
28ms
|
Script
text/javascript |
138.197.186.29
DigitalOcean
|
|
|
GET
H2
|
200
|
ga.js
Show response
www.google-analytics.com/
|
45 KB
17 KB
|
8ms
6ms
|
Script
text/javascript |
2a00:1450:4001:814::200e
Google LLC
|
|
General
- Full URL
- https://www.google-analytics.com/ga.js
- Requested by
- Host: www.golem.de
URL: https://www.golem.de/news/best-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a00:1450:4001:814::200e
Frankfurt am Main, Germany,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
Golfe2 /
- Resource Hash
- 1259ea99bd76596239bfd3102c679eb0a5052578dc526b0452f4d42f8bcdd45f
- Security Headers
-
Name |
Value |
Strict-Transport-Security |
max-age=10886400; includeSubDomains; preload |
X-Content-Type-Options |
nosniff |
|
GET
H/1.1
|
200
OK
|
146005_67aa4bdf07fc8a6dd839add1ec7302a1
Show response
lib.selfcampaign.com/tag/
|
9 KB
4 KB
|
6413ms
6110ms
|
Script
text/javascript |
148.251.131.173
HETZNER-AS
|
|
|
GET
H/1.1
|
200
OK
|
rmp-rl_129-min.js
Show response
www.golem.de/staticrl/scripts/radiant/
|
17 KB
7 KB
|
27ms
23ms
|
Script
application/javascript |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H/1.1
|
200
OK
|
golem_cpxl_113-min.js
Show response
www.golem.de/staticrl/scripts/
|
8 KB
4 KB
|
27ms
23ms
|
Script
application/javascript |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H/1.1
|
200
OK
|
sp_140505-194704-194702_rc.jpg
www.golem.de/1905/
|
32 KB
32 KB
|
20ms
17ms
|
Image
image/jpeg |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H/1.1
|
200
OK
|
sp_140993-194914-194911_rc.jpg
www.golem.de/1905/
|
23 KB
23 KB
|
36ms
19ms
|
Image
image/jpeg |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H/1.1
|
200
OK
|
sp_140743-194296-194294_rc.jpg
www.golem.de/1904/
|
18 KB
19 KB
|
25ms
23ms
|
Image
image/jpeg |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H/1.1
|
200
OK
|
cpx.php
cpx.golem.de/
|
42 B
420 B
|
415ms
25ms
|
Image
image/gif |
77.247.84.149
SYSELEVEN SysElev...
|
|
|
GET
H2
|
200
|
cfdeb2e72a2eff788500e423.js
Show response
static.plista.com/async/pub/
|
47 KB
5 KB
|
12ms
12ms
|
Script
application/javascript |
138.201.125.235
HETZNER-AS
|
|
|
GET
H/1.1
|
200
OK
|
display-mit-werbung5.png
www.golem.de/microsite/abo/img/
Frame 2407
|
984 B
1 KB
|
19ms
18ms
|
Image
image/png |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H/1.1
|
200
OK
|
display-ohne-werbung5.png
www.golem.de/microsite/abo/img/
Frame 2407
|
875 B
1 KB
|
24ms
22ms
|
Image
image/png |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H/1.1
|
200
OK
|
DroidSans-Bold.woff2
www.golem.de/staticrl/fonts/droidsans/
Frame 2407
|
22 KB
22 KB
|
29ms
26ms
|
Font
application/octet-stream |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H/1.1
|
200
OK
|
DroidSans.woff2
www.golem.de/staticrl/fonts/droidsans/
Frame 2407
|
21 KB
21 KB
|
35ms
18ms
|
Font
application/octet-stream |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H/1.1
|
200
OK
|
sp_irS3-420742_rc.jpg
www.golem.de/6249/
|
68 B
486 B
|
68ms
67ms
|
Image
image/png |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H2
|
200
|
collect
stats.g.doubleclick.net/r/
Redirect Chain
-
https://ssl.google-analytics.com/r/__utm.gif?utmwv=5.7.2&utms=1&utmn=530231576&utmhn=www.golem.de&utmcs=UTF-8&utmsr=1600x1200&utmvp=1585x1200&utmsc=24-bit&utmul=en-us&utmje=0&utmfl=-&utmdt=Best%20o...
-
https://stats.g.doubleclick.net/r/collect?v=1&aip=1&t=dc&_r=3&tid=UA-518800-2&cid=154558382.1557932487&jid=1525606687&_v=5.7.2&z=530231576
|
35 B
102 B
|
15ms
15ms
|
Image
image/gif |
2a00:1450:400c:c08::9b
Google LLC
|
|
General
- Full URL
- https://stats.g.doubleclick.net/r/collect?v=1&aip=1&t=dc&_r=3&tid=UA-518800-2&cid=154558382.1557932487&jid=1525606687&_v=5.7.2&z=530231576
- Requested by
- Host: www.golem.de
URL: https://www.golem.de/news/best-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a00:1450:400c:c08::9b
Brussels, Belgium,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
Golfe2 /
- Resource Hash
- 8337212354871836e6763a41e615916c89bac5b3f1f0adf60ba43c7c806e1015
- Security Headers
-
Name |
Value |
Strict-Transport-Security |
max-age=10886400; includeSubDomains; preload |
X-Content-Type-Options |
nosniff |
|
GET
H/1.1
|
200
OK
|
global_config.json
Show response
s3.amazonaws.com/homad-global-configs.schneevonmorgen.com/
|
53 B
642 B
|
418ms
116ms
|
XHR
application/json |
52.216.228.179
Amazon.com
|
|
|
GET
H/1.1
|
200
OK
|
homadclienthttpsle-json.php
Show response
video.golem.de/staticrl/scripts/radiant/
|
291 B
682 B
|
87ms
34ms
|
XHR
application/json |
2a00:13c8:f5::f:4b3d:175
SYSELEVEN SysElev...
|
|
|
GET
H/1.1
|
200
OK
|
rmp.min.js
Show response
www.golem.de/staticrl/scripts/radiant/4.9.1/js/
|
378 KB
110 KB
|
22ms
21ms
|
Script
application/javascript |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H2
|
200
|
show_ads_impl.js
Show response
pagead2.googlesyndication.com/pagead/js/r20190513/r20190131/
|
204 KB
76 KB
|
47ms
45ms
|
Script
text/javascript |
2a00:1450:4001:820::2002
Google LLC
|
|
General
- Full URL
- https://pagead2.googlesyndication.com/pagead/js/r20190513/r20190131/show_ads_impl.js
- Requested by
- Host: pagead2.googlesyndication.com
URL: https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a00:1450:4001:820::2002
Frankfurt am Main, Germany,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
cafe /
- Resource Hash
- 3d5094c1d23b5cf90a1e612d406a1c09b89533c889c287e316aa8ec1da3151f0
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
show_ads_impl.js
Show response
pagead2.googlesyndication.com/pagead/js/r20190513/r20190131/
Frame 6187
|
204 KB
76 KB
|
44ms
43ms
|
Script
text/javascript |
2a00:1450:4001:820::2002
Google LLC
|
|
General
- Full URL
- https://pagead2.googlesyndication.com/pagead/js/r20190513/r20190131/show_ads_impl.js
- Requested by
- Host: pagead2.googlesyndication.com
URL: https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a00:1450:4001:820::2002
Frankfurt am Main, Germany,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
cafe /
- Resource Hash
- 3d5094c1d23b5cf90a1e612d406a1c09b89533c889c287e316aa8ec1da3151f0
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
ca-pub-2342548244565729.js
Show response
pagead2.googlesyndication.com/pub-config/r20160913/
|
133 B
277 B
|
26ms
25ms
|
Script
text/javascript |
2a00:1450:4001:820::2002
Google LLC
|
|
General
- Full URL
- https://pagead2.googlesyndication.com/pub-config/r20160913/ca-pub-2342548244565729.js
- Requested by
- Host: pagead2.googlesyndication.com
URL: https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a00:1450:4001:820::2002
Frankfurt am Main, Germany,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
sffe /
- Resource Hash
- 7e7fa886d5d75c745d95be4fc3c5bfb4c988019b3f643c669734612345e1b8c8
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
zrt_lookup.html
googleads.g.doubleclick.net/pagead/html/r20190513/r20190131/
Frame 0A58
|
0
0
|
13ms
7ms
|
Document
text/html |
2a00:1450:4001:809::2002
Google LLC
|
|
General
- Full URL
- https://googleads.g.doubleclick.net/pagead/html/r20190513/r20190131/zrt_lookup.html
- Requested by
- Host: pagead2.googlesyndication.com
URL: https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a00:1450:4001:809::2002
Frankfurt am Main, Germany,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
cafe /
- Resource Hash
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
POST
H/1.1
|
204
No Content
|
json
Show response
cpxl.golem.de/
|
0
474 B
|
68ms
15ms
|
XHR
text/plain |
2a00:13c8:f5::f:4b3d:181
SYSELEVEN SysElev...
|
|
|
POST
H/1.1
|
204
No Content
|
json
Show response
cpxl.golem.de/
|
0
474 B
|
64ms
16ms
|
XHR
text/plain |
2a00:13c8:f5::f:4b3d:181
SYSELEVEN SysElev...
|
|
|
GET
H2
|
200
|
5a9fe1dae45a1d155411456a.js
Show response
insights.plista.com/app/5a/9f/e1/
|
53 KB
19 KB
|
313ms
16ms
|
Script
application/javascript |
23.111.11.152
Highwinds Network...
|
|
|
GET
H2
|
200
|
async_lib.js
Show response
farm.plista.com/
|
32 KB
11 KB
|
155ms
146ms
|
Script
application/javascript |
2a01:4f8:202:42d4::2
HETZNER-AS
|
|
General
- Full URL
- https://farm.plista.com/async_lib.js?json=%7B%22name%22%3A%22PLISTA_%5B0%5D%22%2C%22publickey%22%3A%22cfdeb2e72a2eff788500e423%22%2C%22objectid%22%3A%22141275%22%2C%22rev%22%3A1555494349%2C%22req%22%3A%5B%5B%22isarticle%22%5D%2C%5B%22widgetload%22%2C%7B%22widgets%22%3A%5B%22underArticle%22%5D%2C%22ab%22%3A0%2C%22vo%22%3Atrue%2C%22pm%22%3Atrue%2C%22sc%22%3A%221600x1200%22%2C%22px%22%3A1%2C%22vs%22%3A%220.6.12%22%2C%22vp%22%3Atrue%2C%22ww%22%3A1600%2C%22wb%22%3Atrue%7D%5D%5D%7D&x=1557932486940
- Requested by
- Host: static.plista.com
URL: https://static.plista.com/async.js
- Protocol
- H2
- Security
- TLS 1.2,
ECDHE_RSA, AES_256_GCM
- Server
-
2a01:4f8:202:42d4::2
Schriesheim, Germany,
ASN24940
(HETZNER-AS, DE),
- Reverse DNS
- Software
-
nginx /
- Resource Hash
- 54004a8f61222fc9e81860418b192ab08ffe085746205e2c3bb7c67f8fbf83d4
|
GET
H/1.1
|
200
OK
|
config.json
Show response
hgc-cf-cache-1.svonm.com/www.golem.de/
|
288 B
946 B
|
346ms
9ms
|
XHR
application/json |
13.32.223.225
Amazon.com
|
|
|
GET
H/1.1
|
200
OK
|
sp_irS3-150589_rc.jpg
www.golem.de/3509/adfeedback/
|
68 B
486 B
|
65ms
61ms
|
Image
image/png |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H/1.1
|
200
OK
|
sp_irS3-336955_rc.jpg
www.golem.de/2643/adfeedback/
|
68 B
486 B
|
75ms
73ms
|
Image
image/png |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H2
|
200
|
1.png
static.plista.com/image/adchoices/de/13/119,119,119/0/
|
1 KB
1 KB
|
21ms
13ms
|
Image
image/png |
138.201.125.235
HETZNER-AS
|
|
|
GET
H/1.1
|
200
OK
|
trk.js
Show response
cdn.adnxs.com/v/s/162/
|
80 KB
30 KB
|
106ms
27ms
|
Script
application/x-javascript |
151.101.121.108
Fastly
|
|
|
GET
H2
|
200
|
zYS9rFQE5UGvmN9_1_15477371065c409812128e2_320x180_8404.jpeg
static.plista.com/image/resized/c/1023972/
|
22 KB
22 KB
|
29ms
25ms
|
Image
image/jpeg |
138.201.125.235
HETZNER-AS
|
|
|
GET
H2
|
200
|
3900.jpg
static.plista.com/imageserver/c/3318/141205/320/180/
|
11 KB
12 KB
|
20ms
12ms
|
Image
image/jpeg |
138.201.125.235
HETZNER-AS
|
|
|
GET
H2
|
200
|
vcdn.adnxs.com%2Fp%2Fcreative-image%2F84%2F3e%2F46%2F46%2F843e4646-2a1d-4738-8c44-a7465c039942.jpg
media.plista.com/Pst0ZbX4FXnvq8PDckr8gHdD5ks=/320x180/filters:format(webp):quality(85)/
|
22 KB
22 KB
|
285ms
7ms
|
Image
image/webp |
23.111.11.152
Highwinds Network...
|
|
General
- Full URL
- https://media.plista.com/Pst0ZbX4FXnvq8PDckr8gHdD5ks=/320x180/filters:format(webp):quality(85)/vcdn.adnxs.com%2Fp%2Fcreative-image%2F84%2F3e%2F46%2F46%2F843e4646-2a1d-4738-8c44-a7465c039942.jpg
- Requested by
- Host: www.golem.de
URL: https://www.golem.de/news/best-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html
- Protocol
- H2
- Security
- TLS 1.2,
ECDHE_RSA, AES_128_GCM
- Server
-
23.111.11.152
Phoenix, United States,
ASN33438
(HIGHWINDS2 - Highwinds Network Group, Inc., US),
- Reverse DNS
- Software
-
NetDNA-cache/2.2 /
- Resource Hash
- 46c74c2d8d78fcba820e298bc02dca4153e794d98367799240ae49340c627e47
|
GET
H2
|
200
|
3902.jpg
static.plista.com/imageserver/c/3318/141228/320/180/
|
3 KB
3 KB
|
16ms
12ms
|
Image
image/jpeg |
138.201.125.235
HETZNER-AS
|
|
|
GET
H2
|
200
|
3900.jpg
static.plista.com/imageserver/c/3318/141210/320/180/
|
7 KB
7 KB
|
16ms
15ms
|
Image
image/jpeg |
138.201.125.235
HETZNER-AS
|
|
|
GET
H2
|
200
|
vcdn.adnxs.com%2Fp%2Fcreative-image%2F5a%2Fe2%2F25%2F5e%2F5ae2255e-5be3-4db0-9f98-03c2296ebc4e.png
media.plista.com/sQp9ZoTeTEjEVnvnxAlq89-k4Bo=/320x180/filters:format(webp):quality(85)/
|
16 KB
16 KB
|
32ms
31ms
|
Image
image/webp |
23.111.11.152
Highwinds Network...
|
|
General
- Full URL
- https://media.plista.com/sQp9ZoTeTEjEVnvnxAlq89-k4Bo=/320x180/filters:format(webp):quality(85)/vcdn.adnxs.com%2Fp%2Fcreative-image%2F5a%2Fe2%2F25%2F5e%2F5ae2255e-5be3-4db0-9f98-03c2296ebc4e.png
- Requested by
- Host: www.golem.de
URL: https://www.golem.de/news/best-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html
- Protocol
- H2
- Security
- TLS 1.2,
ECDHE_RSA, AES_128_GCM
- Server
-
23.111.11.152
Phoenix, United States,
ASN33438
(HIGHWINDS2 - Highwinds Network Group, Inc., US),
- Reverse DNS
- Software
-
NetDNA-cache/2.2 /
- Resource Hash
- 13533d8fe0663f05bac2eea2a5bd334b6936ccde08a9aa1f86257a5ce90450ea
|
GET
H2
|
200
|
6746.jpg
static.plista.com/imageserver/c/3318/22888/320/180/
|
10 KB
10 KB
|
13ms
12ms
|
Image
image/jpeg |
138.201.125.235
HETZNER-AS
|
|
|
GET
H2
|
200
|
vcdn.adnxs.com%2Fp%2Fcreative-image%2F1f%2Ff3%2F1e%2Fb2%2F1ff31eb2-3b8b-4daf-a2b7-5af2016010f5.jpeg
media.plista.com/VehHIQaNHmNjifHcP4m7Ai5zWeg=/320x180/filters:format(webp):quality(85)/
|
15 KB
15 KB
|
21ms
21ms
|
Image
image/webp |
23.111.11.152
Highwinds Network...
|
|
General
- Full URL
- https://media.plista.com/VehHIQaNHmNjifHcP4m7Ai5zWeg=/320x180/filters:format(webp):quality(85)/vcdn.adnxs.com%2Fp%2Fcreative-image%2F1f%2Ff3%2F1e%2Fb2%2F1ff31eb2-3b8b-4daf-a2b7-5af2016010f5.jpeg
- Requested by
- Host: www.golem.de
URL: https://www.golem.de/news/best-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html
- Protocol
- H2
- Security
- TLS 1.2,
ECDHE_RSA, AES_128_GCM
- Server
-
23.111.11.152
Phoenix, United States,
ASN33438
(HIGHWINDS2 - Highwinds Network Group, Inc., US),
- Reverse DNS
- Software
-
NetDNA-cache/2.2 /
- Resource Hash
- 3cf807f67ce81c36350ad1d8cf93a17311c476af13ff496280b8b2a5ef35ebf2
|
GET
H2
|
200
|
logo_plista_small_AAAAAA.png
static.plista.com/image/
|
496 B
699 B
|
42ms
12ms
|
Image
image/png |
138.201.125.235
HETZNER-AS
|
|
|
GET
H/1.1
|
200
OK
|
it
fra1-ib.adnxs.com/
|
0
657 B
|
1336ms
19ms
|
Image
text/html |
37.252.173.27
AppNexus
|
|
General
- Full URL
- https://fra1-ib.adnxs.com/it?an_audit=0&referrer=https%3A%2F%2Fwww.golem.de%2Fnews%2Fbest-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html&e=wqT_3QL5CPBDeQQAAAMA1gAFAQjI0_DmBRC44JD0gIm4higYxIiFuYXawq4_KjYJB5lk5Czs2T8RB5lk5Czs2T8ZAAAAYGZmCEAhB5kJGwApESTwyTEAAADAHoXrPzCK44EGOOsbQOsbSAJQhobCS1jum1hgAGjUy3x4-JMFgAEBigEDVVNEkgEDRVVSmAEBoAEBqAEBsAEAuAECwAEEyAEC0AEJ2AEA4AEA8AEAigKUAXVmKCdhJywgMjYzOTAwNiwgMTU1NzkzMjQ4OCk7dWYoJ2knLCAxMjI1NjQyLCAxNTU3OTMyNDg4KTt1ZignZycsIDc5NzUwMzQsIDE1NTc5MzI0ODgpO3VmKCdjJywgMjk1NzU5OTEsIDE1NTcuWAAwcicsIDE1ODM2ODUxOAELADUVPfQIA5IC6QIhdFZSSkV3aTNsbzBPRUlhR3drc1lBQ0R1bTFnd0JEZ0FRQVJJNnh0UWl1T0JCbGdBWVBfX19fOFBhQUJ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.golem.de/news/best-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_ECDSA, AES_128_GCM
- Server
-
37.252.173.27
, Ascension Island,
ASN29990
(ASN-APPNEXUS - AppNexus, Inc, US),
- Reverse DNS
- 539.bm-nginx-loadbalancer.mgmt.fra1.adnexus.net
- Software
-
nginx/1.13.4 /
- Resource Hash
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
- Security Headers
-
Name |
Value |
X-Xss-Protection |
0 |
|
GET
H/1.1
|
200
OK
|
it
fra1-ib.adnxs.com/
|
0
658 B
|
1344ms
5ms
|
Image
text/html |
37.252.173.27
AppNexus
|
|
General
- Full URL
- https://fra1-ib.adnxs.com/it?an_audit=0&referrer=https%3A%2F%2Fwww.golem.de%2Fnews%2Fbest-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html&e=wqT_3QL3CPBDdwQAAAMA1gAFAQjI0_DmBRC79a7O-aiH310YxIiFuYXawq4_KjYJF30Facai1T8RF30Facai1T8ZAAAAYGZmCEAhF30JGwApESTwyTEAAADAHoXrPzCK44EGOOsbQOsbSAJQ2-irSFjum1hgAGjUy3x4-JMFgAEBigEDVVNEkgEDRVVSmAEBoAEBqAEBsAEAuAECwAEEyAEC0AEJ2AEA4AEA8AEAigKUAXVmKCdhJywgMzE2Mzk4NCwgMTU1NzkzMjQ4OCk7dWYoJ2knLCAxMDg5OTM0LCAxNTU3OTMyNDg4KTt1ZignZycsIDc2MzQ3NjksIDE1NTc5MzI0ODgpO3VmKCdjJywgMjgyOTM1NzgsIDE1NTcuWAAscicsIDE1MTcxMjg1Oj0A9HUBkgLlAiFzVlV2NEFqSzg3NE5FTnZvcTBnWUFDRHVtMWd3QkRnQVFBUkk2eHRRaXVPQkJsZ0FZUF9fX184UGFBQndBWGdCZ0FFQmlBRUJrQUVCbUFFQm9BRVFxQUVLc0FFQXVRSFkyajliSUVmVFA4RUJPNDN6OGJ5aTFUX0pBUUFBQU1DUFhQQV8yUUVYbndKZ1BJUHNQLUFCanNOQzlRRUFBRDVEbUFJQW9BSUV0UUlBQUFBQXZRSUFBQUFfd0FJQnlBSUIwQUlCMkFJQjRBSUE2QUlBLUFJQWdBTUJtQU1Cb2dNVUNJXzIwd1VRQWhnQkxRQUFBQUF5QkdOelh6V2lBdzRJanVhSEJoQUVHQUV0NVROTE9xSURFd2lxdm9NR0VBb1lBUzEtNUlJX01nTjFibXVvQThyenZnMjZBd2xHVWtFeE9qTTVNVExnQS1vTGdBVC14UGNCaUFTMHFmNEJrQVFCbUFRQpoCYSFQUk5CVndqSzg9aNA3cHRZSUFRb0FERlN1QjZGNjFISVB6b0pSbEpCTVRvek9URXlRT29MU1JlZkFtQThnLXdfVSE4DQEAVx0M9EgB2ALmkwHgApiTRuoCWmh0dHBzOi8vd3d3LmdvbGVtLmRlL25ld3MvYmVzdC1vZi10aGUtd2ViLXRydXN0LXNpZWdlbC12ZXJ0ZWlsdC1rZXlsb2dnZXItMTkwNS0xNDEyNzUuaHRtbIADAYgDAZADAJgDFKADAaoDAMAD4KgByAMA2APeuCjgAwDoAwD4AwOABACSBAkvb3BlbnJ0YjKYBACoBACyBAwIABAAGAAgADAAOAC4BADABADIBADSBA4zNTYzI0ZSQTE6MzkxMtoEAggB4AQA8ATb6KtIiAUBmAUAoAX___________8BqgURNDcxNTMzMDgzNDc2NzIyMznABQDJBQAAAAAAAPA_0gUJCQAAAAAAAAAA2AUB4AUB8AXSxh_6BQQIABAAkAYBmAYAuAYAwQYAAAAAAADwP8gGANoGFgoQAAAJQxEBOBAAGADgBgzyBgIIAIAHAQ..&s=1348950ba4cd09e1f1f09b14b77b4aeea952bd75&pp=0.277214
- Requested by
- Host: www.golem.de
URL: https://www.golem.de/news/best-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_ECDSA, AES_128_GCM
- Server
-
37.252.173.27
, Ascension Island,
ASN29990
(ASN-APPNEXUS - AppNexus, Inc, US),
- Reverse DNS
- 539.bm-nginx-loadbalancer.mgmt.fra1.adnexus.net
- Software
-
nginx/1.13.4 /
- Resource Hash
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
- Security Headers
-
Name |
Value |
X-Xss-Protection |
0 |
|
GET
H/1.1
|
200
OK
|
it
fra1-ib.adnxs.com/
|
0
657 B
|
1341ms
4ms
|
Image
text/html |
37.252.173.27
AppNexus
|
|
General
- Full URL
- https://fra1-ib.adnxs.com/it?an_audit=0&referrer=https%3A%2F%2Fwww.golem.de%2Fnews%2Fbest-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html&e=wqT_3QKUCfBMlAQAAAMA1gAFAQjI0_DmBRC3k4fZre7Zo0gYxIiFuYXawq4_KjYJychZ2NMO1T8RWkpe6fEF0T8ZAAAAYGZmCEAhWkpe6fEF0T8pycgJJPCVMQAAAMAehes_MIrjgQY46xtAtDhIAlC4ocpFWO6bWGAAaNTLfHj4kwWAAQGKAQNVU0SSAQNFVVKYAQGgAQGoAQGwAQC4AQLAAQXIAQLQAQnYAQDgAQDwAQCKApMBdWYoJ2EnLCAxMzQwMjQyLCAxNTU3OTMyNDg4KTt1ZignaScsIDkxNTg5OSwgMTU1NzkzMjQ4OCk7ARwwZycsIDc3MDk4NDQsID45ACxjJywgMjg1MTgxNjZGHgAAcgF0GDQ1OTIwMTg6PQD0jgGSAoEDITQxajlfZ2lVenN3TkVMaWh5a1VZQUNEdW0xZ3dCRGdBUUFCSXREaFFpdU9CQmxnQVlQX19fXzhQYUFCd0FYZ0JnQUVCaUFFQmtBRUJtQUVCb0FFUXFBRUtzQUVBdVFFZE5sMmRVOFBTUDhFQllJSHFaZEVPMVRfSkFRQUFBQUIzaTlvXzJRRVhud0pnUElQc1AtQUJ1X00zOVFHWUdwWS1nQUlBaUFLcnhaUURpQUt5eFpRRGtBSUNtQUlBb0FJRXFBSUN0UUlBQUFBQXZRSUFBQUFBd0FJQnlBSUIwQUlCMkFJQjRBSUE2QUlBLUFJQWdBTUJtQU1Cb2dNVUNKSDEyd1VRQWhnQkxRQUFBQUF5QkdOelh6ZWlBeE1Jc191R0JoQUtHQUV0dUZ2VVBqSURkVzVyb2dNT0NKZmoyd1VRQ3hnQ0xRQUFBQUNvQTViT3pBMjZBd2xHVWtFeE9qUXpNem5nQS1vTGdBU2g2NG9DaUFTbjY0b0NrQVFCbUFRQpoCYSFzZzRnZlE2hAEoN3B0WUlBQW9BREUFmQUBfERvSlJsSkJNVG8wTXpNNVFPb0xTUmVmQW1BOGctd19VJVQJAQBXHQz0SAHYAuaTAeACmJNG6gJaaHR0cHM6Ly93d3cuZ29sZW0uZGUvbmV3cy9iZXN0LW9mLXRoZS13ZWItdHJ1c3Qtc2llZ2VsLXZlcnRlaWx0LWtleWxvZ2dlci0xOTA1LTE0MTI3NS5odG1sgAMBiAMBkAOC6x2YAxSgAwGqAwDAA-CoAcgDANgD3rgo4AMA6AMA-AMDgAQAkgQJL29wZW5ydGIymAQAqAQAsgQMCAAQABgAIAAwADgAuAQAwAQAyAQA0gQONzIyMCNGUkExOjQzMznaBAIIAeAEAPAEuKHKRYgFAZgFAKAF____________AaoFETQ3MTUzMzA4MzQ3NjcyMjM5wAUAyQUAAAAAAADwP9IFCQkAAAAAAAAAANgFAeAFAfAFzpsB-gUECAAQAJAGAZgGALgGAMEGAAAAAAAA8D_IBgDaBhYKEAExLgEAOBAAGADgBgzyBgIIAIAHAQ..&s=ecb89e765bb9112b517ec597584aada310ce7ee5&pp=0.22069668985222302
- Requested by
- Host: www.golem.de
URL: https://www.golem.de/news/best-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_ECDSA, AES_128_GCM
- Server
-
37.252.173.27
, Ascension Island,
ASN29990
(ASN-APPNEXUS - AppNexus, Inc, US),
- Reverse DNS
- 539.bm-nginx-loadbalancer.mgmt.fra1.adnexus.net
- Software
-
nginx/1.13.4 /
- Resource Hash
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
- Security Headers
-
Name |
Value |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
/
farm.plista.com/matching/pixel/
Redirect Chain
-
https://secure.adnxs.com/getuid?https%3A%2F%2Ffarm.plista.com%2Fmatching%2Fpixel%2F%3Fssp%3Dc3de%26dsp_user_id%3D$UID
-
https://secure.adnxs.com/bounce?%2Fgetuid%3Fhttps%253A%252F%252Ffarm.plista.com%252Fmatching%252Fpixel%252F%253Fssp%253Dc3de%2526dsp_user_id%253D%24UID
-
https://farm.plista.com/matching/pixel/?ssp=c3de&dsp_user_id=6346681586954832159
|
35 B
385 B
|
59ms
27ms
|
Image
image/gif |
2a01:4f8:202:42d4::2
HETZNER-AS
|
|
|
GET
H2
|
200
|
rum.js
Show response
pagead2.googlesyndication.com/pagead/js/r20190513/r20190131/
|
47 KB
18 KB
|
9ms
6ms
|
Script
text/javascript |
2a00:1450:4001:820::2002
Google LLC
|
|
General
- Full URL
- https://pagead2.googlesyndication.com/pagead/js/r20190513/r20190131/rum.js
- Requested by
- Host: pagead2.googlesyndication.com
URL: https://pagead2.googlesyndication.com/pagead/js/r20190513/r20190131/show_ads_impl.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a00:1450:4001:820::2002
Frankfurt am Main, Germany,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
cafe /
- Resource Hash
- 84523662a2d9525bbe7456722081bb57749cef2d5ad289b00e9a72ba08da3605
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
ads
googleads.g.doubleclick.net/pagead/
Frame B40E
|
0
0
|
554ms
553ms
|
Document
text/html |
2a00:1450:4001:809::2002
Google LLC
|
|
General
- Full URL
- https://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-2342548244565729&output=html&h=120&slotname=7370415692&adk=795422400&adf=1229236390&w=1000&lmt=1557932487&num_ads=2&guci=1.2.0.0.2.2.0.0&format=1000x120&url=https%3A%2F%2Fwww.golem.de%2Fnews%2Fbest-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html&flash=0&wgl=1&adsid=NT&dt=1557932486790&bpp=40&bdt=834&fdt=381&idt=381&shv=r20190513&cbv=r20190131&saldr=aa&abxe=1&correlator=7308550299401&rume=1&frm=20&pv=2&ga_vid=154558382.1557932487&ga_sid=1557932487&ga_hid=1317382592&ga_fc=1&iag=0&icsg=3393333577668544&dssz=65&mdo=0&mso=32&u_tz=0&u_his=2&u_java=0&u_h=1200&u_w=1600&u_ah=1200&u_aw=1600&u_cd=24&u_nplug=0&u_nmime=0&adx=293&ady=2007&biw=1585&bih=1200&scr_x=0&scr_y=0&eid=20040081%2C21060549%2C21060853%2C410075103%2C20040010&oid=3&rx=0&eae=0&fc=656&brdim=0%2C0%2C0%2C0%2C1600%2C0%2C1600%2C1200%2C1600%2C1200&vis=1&rsz=%7C%7CeEbr%7C&abl=CS&pfx=0&fu=16&bc=31&osw_key=4092314402&ifi=1&uci=1.fu8oc8mto3pv&fsb=1&xpc=Q6jlf2PstG&p=https%3A//www.golem.de&dtd=435
- Requested by
- Host: pagead2.googlesyndication.com
URL: https://pagead2.googlesyndication.com/pagead/js/r20190513/r20190131/show_ads_impl.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a00:1450:4001:809::2002
Frankfurt am Main, Germany,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
cafe /
- Resource Hash
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
osd.js
Show response
www.googletagservices.com/activeview/js/current/
|
76 KB
28 KB
|
41ms
40ms
|
Script
text/javascript |
2a00:1450:4001:816::2002
Google LLC
|
|
General
- Full URL
- https://www.googletagservices.com/activeview/js/current/osd.js?cb=%2Fr20100101
- Requested by
- Host: pagead2.googlesyndication.com
URL: https://pagead2.googlesyndication.com/pagead/js/r20190513/r20190131/show_ads_impl.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a00:1450:4001:816::2002
Frankfurt am Main, Germany,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
sffe /
- Resource Hash
- 53af729e9e4b8c8d2aae917515b562dba0d5273acc77c8775d6e05a6cddfcefd
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
vgs.json
Show response
cdn.radiantmediatechs.com/rmp/rr/
|
5 KB
3 KB
|
64ms
16ms
|
XHR
application/json |
2606:4700:30::6818:6624
Cloudflare
|
|
|
GET
H/1.1
|
200
OK
|
rmp-s2.min.css
www.golem.de/staticrl/scripts/radiant/4.9.1/css/
|
57 KB
12 KB
|
24ms
24ms
|
Stylesheet
text/css |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H2
|
204
|
p
insights.plista.com/
|
0
66 B
|
60ms
59ms
|
Image
text/plain |
23.111.11.152
Highwinds Network...
|
|
General
- Full URL
- https://insights.plista.com/p?i=5a9fe1dae45a1d155411456a&r=&sr=&mt=Best%20of%20the%20Web%3A%20Trust-Siegel%20verteilt%20Keylogger%20-%20Golem.de&ma=-1&tg=-1&ctg=-1&mp=-1&mu=-1&mi=https%3A%2F%2Fwww.golem.de%2F1905%2F141275-196128-196126_rc.jpg&md=Eigentlich%20soll%20das%20Best-of-the-Web-Siegel%20die%20Sicherheit%20von%20Webseiten%20zertifizieren%2C%20stattdessen%20wurden%20%C3%BCber%20ein%20gehacktes%20Script%20Keylogger%20eingebunden.&or=-1&wc=-1&pw=&pwu=0&co=0&il=&hv=&sc=-1&p=https%3A%2F%2Fwww.golem.de%2Fnews%2Fbest-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html&c=desktop&t=article&s=&_r=1557932487356:4.7.12:20190409-113831
- Requested by
- Host: www.golem.de
URL: https://www.golem.de/news/best-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html
- Protocol
- H2
- Security
- TLS 1.2,
ECDHE_RSA, AES_128_GCM
- Server
-
23.111.11.152
Phoenix, United States,
ASN33438
(HIGHWINDS2 - Highwinds Network Group, Inc., US),
- Reverse DNS
- Software
-
NetDNA-cache/2.2 /
- Resource Hash
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
GET
H/1.1
|
200
OK
|
hd-main.js
Show response
hgc-cf-cache-1.svonm.com/
|
211 KB
57 KB
|
10ms
9ms
|
XHR
application/javascript |
13.32.223.225
Amazon.com
|
|
|
POST
H/1.1
|
200
OK
|
vevent
fra1-ib.adnxs.com/
|
0
676 B
|
331ms
71ms
|
Other
text/html |
37.252.173.27
AppNexus
|
|
General
- Full URL
- https://fra1-ib.adnxs.com/vevent?an_audit=0&referrer=https%3A%2F%2Fwww.golem.de%2Fnews%2Fbest-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html&e=wqT_3QKQCvBMEAUAAAMA1gAFAQjI0_DmBRC3k4fZre7Zo0gYxIiFuYXawq4_KjYJychZ2NMO1T8RWkpe6fEF0T8ZAAAAYGZmCEAhWkpe6fEF0T8pycgJJPCVMQAAAMAehes_MIrjgQY46xtAtDhIAlC4ocpFWO6bWGAAaNTLfHj4kwWAAQGKAQNVU0SSAQNFVVKYAQGgAQGoAQGwAQC4AQLAAQXIAQLQAQnYAQDgAQDwAQCKApMBdWYoJ2EnLCAxMzQwMjQyLCAxNTU3OTMyNDg4KTt1ZignaScsIDkxNTg5OSwgMTU1NzkzMjQ4OCk7ARwwZycsIDc3MDk4NDQsID45ACxjJywgMjg1MTgxNjZGHgAAcgF0GDQ1OTIwMTg6PQD0jgGSAoEDITQxajlfZ2lVenN3TkVMaWh5a1VZQUNEdW0xZ3dCRGdBUUFCSXREaFFpdU9CQmxnQVlQX19fXzhQYUFCd0FYZ0JnQUVCaUFFQmtBRUJtQUVCb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AAAAFNwkBOBAAGADgBgzyBgIIAIAHAQ..&s=7e6df32d80fd0f03f57977c0ffd61b92c02d5201&type=nv&nvt=5&jm=1003&px=1058&py=2466&bw=235&bh=183&sid=4093843511517787222&vd=ct~0|rr~0&sv=162&tv=native1-18hs&ua=chrome52&pl=mac&x=v&tag_id=12611978&sw=1600&sh=1200&pw=1585&ph=5419&ww=1600&wh=1200&ft=0
- Requested by
- Host: cdn.adnxs.com
URL: https://cdn.adnxs.com/v/s/162/trk.js
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_ECDSA, AES_128_GCM
- Server
-
37.252.173.27
, Ascension Island,
ASN29990
(ASN-APPNEXUS - AppNexus, Inc, US),
- Reverse DNS
- 539.bm-nginx-loadbalancer.mgmt.fra1.adnexus.net
- Software
-
nginx/1.13.4 /
- Resource Hash
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
- Security Headers
-
Name |
Value |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
ima3.js
Show response
imasdk.googleapis.com/js/sdkloader/
|
236 KB
81 KB
|
65ms
40ms
|
Script
text/javascript |
2a00:1450:4001:81d::200a
Google LLC
|
|
|
GET
H/1.1
|
200
OK
|
best-of-the-web-trust-seal-(firmenvideo).jpg
video.golem.de/teaser/1/1/22898/thumb-high-700/
|
54 KB
54 KB
|
17ms
16ms
|
Image
image/jpeg |
2a00:13c8:f5::f:4b3d:175
SYSELEVEN SysElev...
|
|
|
GET
DATA
|
200
OK
|
truncated
/
|
2 KB
0
|
|
Image
image/png |
|
|
|
GET
DATA
|
200
OK
|
truncated
/
|
715 B
0
|
|
Image
image/png |
|
|
|
GET
H/1.1
|
200
OK
|
roboto-v18-latin-regular.woff2
www.golem.de/staticrl/scripts/radiant/4.9.1/css/fonts/
|
15 KB
15 KB
|
28ms
27ms
|
Font
application/octet-stream |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
GET
H/1.1
|
200
OK
|
rmp-font.woff2
www.golem.de/staticrl/scripts/radiant/4.9.1/css/fonts/
|
8 KB
9 KB
|
19ms
18ms
|
Font
application/octet-stream |
77.247.84.129
SYSELEVEN SysElev...
|
|
|
POST
H/1.1
|
200
OK
|
vevent
fra1-ib.adnxs.com/
|
0
809 B
|
94ms
9ms
|
Other
text/html |
37.252.173.27
AppNexus
|
|
General
- Full URL
- https://fra1-ib.adnxs.com/vevent?an_audit=0&referrer=https%3A%2F%2Fwww.golem.de%2Fnews%2Fbest-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html&e=wqT_3QLNCfBDzQQAAAMA1gAFAQjI0_DmBRC44JD0gIm4higYxIiFuYXawq4_KjYJB5lk5Czs2T8RB5lk5Czs2T8ZAAAAYGZmCEAhB5kJGwApESTwyTEAAADAHoXrPzCK44EGOOsbQOsbSAJQhobCS1jum1hgAGjUy3x4-JMFgAEBigEDVVNEkgEDRVVSmAEBoAEBqAEBsAEAuAECwAEEyAEC0AEJ2AEA4AEA8AEAigKUAXVmKCdhJywgMjYzOTAwNiwgMTU1NzkzMjQ4OCk7dWYoJ2knLCAxMjI1NjQyLCAxNTU3OTMyNDg4KTt1ZignZycsIDc5NzUwMzQsIDE1NTc5MzI0ODgpO3VmKCdjJywgMjk1NzU5OTEsIDE1NTcuWAAwcicsIDE1ODM2ODUxOAELADUVPfSIA5IC6QIhdFZSSkV3aTNsbzBPRUlhR3drc1lBQ0R1bTFnd0JEZ0FRQVJJNnh0UWl1T0JCbGdBWVBfX19fOFBhQUJ3QVhnQmdBRUJpQUVCa0FFQm1BRUJvQUVRcUFFS3NBRUF1UUYtT2hiczdSalhQOEVCclAwQ3F5THMyVF9KQVFBQUFJQndjZTBfMlFFWG53SmdQSVBzUC1BQnF1ZEs5UUVBQUhwRWdBSUJpQUxTdXBrSGlBS2hxQ3VRQWdHUUFnR1lBZ0NnQWdTb0FnR29BZ0cxQWdBQUFBQzlBZ0FBQURfQUFnSElBZ0hRQWdIWUFnSGdBZ0RvQWdENEFnQ0FBd0dZQXdHaUF3NEltZmVIQmhBRUdBRXRkUXVqT3FJREV3alc3NEVHRUFvWUFTMkVpMnNfTWdOMWJtdW9BN2VXalE2NkF3bEdVa0V4T2pNNU1UTGdBLW9MZ0FURG1aSUNpQVRMbVpJQ2tBUUFtQVFCmgJhIVB3OFdpQWkzbG8wT0VJYUd3a3NZN3B0WUlBUW9BREVBQUFBQUFBRHdQem9KUmxKQk1Ub3pPVEV5UU9vTFNSZWZBbUE4Zy13X1VRQUFBQUFBQUFBQVdRQUFBQUFBQUFBQdgC5pMB4AKYk0bqAlpodHRwczovL3d3dy5nb2xlbS5kZS9uZXdzL2Jlc3Qtb2YtdGhlLXdlYi10cnVzdC1zaWVnZWwtdmVydGVpbHQta2V5bG9nZ2VyLTE5MDUtMTQxMjc1Lmh0bWzyAhMKD0NVU1RPTV9NT0RFTF9JRBIA8gIaChZDVVNUT01fTU9ERUxfTEVBRl9OQU1FEgDyAh4KGkNVU1RPTV9NT0RFTF9MQVNUX01PRElGSUVEEgCAAwGIAwGQAwCYAxSgAwGqAwDAA-CoAcgDANgD3rgo4AMA6AMA-AMDgAQAkgQJL29wZW5ydGIymAQAqAQAsgQMCAAQABgAIAAwADgAuAQAwAQAyAQA0gQOMzU2MyNGUkExOjM5MTLaBAIIAeAEAPAEhobCS4gFAZgFAKAF____________AaoFETQ3MTUzMzA4MzQ3NjcyMjM5wAUAyQUAAAAAAADwP9IFCQkAAAAAAAAAANgFAeAFAfAFNvoFBAgAEACQBgGYBgC4BgDBBgAAAAAAAPA_yAYA2gYWChAAAAAAAAAAAAAAAAAAAAAAEAAYAOAGDPIGAggAgAcB&s=cd9f68052bf461c09894796e788ed57dc5e75926&type=nv&nvt=5&jm=1003&px=803&py=2283&bw=235&bh=51&sid=4093843511517787222&vd=ct~0|rr~0&sv=162&tv=native1-18hs&ua=chrome52&pl=mac&x=v&tag_id=12611978&cid=3&cr=nv&sw=1600&sh=1200&pw=1585&ph=5419&ww=1600&wh=1200&ft=0
- Requested by
- Host: cdn.adnxs.com
URL: https://cdn.adnxs.com/v/s/162/trk.js
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_ECDSA, AES_128_GCM
- Server
-
37.252.173.27
, Ascension Island,
ASN29990
(ASN-APPNEXUS - AppNexus, Inc, US),
- Reverse DNS
- 539.bm-nginx-loadbalancer.mgmt.fra1.adnexus.net
- Software
-
nginx/1.13.4 /
- Resource Hash
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
- Security Headers
-
Name |
Value |
X-Xss-Protection |
0 |
|
POST
H/1.1
|
200
OK
|
vevent
fra1-ib.adnxs.com/
|
0
809 B
|
97ms
11ms
|
Other
text/html |
37.252.173.27
AppNexus
|
|
General
- Full URL
- https://fra1-ib.adnxs.com/vevent?an_audit=0&referrer=https%3A%2F%2Fwww.golem.de%2Fnews%2Fbest-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html&e=wqT_3QLLCfBDywQAAAMA1gAFAQjI0_DmBRC79a7O-aiH310YxIiFuYXawq4_KjYJF30Facai1T8RF30Facai1T8ZAAAAYGZmCEAhF30JGwApESTwyTEAAADAHoXrPzCK44EGOOsbQOsbSAJQ2-irSFjum1hgAGjUy3x4-JMFgAEBigEDVVNEkgEDRVVSmAEBoAEBqAEBsAEAuAECwAEEyAEC0AEJ2AEA4AEA8AEAigKUAXVmKCdhJywgMzE2Mzk4NCwgMTU1NzkzMjQ4OCk7dWYoJ2knLCAxMDg5OTM0LCAxNTU3OTMyNDg4KTt1ZignZycsIDc2MzQ3NjksIDE1NTc5MzI0ODgpO3VmKCdjJywgMjgyOTM1NzgsIDE1NTcuWAAscicsIDE1MTcxMjg1Oj0A9HUBkgLlAiFzVlV2NEFqSzg3NE5FTnZvcTBnWUFDRHVtMWd3QkRnQVFBUkk2eHRRaXVPQkJsZ0FZUF9fX184UGFBQndBWGdCZ0FFQmlBRUJrQUVCbUFFQm9BRVFxQUVLc0FFQXVRSFkyajliSUVmVFA4RUJPNDN6OGJ5aTFU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4093843511517787222&vd=ct~0|rr~0&sv=162&tv=native1-18hs&ua=chrome52&pl=mac&x=v&tag_id=12611978&cid=3&cr=nv&sw=1600&sh=1200&pw=1585&ph=5419&ww=1600&wh=1200&ft=0
- Requested by
- Host: cdn.adnxs.com
URL: https://cdn.adnxs.com/v/s/162/trk.js
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_ECDSA, AES_128_GCM
- Server
-
37.252.173.27
, Ascension Island,
ASN29990
(ASN-APPNEXUS - AppNexus, Inc, US),
- Reverse DNS
- 539.bm-nginx-loadbalancer.mgmt.fra1.adnexus.net
- Software
-
nginx/1.13.4 /
- Resource Hash
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
- Security Headers
-
Name |
Value |
X-Xss-Protection |
0 |
|
GET
DATA
|
200
OK
|
truncated
Show response
/
|
211 KB
0
|
|
Script
text/javascript |
|
|
|
GET
H/1.1
|
200
OK
|
/
Show response
tt.onthe.io/
|
0
287 B
|
148ms
36ms
|
XHR
text/javascript |
95.216.24.150
HETZNER-AS
|
|
General
- Full URL
- https://tt.onthe.io/?k[]=43098:uniques_instantly[domain:www.golem.de,url:%2Fnews%2Fbest-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html,page:Best%20of%20the%20Web%3A%20Trust-Siegel%20verteilt%20Keylogger,author:No%20Author,language:de,site_skin:desktop,custom_page_type:Article%20page,article_layout:default,category:news,type_article:shortread,pub_date:15%20May%202019%2016%3A15%3A00%20CEST,reference_time:101,user_agent:Mozilla%2F5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_13_5)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F67.0.3396.87%20Safari%2F537.36,device:desktop,browser_version:Other%2067,browser:Other,depth:1,user_type:new,user_id:bfb4dbef7.3136f60c7_1557932487883,cdn_version:7]&s=6acc7c777cce3be138a245218c439c54&1557932487893
- Requested by
- Host: cdn.onthe.io
URL: https://cdn.onthe.io/io.js/IjvnOpbzskTW
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_RSA, AES_256_GCM
- Server
-
95.216.24.150
, Finland,
ASN24940
(HETZNER-AS, DE),
- Reverse DNS
- static.150.24.216.95.clients.your-server.de
- Software
-
nginx /
- Resource Hash
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
GET
H/1.1
|
200
OK
|
/
Show response
tt.onthe.io/uniques/
|
33 B
515 B
|
437ms
34ms
|
Script
text/html |
95.216.24.150
HETZNER-AS
|
|
|
GET
H/1.1
|
200
OK
|
/
Show response
tt.onthe.io/
|
0
287 B
|
145ms
35ms
|
XHR
text/javascript |
95.216.24.150
HETZNER-AS
|
|
General
- Full URL
- https://tt.onthe.io/?k[]=43098:visits_instantly[domain:www.golem.de,url:%2Fnews%2Fbest-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html,page:Best%20of%20the%20Web%3A%20Trust-Siegel%20verteilt%20Keylogger,author:No%20Author,language:de,site_skin:desktop,custom_page_type:Article%20page,article_layout:default,category:news,type_article:shortread,pub_date:15%20May%202019%2016%3A15%3A00%20CEST,reference_time:101,user_agent:Mozilla%2F5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_13_5)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F67.0.3396.87%20Safari%2F537.36,device:desktop,browser_version:Other%2067,browser:Other,depth:1,user_type:new,user_id:bfb4dbef7.3136f60c7_1557932487883,cdn_version:7]&s=6acc7c777cce3be138a245218c439c54&__io=bfb4dbef7.3136f60c7_1557932487883&1557932487936
- Requested by
- Host: cdn.onthe.io
URL: https://cdn.onthe.io/io.js/IjvnOpbzskTW
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_RSA, AES_256_GCM
- Server
-
95.216.24.150
, Finland,
ASN24940
(HETZNER-AS, DE),
- Reverse DNS
- static.150.24.216.95.clients.your-server.de
- Software
-
nginx /
- Resource Hash
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
GET
H/1.1
|
200
OK
|
/
Show response
tt.onthe.io/
|
0
287 B
|
120ms
39ms
|
XHR
text/javascript |
95.216.24.150
HETZNER-AS
|
|
General
- Full URL
- https://tt.onthe.io/?k[]=43098:pageviews[domain:www.golem.de,url:%2Fnews%2Fbest-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html,page:Best%20of%20the%20Web%3A%20Trust-Siegel%20verteilt%20Keylogger,author:No%20Author,language:de,site_skin:desktop,custom_page_type:Article%20page,article_layout:default,category:news,type_article:shortread,pub_date:15%20May%202019%2016%3A15%3A00%20CEST,reference_time:101,user_agent:Mozilla%2F5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_13_5)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F67.0.3396.87%20Safari%2F537.36,device:desktop,browser_version:Other%2067,browser:Other,depth:1,user_type:new,user_id:bfb4dbef7.3136f60c7_1557932487883,cdn_version:7]&s=6acc7c777cce3be138a245218c439c54&1557932487983
- Requested by
- Host: cdn.onthe.io
URL: https://cdn.onthe.io/io.js/IjvnOpbzskTW
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_RSA, AES_256_GCM
- Server
-
95.216.24.150
, Finland,
ASN24940
(HETZNER-AS, DE),
- Reverse DNS
- static.150.24.216.95.clients.your-server.de
- Software
-
nginx /
- Resource Hash
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
GET
H/1.1
|
200
OK
|
global_config.json
Show response
s3.amazonaws.com/homad-global-configs.schneevonmorgen.com/
|
53 B
642 B
|
125ms
124ms
|
XHR
application/json |
52.216.228.179
Amazon.com
|
|
General
- Full URL
- https://s3.amazonaws.com/homad-global-configs.schneevonmorgen.com/global_config.json?cache=2080564425
- Requested by
- Host: text
URL: data:text/javascript;base64,dmFyIE9vdGFlbG9veWVlYmFaZWU9T290YWVsb295ZWViYVplZXx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LlBxKGEpfSxQcTpmdW5jdGlvbihhKXtyZXR1cm4gNDxhP3RoaXMuUXE6dGhpcy5QayhhKX0sUGs6ZnVuY3Rpb24oYSl7cmV0dXJuIDk8CmE/dGhpcy5Razp0aGlzLmooYSl9LGo6ZnVuY3Rpb24oYSl7cmV0dXJuIDY8YT90aGlzLmw6YX19fSkoYyk7dmFyIGNkPWMuY218fGNkLFdkPW5ldyBjZCgxLG5ldyBEYXRlLDIsTWF0aC5yYW5kb20oKSwidHJ1ZSIsbmF2aWdhdG9yLCJsLWtleSIsITEsTWF0aC5hYnMoLTEpLCJ0ZiIsIlooVFREWlRSUiIpO3dpbmRvdy5BPVdkLkdvKDQpfSkuY2FsbChPb3RhZWxvb3llZWJhWmVlLE9vdGFlbG9veWVlYmFaZWUpOwo=
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_RSA, AES_128_GCM
- Server
-
52.216.228.179
Ashburn, United States,
ASN16509
(AMAZON-02 - Amazon.com, Inc., US),
- Reverse DNS
- Software
-
AmazonS3 /
- Resource Hash
- f1379a9c047773af19ec6c4f9a465e0147cbabc785342c01110b43304179196a
|
GET
H/1.1
|
200
OK
|
homadclienthttpsle-json.php
Show response
video.golem.de/staticrl/scripts/radiant/
|
291 B
682 B
|
61ms
15ms
|
XHR
application/json |
2a00:13c8:f5::f:4b3d:175
SYSELEVEN SysElev...
|
|
General
- Full URL
- https://video.golem.de/staticrl/scripts/radiant/homadclienthttpsle-json.php?cache=6768358894
- Requested by
- Host: text
URL: data:text/javascript;base64,dmFyIE9vdGFlbG9veWVlYmFaZWU9T290YWVsb295ZWViYVplZXx8e307CihmdW5jdGlvbihjKXtmdW5jdGlvbiBkYSgpe3kuT2V8fCh5Lk9lPTApO3kuT2UrKzt3aW5kb3cudmlkZW9wa2dJbnRlcmZhY2UhPXkudmlkZW9wa2dJbnRlcmZhY2UmJih3aW5kb3cudmlkZW9wa2dJbnRlcmZhY2U9eS52aWRlb3BrZ0ludGVyZmFjZSk7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IGNkPWMuY218fGNkLFdkPW5ldyBjZCgxLG5ldyBEYXRlLDIsTWF0aC5yYW5kb20oKSwidHJ1ZSIsbmF2aWdhdG9yLCJsLWtleSIsITEsTWF0aC5hYnMoLTEpLCJ0ZiIsIlooVFREWlRSUiIpO3dpbmRvdy5BPVdkLkdvKDQpfSkuY2FsbChPb3RhZWxvb3llZWJhWmVlLE9vdGFlbG9veWVlYmFaZWUpOwo=
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_RSA, AES_256_GCM
- Server
-
2a00:13c8:f5::f:4b3d:175
, Germany,
ASN25291
(SYSELEVEN SysEleven GmbH, DE),
- Reverse DNS
- Software
-
nginx /
- Resource Hash
- 25b8c26212dbd48007be24a885e489432092cdeb9ae7d70a223d5cd88582205d
|
GET
H/1.1
|
200
OK
|
config.json
Show response
hgc-cf-cache-1.svonm.com/www.golem.de/
|
288 B
955 B
|
27ms
13ms
|
XHR
application/json |
13.32.223.225
Amazon.com
|
|
General
- Full URL
- https://hgc-cf-cache-1.svonm.com/www.golem.de/config.json?cache=2224972254
- Requested by
- Host: text
URL: data:text/javascript;base64,dmFyIE9vdGFlbG9veWVlYmFaZWU9T290YWVsb295ZWViYVplZXx8e307CihmdW5jdGlvbihjKXtmdW5jdGlvbiBkYSgpe3kuT2V8fCh5Lk9lPTApO3kuT2UrKzt3aW5kb3cudmlkZW9wa2dJbnRlcmZhY2UhPXkudmlkZW9wa2dJbnRlcmZhY2UmJih3aW5kb3cudmlkZW9wa2dJbnRlcmZhY2U9eS52aWRlb3BrZ0ludGVyZmFjZSk7MTA+eS5PZSYmd2luZG93LnNldFRpbWVvdXQoZGEsNTAwKX1mdW5jdGlvbiB6KCl7d2luZG93LnJlbW92ZUV2ZW50TGlzdGVuZXIoImtleWRvd24iLHopO3dpbmRvdy5yZW1vdmVFdmVudExpc3RlbmVyKCJtb3VzZW1vdmUiLHopO3dpbmRvdy5yZW1vdmVFdmVudExpc3RlbmVyKCJtb3VzZWRvd24iLH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FaZWUpOwo=
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_RSA, AES_128_GCM
- Server
-
13.32.223.225
Seattle, United States,
ASN16509
(AMAZON-02 - Amazon.com, Inc., US),
- Reverse DNS
- server-13-32-223-225.fra56.r.cloudfront.net
- Software
-
AmazonS3 /
- Resource Hash
- 640f0a03cd1e9c721ac8844b006b9047b070a9f7d13a3278b98fb0461947dd8f
|
GET
H2
|
200
|
bridge3.304.0_de.html
imasdk.googleapis.com/js/core/
Frame F4F2
|
0
0
|
12ms
9ms
|
Document
text/html |
2a00:1450:4001:81d::200a
Google LLC
|
|
General
- Full URL
- https://imasdk.googleapis.com/js/core/bridge3.304.0_de.html
- Requested by
- Host: imasdk.googleapis.com
URL: https://imasdk.googleapis.com/js/sdkloader/ima3.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a00:1450:4001:81d::200a
Frankfurt am Main, Germany,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
sffe /
- Resource Hash
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
client.js
Show response
s0.2mdn.net/instream/video/
|
26 KB
11 KB
|
221ms
73ms
|
Script
text/javascript |
2a00:1450:4001:820::2006
Google LLC
|
|
|
POST
H/1.1
|
200
OK
|
/
Show response
ssl.2.damoh.golem.de/82b8ab0162121433f4c743e41599465fa41e46cb/
|
288 B
1 KB
|
193ms
85ms
|
XHR
application/json |
148.251.235.107
HETZNER-AS
|
|
General
- Full URL
- https://ssl.2.damoh.golem.de/82b8ab0162121433f4c743e41599465fa41e46cb/
- Requested by
- Host: text
URL: data:text/javascript;base64,dmFyIE9vdGFlbG9veWVlYmFaZWU9T290YWVsb295ZWViYVplZXx8e307CihmdW5jdGlvbihjKXtmdW5jdGlvbiBkYSgpe3kuT2V8fCh5Lk9lPTApO3kuT2UrKzt3aW5kb3cudmlkZW9wa2dJbnRlcmZhY2U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IDk8CmE/dGhpcy5Razp0aGlzLmooYSl9LGo6ZnVuY3Rpb24oYSl7cmV0dXJuIDY8YT90aGlzLmw6YX19fSkoYyk7dmFyIGNkPWMuY218fGNkLFdkPW5ldyBjZCgxLG5ldyBEYXRlLDIsTWF0aC5yYW5kb20oKSwidHJ1ZSIsbmF2aWdhdG9yLCJsLWtleSIsITEsTWF0aC5hYnMoLTEpLCJ0ZiIsIlooVFREWlRSUiIpO3dpbmRvdy5BPVdkLkdvKDQpfSkuY2FsbChPb3RhZWxvb3llZWJhWmVlLE9vdGFlbG9veWVlYmFaZWUpOwo=
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_RSA, AES_128_GCM
- Server
-
148.251.235.107
, Germany,
ASN24940
(HETZNER-AS, DE),
- Reverse DNS
- static.107.235.251.148.clients.your-server.de
- Software
-
AmazonS3 /
- Resource Hash
- 640f0a03cd1e9c721ac8844b006b9047b070a9f7d13a3278b98fb0461947dd8f
|
GET
H/1.1
|
200
OK
|
/
Show response
tt.onthe.io/
|
0
287 B
|
71ms
40ms
|
XHR
text/javascript |
95.216.24.150
HETZNER-AS
|
|
|
GET
H/1.1
|
200
OK
|
hic_qos
Show response
ssl.1.damoh.golem.de/
|
24 B
281 B
|
181ms
14ms
|
Script
application/octet-stream |
136.243.102.69
HETZNER-AS
|
|
General
- Full URL
- https://ssl.1.damoh.golem.de/hic_qos?ads&adserv=1&_werbebanner_&simple_ad_
- Requested by
- Host: text
URL: data:text/javascript;base64,dmFyIE9vdGFlbG9veWVlYmFaZWU9T290YWVsb295ZWViYVplZXx8e307CihmdW5jdGlvbihjKXtmdW5jdGlvbiBkYSgpe3kuT2V8fCh5Lk9lPTApO3kuT2UrKzt3aW5kb3cudmlkZW9wa2dJbnRlcmZhY2UhPXkudmlkZW9wa2dJbnRlcmZhY2UmJih3aW5kb3cudmlkZW9wa2dJbnRlcmZhY2U9eS52aWRlb3BrZ0ludGVyZmFjZSk7MTA+eS5PZSYmd2luZG93LnNld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ldyBjZCgxLG5ldyBEYXRlLDIsTWF0aC5yYW5kb20oKSwidHJ1ZSIsbmF2aWdhdG9yLCJsLWtleSIsITEsTWF0aC5hYnMoLTEpLCJ0ZiIsIlooVFREWlRSUiIpO3dpbmRvdy5BPVdkLkdvKDQpfSkuY2FsbChPb3RhZWxvb3llZWJhWmVlLE9vdGFlbG9veWVlYmFaZWUpOwo=
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_RSA, AES_128_GCM
- Server
-
136.243.102.69
, Germany,
ASN24940
(HETZNER-AS, DE),
- Reverse DNS
- static.69.102.243.136.clients.your-server.de
- Software
-
openresty/1.13.6.2 /
- Resource Hash
- ae8f9dd465ab424d0dd4f81f7ba9ec5029f6736e090c3f33b5f0fa0c0ecc47dc
|
GET
DATA
|
200
OK
|
truncated
Show response
/
Frame DCD1
|
241 B
0
|
|
Script
text/javascript |
|
|
|
POST
H/1.1
|
200
OK
|
/
Show response
ssl.2.damoh.golem.de/5be23de484df8fb08837f5aca86e1804fae4c9ac/
|
110 B
672 B
|
87ms
18ms
|
XHR
application/json |
148.251.235.107
HETZNER-AS
|
|
General
- Full URL
- https://ssl.2.damoh.golem.de/5be23de484df8fb08837f5aca86e1804fae4c9ac/
- Requested by
- Host: text
URL: data:text/javascript;base64,dmFyIE9vdGFlbG9veWVlYmFaZWU9T290YWVsb295ZWViYVplZXx8e307CihmdW5jdGlvbihjKXtmdW5jdGlvbiBkYSgpe3kuT2V8fCh5Lk9lPTApO3kuT2UrKzt3aW5kb3cudmlkZW9wa2dJbnRlcmZhY2UhPXkudmlkZW9wa2dJbnRlcmZhY2UmJih3aW5kb3cudmlkZW9wa2dJbnRlcmZhY2U9eS52aWRlb3BrZ0ludGVyZmFjZSk7MTA+eS5PZSYmd2luZG93LnNldFRpbWVvdXQoZGEsNTAwKX1mdW5jdGlvbiB6KCl7d2luZG93LnJlbW92ZUV2ZW50TGlzdGVuZXIoImtleWRvd24iLHopO3dpbmRvdy5yZW1vdmVFdm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VFREWlRSUiIpO3dpbmRvdy5BPVdkLkdvKDQpfSkuY2FsbChPb3RhZWxvb3llZWJhWmVlLE9vdGFlbG9veWVlYmFaZWUpOwo=
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_RSA, AES_128_GCM
- Server
-
148.251.235.107
, Germany,
ASN24940
(HETZNER-AS, DE),
- Reverse DNS
- static.107.235.251.148.clients.your-server.de
- Software
-
TornadoServer/4.5.3 /
- Resource Hash
- 9326b813f05efe1ac285085eef770b1036f77bdbbedf69f79eb83b35a121040c
|
GET
H/1.1
|
200
OK
|
dmp
Show response
tracking.m6r.eu/sync/
|
86 B
592 B
|
69ms
69ms
|
XHR
application/json |
2.19.33.59
AKAMAI-ASN1
|
|
|
GET
H/1.1
|
200
OK
|
api
Show response
cdn.m6r.eu/sync/
|
1 KB
1 KB
|
96ms
26ms
|
Script
application/javascript |
104.111.215.171
Akamai Technologies
|
|
|
GET
H2
|
200
|
ads
Show response
securepubads.g.doubleclick.net/gampad/
|
484 B
777 B
|
245ms
238ms
|
XHR
text/javascript |
216.58.206.2
Google LLC
|
|
General
- Full URL
- https://securepubads.g.doubleclick.net/gampad/ads?gdfp_req=1&pvsid=3794680507854700&correlator=4017832430250644&output=json_html&callback=googletag.impl.pubads.callbackProxy1&impl=fifs&adsid=NT&json_a=1&eid=21061865%2C21062753%2C953563516&vrg=2019050901&guci=1.2.0.0.2.2.0.0&plat=1%3A32776%2C2%3A32776%2C8%3A32776&sc=1&sfv=1-0-33&iu_parts=4444%2Cdisp_ctc_golem.de_sd%2Cartikel&enc_prev_ius=0%2F1%2F2&prev_iu_szs=800x450%7C580x500%7C580x360&prev_scp=adslot%3Dposterad%26pc%3D1%26af%3Dptad%2Cintxspt&cust_params=tagm%3Dmt%26viewportWidth%3D1581-1680%26viewportHeight%3D1153-1200%26tagtype%3Dsra%26yt%3D0%26adset%3Dbrsl%26flash%3Dno%26keywords%3Dsec%252Cinet%252Cdatensicherheit%252Ckeylogger%252Ctsilkcalb%252Citsicherheit%252Cmalware%252Csicherheitsluecke%252Cautormoritztremmel%252Cserver%252Cinternet%252Csecurity%26nuggad%3Dn3-1%252Cn5-5%252Cn6-2%252Cn7-2%252Cn8-5%252Cn9-0%252Cn10-1%252Cn11-1%252Cn12-6%252Cn17-4%252Cn18-2%252Cn20-2%252Cn21-4%252Cn33-4%252Cn38-2%252Cn39-4%252Cn43-3%252Cn44-3%252Cn46-4%252Cn52-2%252Cn57-3%252Cn58-4%252Cn60-3%252Cn62-3%252Cn67-0%252Cn70-4%252Cn71-7%252Cn75-0%252Cn76-1%252Cn77-0%252Cn78-1%252Cn79-1%252Cn80-0%252Cn81-1%252Cn82-1%252Cn83-0%252Cn84-0%252Cn85-1%252Cn86-0%252Cn87-0%252Cn88-1%252Cn117-2%252Cn118-6%252Cn119-3%252Cn120-2%252Cn121-2%252Cn122-1%252Cn123-2%252Cn127-0%252Cn128-2%252Cn135-9%252Cn15-1%252Cn66-1%252Cn89-2%252Cn90-1%252Cn92-1%252Cn93-3%252Cn94-2%252Cn97-1%252Cn98-1%252Cn99-1%252Cn101-1%252Cn104-1%252Cn106-1%252Cn107-1%252Cn114-1%252Cn115-1%252Cn124-1%252Cn125-1%252Cn126-1%252Cn139-1%252Cn153-1%252Cn154-1%252Cn155-1%252Cn156-1%252Cn157-1%252Cn158-1%252Cn159-1%252Cn160-1%252Cn161-1%26mbrStatus%3Dcalled-idfound%26mbrid%3Db03c1ca71ac9b590ac4dfddc5f3ad735%26mbrseg%3D3e05b94d%252Cb3838f1f&cookie_enabled=1&bc=31&abxe=1&lmt=1557932489&dt=1557932489882&dlt=1557932485956&idt=3653&frm=20&biw=1585&bih=1200&oid=3&adxs=0&adys=0&adks=1587276660&ucis=1&ifi=2&u_his=2&u_h=1200&u_w=1600&u_ah=1200&u_aw=1600&u_cd=24&u_sd=1&flash=0&url=https%3A%2F%2Fwww.golem.de%2Fnews%2Fbest-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html&dssz=72&icsg=1000566855655168&mso=32&std=0&vis=1&dmc=8&scr_x=0&scr_y=0&psz=1000x0&msz=800x450&blev=1&bisch=1&ga_vid=154558382.1557932487&ga_sid=1557932487&ga_hid=1317382592&fws=128
- Requested by
- Host: securepubads.g.doubleclick.net
URL: https://securepubads.g.doubleclick.net/gpt/pubads_impl_2019050901.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
216.58.206.2
Mountain View, United States,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- fra16s20-in-f2.1e100.net
- Software
-
cafe /
- Resource Hash
- c1d9a432d3d7f3f8a9bb30bada1c2b6dc01a7931eeabc74488976d39a7acb0ca
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
pubads_impl_rendering_2019050901.js
Show response
securepubads.g.doubleclick.net/gpt/
|
71 KB
27 KB
|
45ms
41ms
|
Script
text/javascript |
216.58.206.2
Google LLC
|
|
|
GET
H2
|
200
|
container.html
tpc.googlesyndication.com/safeframe/1-0-33/html/
|
0
0
|
30ms
9ms
|
Other
text/html |
2a00:1450:4001:806::2001
Google LLC
|
|
General
- Full URL
- https://tpc.googlesyndication.com/safeframe/1-0-33/html/container.html
- Requested by
- Host: securepubads.g.doubleclick.net
URL: https://securepubads.g.doubleclick.net/gpt/pubads_impl_2019050901.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a00:1450:4001:806::2001
Frankfurt am Main, Germany,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
/
- Resource Hash
|
POST
H2
|
204
|
translator
Show response
hbopenbid.pubmatic.com/
|
0
114 B
|
105ms
16ms
|
XHR
text/plain |
185.64.189.112
PubMatic
|
|
|
OPTIONS
H2
|
204
|
v1
Show response
dmx.districtm.io/b/
|
0
271 B
|
581ms
94ms
|
XHR
text/plain |
35.203.66.107
Google LLC
|
|
|
POST
H/1.1
|
200
OK
|
prebid
Show response
ib.adnxs.com/ut/v3/
|
21 B
838 B
|
117ms
18ms
|
XHR
application/json |
185.33.223.209
AppNexus
|
|
|
GET
H2
|
200
|
ads
Show response
securepubads.g.doubleclick.net/gampad/
|
51 KB
7 KB
|
381ms
380ms
|
XHR
text/javascript |
216.58.206.2
Google LLC
|
|
General
- Full URL
- https://securepubads.g.doubleclick.net/gampad/ads?gdfp_req=1&pvsid=3794680507854700&correlator=4017832430250644&output=json_html&callback=googletag.impl.pubads.callbackProxy2&impl=fifs&adsid=NT&json_a=1&eid=21061865%2C21062753%2C953563516&vrg=2019050901&guci=1.2.0.0.2.2.0.0&plat=1%3A32776%2C2%3A32776%2C8%3A32776&sc=1&sfv=1-0-33&iu_parts=4444%2Cdisp_ctc_golem.de_sd%2Cartikel&enc_prev_ius=0%2F1%2F2%2C0%2F1%2F2%2C0%2F1%2F2%2C0%2F1%2F2&prev_iu_szs=10x40%7C10x30%7C10x20%7C10x22%7C120x600%7C160x600%7C200x600%7C300x600%2C20x10%7C30x10%7C40x10%7C80x10%7C800x250%7C970x250%7C728x90%7C728x180%7C770x250%2C10x20%7C10x10%7C300x250%7C300x601%7C300x125%2C10x10%7C10x11%7C301x250%7C300x126&prev_scp=adslot%3Dsky%26rfree%3D200-299%26pc%3D1%26yieldlove_reloads%3D0%26yieldlove_reloaded%3Dfalse%26yieldlove_meta%3Dpid%253A17298.sb%253Af%26yieldlove_pid%3D17298%26yieldlove_hb_sucbid%3Dfalse%26hb_unit%3Dsky%26af%3Df1x4%2Cf1x3%2Cf1x2%2Cds%2Csky%2Chpad%2Cband%7Cadslot%3Dbanner%26pc%3D1%26yieldlove_reloads%3D0%26yieldlove_reloaded%3Dfalse%26yieldlove_meta%3Dpid%253A17295.sb%253Af%26yieldlove_pid%3D17295%26yieldlove_hb_sucbid%3Dfalse%26hb_unit%3Dbanner%26af%3Df2x1%2Cf3x1%2Cf4x1%2Cf8x1%2Cwp%2Cush%2Cbb%2Cvidwa%2Cfufrad%7Cadslot%3Drectangle%26pc%3D1%26yieldlove_reloads%3D0%26yieldlove_reloaded%3Dfalse%26yieldlove_meta%3Dpid%253A17299.sb%253Af%26yieldlove_pid%3D17299%26yieldlove_hb_sucbid%3Dfalse%26hb_unit%3Drectangle%26af%3Df1x2%2Cf1x1%2Cmrec%7Cadslot%3Drectangle2%26pc%3D1%26yieldlove_reloads%3D0%26yieldlove_reloaded%3Dfalse%26yieldlove_meta%3Dpid%253A17300.sb%253Af%26yieldlove_pid%3D17300%26yieldlove_hb_sucbid%3Dfalse%26hb_unit%3Drectangle2%26af%3Df1x1%2Cmrec&cust_params=tagm%3Dmt%26viewportWidth%3D1581-1680%26viewportHeight%3D1153-1200%26tagtype%3Dsra%26yt%3D0%26adset%3Dbrsl%26flash%3Dno%26keywords%3Dsec%252Cinet%252Cdatensicherheit%252Ckeylogger%252Ctsilkcalb%252Citsicherheit%252Cmalware%252Csicherheitsluecke%252Cautormoritztremmel%252Cserver%252Cinternet%252Csecurity%26nuggad%3Dn3-1%252Cn5-5%252Cn6-2%252Cn7-2%252Cn8-5%252Cn9-0%252Cn10-1%252Cn11-1%252Cn12-6%252Cn17-4%252Cn18-2%252Cn20-2%252Cn21-4%252Cn33-4%252Cn38-2%252Cn39-4%252Cn43-3%252Cn44-3%252Cn46-4%252Cn52-2%252Cn57-3%252Cn58-4%252Cn60-3%252Cn62-3%252Cn67-0%252Cn70-4%252Cn71-7%252Cn75-0%252Cn76-1%252Cn77-0%252Cn78-1%252Cn79-1%252Cn80-0%252Cn81-1%252Cn82-1%252Cn83-0%252Cn84-0%252Cn85-1%252Cn86-0%252Cn87-0%252Cn88-1%252Cn117-2%252Cn118-6%252Cn119-3%252Cn120-2%252Cn121-2%252Cn122-1%252Cn123-2%252Cn127-0%252Cn128-2%252Cn135-9%252Cn15-1%252Cn66-1%252Cn89-2%252Cn90-1%252Cn92-1%252Cn93-3%252Cn94-2%252Cn97-1%252Cn98-1%252Cn99-1%252Cn101-1%252Cn104-1%252Cn106-1%252Cn107-1%252Cn114-1%252Cn115-1%252Cn124-1%252Cn125-1%252Cn126-1%252Cn139-1%252Cn153-1%252Cn154-1%252Cn155-1%252Cn156-1%252Cn157-1%252Cn158-1%252Cn159-1%252Cn160-1%252Cn161-1%26mbrStatus%3Dcalled-idfound%26mbrid%3Db03c1ca71ac9b590ac4dfddc5f3ad735%26mbrseg%3D3e05b94d%252Cb3838f1f&cookie_enabled=1&bc=31&abxe=1&lmt=1557932490&dt=1557932490268&dlt=1557932485956&idt=3653&frm=20&biw=1585&bih=1200&oid=3&adxs=0%2C0%2C0%2C0&adys=0%2C0%2C0%2C0&adks=4154185509%2C3506586144%2C2040986986%2C2621756903&ucis=3%7C4%7C5%7C6&ifi=4&u_his=2&u_h=1200&u_w=1600&u_ah=1200&u_aw=1600&u_cd=24&u_sd=1&flash=0&url=https%3A%2F%2Fwww.golem.de%2Fnews%2Fbest-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html&dssz=73&icsg=1000566855655168&mso=32&std=0&vis=1&dmc=8&scr_x=0&scr_y=0&psz=160x0%7C1000x0%7C0x0%7C300x2&msz=10x40%7C20x10%7C10x20%7C10x10&blev=1&bisch=1&ga_vid=154558382.1557932487&ga_sid=1557932487&ga_hid=1317382592&fws=128%2C128%2C128%2C128
- Requested by
- Host: securepubads.g.doubleclick.net
URL: https://securepubads.g.doubleclick.net/gpt/pubads_impl_2019050901.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
216.58.206.2
Mountain View, United States,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- fra16s20-in-f2.1e100.net
- Software
-
cafe /
- Resource Hash
- 172e97436652b954e64f95c8607ccbb0035fa762e04217d422260e3b86e12e8e
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
POST
|
|
v1
dmx.districtm.io/b/
|
0
0
|
|
|
|
|
|
GET
H/1.1
|
200
OK
|
container
Show response
tracking.m6r.eu/pixel/
Redirect Chain
-
https://tracking.m6r.eu/pixel/container?pixelId=eaa843f7-840a-4a36-8fdd-3b79df0d4fa0&n3=1&n5=5&n6=2&n7=2&n8=5&n9=0&n10=1&n11=1&n12=6&n17=4&n18=2&n20=2&n21=4&n33=4&n38=2&n39=4&n43=3&n44=3&n46=4&n52=...
-
https://tracking.m6r.eu/pixel/container?pixelId=eaa843f7-840a-4a36-8fdd-3b79df0d4fa0&n3=1&n5=5&n6=2&n7=2&n8=5&n9=0&n10=1&n11=1&n12=6&n17=4&n18=2&n20=2&n21=4&n33=4&n38=2&n39=4&n43=3&n44=3&n46=4&n52=...
|
3 KB
2 KB
|
60ms
51ms
|
Script
text/javascript |
2.19.33.59
AKAMAI-ASN1
|
|
General
- Full URL
- https://tracking.m6r.eu/pixel/container?pixelId=eaa843f7-840a-4a36-8fdd-3b79df0d4fa0&n3=1&n5=5&n6=2&n7=2&n8=5&n9=0&n10=1&n11=1&n12=6&n17=4&n18=2&n20=2&n21=4&n33=4&n38=2&n39=4&n43=3&n44=3&n46=4&n52=2&n57=3&n58=4&n60=3&n62=3&n67=0&n70=4&n71=7&n75=0&n76=1&n77=0&n78=1&n79=1&n80=0&n81=1&n82=1&n83=0&n84=0&n85=1&n86=0&n87=0&n88=1&n117=2&n118=6&n119=3&n120=2&n121=2&n122=1&n123=2&n127=0&n128=2&n135=9&n15=1&n66=1&n89=2&n90=1&n92=1&n93=3&n94=2&n97=1&n98=1&n99=1&n101=1&n104=1&n106=1&n107=1&n114=1&n115=1&n124=1&n125=1&n126=1&n139=1&n153=1&n154=1&n155=1&n156=1&n157=1&n158=1&n159=1&n160=1&n161=1&checkcookies=true
- Requested by
- Host: www.golem.de
URL: https://www.golem.de/news/best-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_RSA, AES_256_GCM
- Server
-
2.19.33.59
, Ascension Island,
ASN20940
(AKAMAI-ASN1, US),
- Reverse DNS
- a2-19-33-59.deploy.static.akamaitechnologies.com
- Software
-
nginx /
- Resource Hash
- fac122458b5b1684db8cb42e570d29c21e8526612beb209ba61f5a13f54080b9
|
GET
H/1.1
|
200
OK
|
adscaleSyncDone
tracking.m6r.eu/sync/
Redirect Chain
-
https://ih.adscale.de/adscale-ih/tpui?tpid=48&tpuid=aa71e10da3e37a80171888ccc7f0350b&cburl=https%3A%2F%2Ftracking.m6r.eu%2Fsync%2FadscaleSyncDone%3FuserBuyeruid%3Daa71e10da3e37a80171888ccc7f0350b%2...
-
https://ih.adscale.de/adscale-ih/tpui?tpid=48&tpuid=aa71e10da3e37a80171888ccc7f0350b&cburl=https%3A%2F%2Ftracking.m6r.eu%2Fsync%2FadscaleSyncDone%3FuserBuyeruid%3Daa71e10da3e37a80171888ccc7f0350b%2...
-
https://tracking.m6r.eu/sync/adscaleSyncDone?userBuyeruid=aa71e10da3e37a80171888ccc7f0350b&userId=adscale-user:70b9337cadd54c1cbd2f0f3b524c9a41
-
https://tracking.m6r.eu/sync/adscaleSyncDone?userBuyeruid=aa71e10da3e37a80171888ccc7f0350b&userId=adscale-user%3A70b9337cadd54c1cbd2f0f3b524c9a41&checkcookies=true
|
44 B
528 B
|
54ms
49ms
|
Image
image/gif |
2.19.33.59
AKAMAI-ASN1
|
|
|
GET
H/1.1
|
200
OK
|
setuid
ib.adnxs.com/
Redirect Chain
-
https://tracking.m6r.eu/sync/appnexusRedirect
-
https://ib.adnxs.com/setuid?entity=197&code=aa71e10da3e37a80171888ccc7f0350b
|
0
584 B
|
18ms
17ms
|
Image
text/html |
185.33.223.209
AppNexus
|
|
|
GET
H/1.1
|
200
OK
|
adxSyncDone
tracking.m6r.eu/sync/
Redirect Chain
-
https://cm.g.doubleclick.net/pixel?google_nid=m6r&google_ula=158217889&google_hm=qnHhDaPjeoAXGIjMx_A1Cw
-
https://tracking.m6r.eu/sync/adxSyncDone?google_ula=158217889,0
|
44 B
523 B
|
255ms
100ms
|
Image
image/gif |
2.19.33.59
AKAMAI-ASN1
|
|
|
GET
H/1.1
|
204
No Content
|
m
ad.yieldlab.net/
Redirect Chain
-
https://tracking.m6r.eu/sync/yieldlabRedirect
-
https://ad.yieldlab.net/m?dt_id=36356&ext_id=aa71e10da3e37a80171888ccc7f0350b
|
0
495 B
|
352ms
25ms
|
Image
text/plain |
2.20.169.32
Akamai Technologies
|
|
|
GET
H2
|
200
|
view
Show response
securepubads.g.doubleclick.net/pcs/
Frame 0901
|
0
296 B
|
24ms
23ms
|
Fetch
image/gif |
216.58.206.2
Google LLC
|
|
General
- Full URL
- https://securepubads.g.doubleclick.net/pcs/view?xai=AKAOjsvGgg5akOC4z_4M-RY86l8tmFFeK6liI2WtyvBqS2kPH3F3a-bT8LIo6iS68vLz-EQjp0uzkrCumvTaKyuzcouQaUE0xR9j8X0ekPZWNQcO30QXiugqeQjFLw-3rDV2WQMJGEH6Ff3MP_hhQpTVwzPmrAyBF3IJk-YUXvhWVZ5CRtdJ6c-0fkoJTo8BWX5pVRH1dXmp2ChEpULK30ktCzPitzGrn1uwbWmR8FSdRx8HHhdU0TPVBrOvzyJTBmwYKBLGncGqIwMc8LcSI9F0&sai=AMfl-YTyiVZ7HvmvHsG4gyTTudFd9HR1I1CPMECtejOFCx54QbkWXbL5zEE4HxcabI4v1SFNHf1yUA0C53ULyIalI4-LzuTCtSLvOCdDBHiBeiLLKP2xRGb6-DILiNg&sig=Cg0ArKJSzNP9A51Ml8xpEAE&urlfix=1&adurl=
- Requested by
- Host: www.golem.de
URL: https://www.golem.de/news/best-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
216.58.206.2
Mountain View, United States,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- fra16s20-in-f2.1e100.net
- Software
-
cafe /
- Resource Hash
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
gpt.js
Show response
www.googletagservices.com/tag/js/
Frame 0901
|
31 KB
10 KB
|
41ms
40ms
|
Script
text/javascript |
2a00:1450:4001:816::2002
Google LLC
|
|
General
- Full URL
- https://www.googletagservices.com/tag/js/gpt.js
- Requested by
- Host: securepubads.g.doubleclick.net
URL: https://securepubads.g.doubleclick.net/gpt/pubads_impl_rendering_2019050901.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a00:1450:4001:816::2002
Frankfurt am Main, Germany,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
sffe /
- Resource Hash
- 3e8dadf2162e744a31d12d4935c7986dbc5c519a6829807c7582411c7972dc6d
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
osd_listener.js
Show response
www.googletagservices.com/activeview/js/current/
Frame 0901
|
75 KB
28 KB
|
42ms
41ms
|
Script
text/javascript |
2a00:1450:4001:816::2002
Google LLC
|
|
General
- Full URL
- https://www.googletagservices.com/activeview/js/current/osd_listener.js?cache=r20110914
- Requested by
- Host: securepubads.g.doubleclick.net
URL: https://securepubads.g.doubleclick.net/gpt/pubads_impl_rendering_2019050901.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a00:1450:4001:816::2002
Frankfurt am Main, Germany,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
sffe /
- Resource Hash
- 58d5d69efb99ba86b86e44a4753304d14f0ebcda68e3b9b31faa68d85d2a9811
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
view
Show response
securepubads.g.doubleclick.net/pcs/
Frame 07F8
|
0
57 B
|
24ms
22ms
|
Fetch
image/gif |
216.58.206.2
Google LLC
|
|
General
- Full URL
- https://securepubads.g.doubleclick.net/pcs/view?xai=AKAOjssb-LPsjtBVlW1AYYECIZ66djU9xwZ9vKZQBYktAShsRn2P5pKpBKsdKTdP2Vj4ObJsntZkauNdLon0GzKshG3l4He5tBQQ1b31K0hOxU6SULydprpsUMfPtjxhNpbasNNCG7cfowcshx_77QTmPN19NlldFiYn30WuFsuw1pX7-ZHz6VrUFKTNCCiUGHtbCeWeTUbHAMQq-Adm2zXtibRkG7OOBGZSRxo8Ht6wr5c9NnwijOOaIc8wJrlAw1i2nHqyorYF14iSubkGbniD&sai=AMfl-YSm08r5c8SoOClsxVQtXUWdQgZDWGL6rKykg3Hqik76Nqopm8kyPT_tp_w6jat3hipZeIG0rN28aYPmxVspkGg8eWnB9Aqs-EZO9J5PTiUs9xkhm1hV_aggiQM&sig=Cg0ArKJSzFTrn2CpV_YXEAE&urlfix=1&adurl=
- Requested by
- Host: www.golem.de
URL: https://www.golem.de/news/best-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
216.58.206.2
Mountain View, United States,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- fra16s20-in-f2.1e100.net
- Software
-
cafe /
- Resource Hash
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
gpt.js
Show response
www.googletagservices.com/tag/js/
Frame 07F8
|
31 KB
10 KB
|
43ms
42ms
|
Script
text/javascript |
2a00:1450:4001:816::2002
Google LLC
|
|
General
- Full URL
- https://www.googletagservices.com/tag/js/gpt.js
- Requested by
- Host: securepubads.g.doubleclick.net
URL: https://securepubads.g.doubleclick.net/gpt/pubads_impl_rendering_2019050901.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a00:1450:4001:816::2002
Frankfurt am Main, Germany,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
sffe /
- Resource Hash
- 3e8dadf2162e744a31d12d4935c7986dbc5c519a6829807c7582411c7972dc6d
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
osd_listener.js
Show response
www.googletagservices.com/activeview/js/current/
Frame 07F8
|
75 KB
28 KB
|
42ms
39ms
|
Script
text/javascript |
2a00:1450:4001:816::2002
Google LLC
|
|
General
- Full URL
- https://www.googletagservices.com/activeview/js/current/osd_listener.js?cache=r20110914
- Requested by
- Host: securepubads.g.doubleclick.net
URL: https://securepubads.g.doubleclick.net/gpt/pubads_impl_rendering_2019050901.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a00:1450:4001:816::2002
Frankfurt am Main, Germany,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
sffe /
- Resource Hash
- 58d5d69efb99ba86b86e44a4753304d14f0ebcda68e3b9b31faa68d85d2a9811
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
view
Show response
securepubads.g.doubleclick.net/pcs/
Frame DCA4
|
0
57 B
|
22ms
18ms
|
Fetch
image/gif |
216.58.206.2
Google LLC
|
|
General
- Full URL
- https://securepubads.g.doubleclick.net/pcs/view?xai=AKAOjstlfasP71v16dn5a-_YjrIcfmeM2e9_9rRh3DdS2f0lRCpMNv9xgwsMufjX9ls8AiMsoHagH3PHIwT4aiZu2JYP4TA4DhSZE_IDif9k4GZWgkKBvxgSRTmz_7_b0lC1NV_5um-1u0Gf4XbLgR3X5cog4ZVSePR1NcDevcu6ifWs_Mz931sxGoeJR4DKhEklZyJPK5c2HpEx4kooGi1dECEre9k30yHc27uKPFFoWRdMrVUelPmOgrBOvqZJr0EjAUjKI4nowQDsma2AO8ey&sai=AMfl-YQSYKzcwL8OKBFNpG7l_mB0FnHYZg1adaqKwgzm9kwaWZapY4eUcfQgouekDS8lsPui6inIFs5IAtn4nZJX5FyCClxy-RXasWu5x15oer16umXf7q7amtzcnIw&sig=Cg0ArKJSzJl27LnbZOBBEAE&urlfix=1&adurl=
- Requested by
- Host: www.golem.de
URL: https://www.golem.de/news/best-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
216.58.206.2
Mountain View, United States,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- fra16s20-in-f2.1e100.net
- Software
-
cafe /
- Resource Hash
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
gpt.js
Show response
www.googletagservices.com/tag/js/
Frame DCA4
|
31 KB
10 KB
|
44ms
40ms
|
Script
text/javascript |
2a00:1450:4001:816::2002
Google LLC
|
|
General
- Full URL
- https://www.googletagservices.com/tag/js/gpt.js
- Requested by
- Host: securepubads.g.doubleclick.net
URL: https://securepubads.g.doubleclick.net/gpt/pubads_impl_rendering_2019050901.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a00:1450:4001:816::2002
Frankfurt am Main, Germany,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
sffe /
- Resource Hash
- 3e8dadf2162e744a31d12d4935c7986dbc5c519a6829807c7582411c7972dc6d
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
osd_listener.js
Show response
www.googletagservices.com/activeview/js/current/
Frame DCA4
|
75 KB
28 KB
|
43ms
39ms
|
Script
text/javascript |
2a00:1450:4001:816::2002
Google LLC
|
|
General
- Full URL
- https://www.googletagservices.com/activeview/js/current/osd_listener.js?cache=r20110914
- Requested by
- Host: securepubads.g.doubleclick.net
URL: https://securepubads.g.doubleclick.net/gpt/pubads_impl_rendering_2019050901.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a00:1450:4001:816::2002
Frankfurt am Main, Germany,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
sffe /
- Resource Hash
- 58d5d69efb99ba86b86e44a4753304d14f0ebcda68e3b9b31faa68d85d2a9811
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
view
Show response
securepubads.g.doubleclick.net/pcs/
Frame 8D90
|
0
48 B
|
35ms
33ms
|
Fetch
image/gif |
216.58.206.2
Google LLC
|
|
General
- Full URL
- https://securepubads.g.doubleclick.net/pcs/view?xai=AKAOjstZd2EhF9PAwmOAW0JxUCSNbfo7z5mEbROR-WvE5UguNquadV_fPedL4Qo1Ye2pdNTqutgA7l9B5nVhEApNTiJaF-V_JJXY04IFu8pEih5tNRybFY0TT6G8lwoKctdKkLkytDTge-i1wRej1wAhUsYvAQvKaWme-FXqndpgezji77-OV7B4BpPYDT93VrOWfLsXrBRN1tYcLlmufqyZ2XGIaqnPj_eIxL5CmIs4uS2S8uXY3SsIR3u2VQCOrVWdgfnXx64jqBqgENH7m0Gp&sai=AMfl-YQlY8MUpHLEQn7acdab5GOAT-8-dnQvBs60HSo2yt5PBBlJHmLEPtvl0i4HFz9irI2DGt0ahZReOTyF9CLakJdBj0U-vvplKu8kGhE6kfbZHGHbNyJOlRzJi5g&sig=Cg0ArKJSzFo_09O334SSEAE&urlfix=1&adurl=
- Requested by
- Host: www.golem.de
URL: https://www.golem.de/news/best-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
216.58.206.2
Mountain View, United States,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- fra16s20-in-f2.1e100.net
- Software
-
cafe /
- Resource Hash
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
gpt.js
Show response
www.googletagservices.com/tag/js/
Frame 8D90
|
31 KB
10 KB
|
40ms
39ms
|
Script
text/javascript |
2a00:1450:4001:816::2002
Google LLC
|
|
General
- Full URL
- https://www.googletagservices.com/tag/js/gpt.js
- Requested by
- Host: securepubads.g.doubleclick.net
URL: https://securepubads.g.doubleclick.net/gpt/pubads_impl_rendering_2019050901.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a00:1450:4001:816::2002
Frankfurt am Main, Germany,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
sffe /
- Resource Hash
- 3e8dadf2162e744a31d12d4935c7986dbc5c519a6829807c7582411c7972dc6d
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
osd_listener.js
Show response
www.googletagservices.com/activeview/js/current/
Frame 8D90
|
75 KB
28 KB
|
40ms
40ms
|
Script
text/javascript |
2a00:1450:4001:816::2002
Google LLC
|
|
General
- Full URL
- https://www.googletagservices.com/activeview/js/current/osd_listener.js?cache=r20110914
- Requested by
- Host: securepubads.g.doubleclick.net
URL: https://securepubads.g.doubleclick.net/gpt/pubads_impl_rendering_2019050901.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a00:1450:4001:816::2002
Frankfurt am Main, Germany,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
sffe /
- Resource Hash
- 58d5d69efb99ba86b86e44a4753304d14f0ebcda68e3b9b31faa68d85d2a9811
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
pubads_impl_2019050901.js
Show response
securepubads.g.doubleclick.net/gpt/
Frame 0901
|
150 KB
55 KB
|
52ms
43ms
|
Script
text/javascript |
216.58.206.2
Google LLC
|
|
|
GET
H2
|
200
|
integrator.sync.js
Show response
adservice.google.de/adsid/
Frame 0901
|
113 B
178 B
|
25ms
15ms
|
Script
application/javascript |
2a00:1450:4001:81c::2002
Google LLC
|
|
|
GET
H2
|
200
|
pubads_impl_2019050901.js
Show response
securepubads.g.doubleclick.net/gpt/
Frame 07F8
|
150 KB
55 KB
|
63ms
55ms
|
Script
text/javascript |
216.58.206.2
Google LLC
|
|
|
GET
H2
|
200
|
integrator.sync.js
Show response
adservice.google.de/adsid/
Frame 07F8
|
113 B
175 B
|
24ms
16ms
|
Script
application/javascript |
2a00:1450:4001:81c::2002
Google LLC
|
|
|
GET
H2
|
200
|
pubads_impl_2019050901.js
Show response
securepubads.g.doubleclick.net/gpt/
Frame DCA4
|
150 KB
55 KB
|
58ms
56ms
|
Script
text/javascript |
216.58.206.2
Google LLC
|
|
|
GET
H2
|
200
|
integrator.sync.js
Show response
adservice.google.de/adsid/
Frame DCA4
|
113 B
175 B
|
17ms
16ms
|
Script
application/javascript |
2a00:1450:4001:81c::2002
Google LLC
|
|
|
GET
H2
|
200
|
pubads_impl_2019050901.js
Show response
securepubads.g.doubleclick.net/gpt/
Frame 8D90
|
150 KB
55 KB
|
54ms
25ms
|
Script
text/javascript |
216.58.206.2
Google LLC
|
|
|
GET
H2
|
200
|
integrator.sync.js
Show response
adservice.google.de/adsid/
Frame 8D90
|
113 B
175 B
|
25ms
0ms
|
Script
application/javascript |
2a00:1450:4001:81c::2002
Google LLC
|
|
|
GET
H2
|
200
|
ads
Show response
securepubads.g.doubleclick.net/gampad/
Frame 0901
|
14 KB
8 KB
|
289ms
281ms
|
XHR
text/javascript |
216.58.206.2
Google LLC
|
|
General
- Full URL
- https://securepubads.g.doubleclick.net/gampad/ads?gdfp_req=1&pvsid=1113286740582558&correlator=3641283363823441&output=json_html&callback=googletag.impl.pubads.callbackProxy1&impl=fif&vrg=2019050901&guci=1.2.0.0.2.2.0.0&plat=1%3A32776%2C2%3A32776%2C8%3A32776&sc=1&sfv=1-0-33&iu=%2F53015287%2Fgolem.de_d_300x600_1_dc&sz=10x40%7C10x30%7C10x20%7C10x22%7C120x600%7C160x600%7C200x600%7C300x600&scp=adslot%3Dsky%26src%3Dsdg&eri=6&cookie=ID%3D6179713e097812bd%3AT%3D1557932490%3AS%3DALNI_MYWuNjYuD9XUb_eEyoXq1Rt88rGQQ&cdm=www.golem.de&bc=31&lmt=1557932491&dt=1557932491483&dlt=1557932491168&idt=286&ea=0&frm=23&biw=1585&bih=1185&isw=300&ish=600&oid=3&adx=1303&ady=10&adk=3954477340&uci=y2tsqdtg66ta&ifi=1&ifk=3472037449&u_his=2&u_h=1200&u_w=1600&u_ah=1200&u_aw=1600&u_cd=24&u_sd=1&flash=0&nhd=1&iag=3&url=https%3A%2F%2Fwww.golem.de%2Fnews%2Fbest-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html&top=www.golem.de&dssz=6&icsg=10&std=0&vis=1&dmc=8&scr_x=0&scr_y=0&psz=300x40&msz=300x40&blev=1&bisch=1&ga_vid=415309479.1557932491&ga_sid=1557932491&ga_hid=602018485&fws=256
- Requested by
- Host: securepubads.g.doubleclick.net
URL: https://securepubads.g.doubleclick.net/gpt/pubads_impl_2019050901.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
216.58.206.2
Mountain View, United States,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- fra16s20-in-f2.1e100.net
- Software
-
cafe /
- Resource Hash
- 3c87063ebe72bb0cd5466feb8822d04f2039e6c650a55078af025095e85d5bb8
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
pubads_impl_rendering_2019050901.js
Show response
securepubads.g.doubleclick.net/gpt/
Frame 0901
|
71 KB
27 KB
|
49ms
43ms
|
Script
text/javascript |
216.58.206.2
Google LLC
|
|
|
GET
H2
|
200
|
container.html
tpc.googlesyndication.com/safeframe/1-0-33/html/
Frame 0901
|
0
0
|
11ms
6ms
|
Other
text/html |
2a00:1450:4001:806::2001
Google LLC
|
|
General
- Full URL
- https://tpc.googlesyndication.com/safeframe/1-0-33/html/container.html?n=1
- Requested by
- Host: securepubads.g.doubleclick.net
URL: https://securepubads.g.doubleclick.net/gpt/pubads_impl_2019050901.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a00:1450:4001:806::2001
Frankfurt am Main, Germany,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
/
- Resource Hash
|
GET
H2
|
200
|
ads
Show response
securepubads.g.doubleclick.net/gampad/
Frame 07F8
|
23 KB
9 KB
|
307ms
306ms
|
XHR
text/javascript |
216.58.206.2
Google LLC
|
|
General
- Full URL
- https://securepubads.g.doubleclick.net/gampad/ads?gdfp_req=1&pvsid=376961236329577&correlator=1532647006570652&output=json_html&callback=googletag.impl.pubads.callbackProxy1&impl=fif&eid=21062454&vrg=2019050901&guci=1.2.0.0.2.2.0.0&plat=1%3A32776%2C2%3A32776%2C8%3A32776&sc=1&sfv=1-0-33&iu=%2F53015287%2Fgolem.de_d_970x250_1_dc&sz=20x10%7C30x10%7C40x10%7C80x10%7C800x250%7C970x250%7C728x90%7C728x180%7C770x250&scp=adslot%3Dbanner%26src%3Dsdg&eri=6&cookie=ID%3D6179713e097812bd%3AT%3D1557932490%3AS%3DALNI_MYWuNjYuD9XUb_eEyoXq1Rt88rGQQ&cdm=www.golem.de&bc=31&lmt=1557932491&dt=1557932491525&dlt=1557932491228&idt=266&ea=0&frm=23&biw=1585&bih=1185&isw=970&ish=250&oid=3&adx=308&ady=140&adk=3221795798&uci=tmgro1a32b02&ifi=1&ifk=1903402356&u_his=2&u_h=1200&u_w=1600&u_ah=1200&u_aw=1600&u_cd=24&u_sd=1&flash=0&nhd=1&iag=3&url=https%3A%2F%2Fwww.golem.de%2Fnews%2Fbest-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html&top=www.golem.de&dssz=6&icsg=10&std=0&vis=1&dmc=8&scr_x=0&scr_y=0&psz=970x10&msz=970x10&blev=1&bisch=1&ga_vid=561995917.1557932492&ga_sid=1557932492&ga_hid=595838723&fws=256
- Requested by
- Host: securepubads.g.doubleclick.net
URL: https://securepubads.g.doubleclick.net/gpt/pubads_impl_2019050901.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
216.58.206.2
Mountain View, United States,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- fra16s20-in-f2.1e100.net
- Software
-
cafe /
- Resource Hash
- 409f0f3299f686120393ade2c293cf0cb937e2de0d4dde5755b92abf0cbda44a
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
pubads_impl_rendering_2019050901.js
Show response
securepubads.g.doubleclick.net/gpt/
Frame 07F8
|
71 KB
27 KB
|
41ms
41ms
|
Script
text/javascript |
216.58.206.2
Google LLC
|
|
|
GET
H2
|
200
|
container.html
tpc.googlesyndication.com/safeframe/1-0-33/html/
Frame 07F8
|
0
0
|
6ms
6ms
|
Other
text/html |
2a00:1450:4001:806::2001
Google LLC
|
|
General
- Full URL
- https://tpc.googlesyndication.com/safeframe/1-0-33/html/container.html?n=1
- Requested by
- Host: securepubads.g.doubleclick.net
URL: https://securepubads.g.doubleclick.net/gpt/pubads_impl_2019050901.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a00:1450:4001:806::2001
Frankfurt am Main, Germany,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
/
- Resource Hash
|
GET
H2
|
200
|
ads
Show response
securepubads.g.doubleclick.net/gampad/
Frame DCA4
|
23 KB
9 KB
|
263ms
262ms
|
XHR
text/javascript |
216.58.206.2
Google LLC
|
|
General
- Full URL
- https://securepubads.g.doubleclick.net/gampad/ads?gdfp_req=1&pvsid=3242110677570838&correlator=1692563263842781&output=json_html&callback=googletag.impl.pubads.callbackProxy1&impl=fif&eid=21062453%2C21062456%2C21063388%2C953563516&vrg=2019050901&guci=1.2.0.0.2.2.0.0&plat=1%3A32776%2C2%3A32776%2C8%3A32776&sc=1&sfv=1-0-33&iu=%2F53015287%2Fgolem.de_d_300x600_2_dc&sz=10x20%7C10x10%7C300x250%7C300x601%7C300x125&scp=adslot%3Drectangle%26src%3Dsdg&eri=6&cookie=ID%3D6179713e097812bd%3AT%3D1557932490%3AS%3DALNI_MYWuNjYuD9XUb_eEyoXq1Rt88rGQQ&cdm=www.golem.de&bc=31&lmt=1557932491&dt=1557932491549&dlt=1557932491274&idt=262&frm=23&biw=1585&bih=1185&isw=300&ish=601&oid=3&adx=993&ady=1062&adk=789778236&uci=ijz3qoeihsu1&ifi=1&ifk=1255530642&u_his=2&u_h=1200&u_w=1600&u_ah=1200&u_aw=1600&u_cd=24&u_sd=1&flash=0&nhd=1&iag=3&url=https%3A%2F%2Fwww.golem.de%2Fnews%2Fbest-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html&top=www.golem.de&dssz=6&icsg=10&std=0&vis=1&dmc=8&scr_x=0&scr_y=0&blev=1&bisch=1&ga_vid=1789509072.1557932492&ga_sid=1557932492&ga_hid=587863424&fws=256
- Requested by
- Host: securepubads.g.doubleclick.net
URL: https://securepubads.g.doubleclick.net/gpt/pubads_impl_2019050901.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
216.58.206.2
Mountain View, United States,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- fra16s20-in-f2.1e100.net
- Software
-
cafe /
- Resource Hash
- 1812d0532c826bd829f1bde5806d299a1fa53eeb7d2ebc3e6659202e9012d05c
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
pubads_impl_rendering_2019050901.js
Show response
securepubads.g.doubleclick.net/gpt/
Frame DCA4
|
71 KB
27 KB
|
42ms
41ms
|
Script
text/javascript |
216.58.206.2
Google LLC
|
|
|
GET
H2
|
200
|
container.html
tpc.googlesyndication.com/safeframe/1-0-33/html/
Frame DCA4
|
0
0
|
6ms
6ms
|
Other
text/html |
2a00:1450:4001:806::2001
Google LLC
|
|
General
- Full URL
- https://tpc.googlesyndication.com/safeframe/1-0-33/html/container.html?n=1
- Requested by
- Host: securepubads.g.doubleclick.net
URL: https://securepubads.g.doubleclick.net/gpt/pubads_impl_2019050901.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a00:1450:4001:806::2001
Frankfurt am Main, Germany,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
/
- Resource Hash
|
GET
H2
|
200
|
ads
Show response
securepubads.g.doubleclick.net/gampad/
Frame 8D90
|
326 B
285 B
|
96ms
95ms
|
XHR
text/javascript |
216.58.206.2
Google LLC
|
|
General
- Full URL
- https://securepubads.g.doubleclick.net/gampad/ads?gdfp_req=1&pvsid=2096587843271216&correlator=4090092662935464&output=json_html&callback=googletag.impl.pubads.callbackProxy1&impl=fif&eid=21062420&vrg=2019050901&guci=1.2.0.0.2.2.0.0&plat=1%3A32776%2C2%3A32776%2C8%3A32776&sc=1&sfv=1-0-33&iu=%2F53015287%2Fgolem.de_d_300x250_2_dc&sz=10x10%7C10x11%7C301x250%7C300x126&scp=adslot%3Drectangle2%26src%3Dsdg&eri=6&cookie=ID%3D6179713e097812bd%3AT%3D1557932490%3AS%3DALNI_MYWuNjYuD9XUb_eEyoXq1Rt88rGQQ&cdm=www.golem.de&bc=31&lmt=1557932491&dt=1557932491640&dlt=1557932491317&idt=296&ea=0&frm=23&biw=1585&bih=1185&isw=301&ish=250&oid=3&adx=993&ady=3953&adk=4292326851&uci=8ukw4rxwmpm2&ifi=1&ifk=3514803478&u_his=2&u_h=1200&u_w=1600&u_ah=1200&u_aw=1600&u_cd=24&u_sd=1&flash=0&nhd=1&iag=3&url=https%3A%2F%2Fwww.golem.de%2Fnews%2Fbest-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html&top=www.golem.de&dssz=6&icsg=10&std=0&vis=1&dmc=8&scr_x=0&scr_y=0&psz=301x10&msz=301x10&blev=1&bisch=1&ga_vid=1640646129.1557932492&ga_sid=1557932492&ga_hid=76576653&fws=256
- Requested by
- Host: securepubads.g.doubleclick.net
URL: https://securepubads.g.doubleclick.net/gpt/pubads_impl_2019050901.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
216.58.206.2
Mountain View, United States,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- fra16s20-in-f2.1e100.net
- Software
-
cafe /
- Resource Hash
- 410943e6f84a76cfc31b928d5e086229f730bbccfe001df4a6bfc06e4263202a
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
pubads_impl_rendering_2019050901.js
Show response
securepubads.g.doubleclick.net/gpt/
Frame 8D90
|
71 KB
27 KB
|
46ms
45ms
|
Script
text/javascript |
216.58.206.2
Google LLC
|
|
|
GET
H2
|
200
|
container.html
tpc.googlesyndication.com/safeframe/1-0-33/html/
Frame 8D90
|
0
0
|
10ms
6ms
|
Other
text/html |
2a00:1450:4001:806::2001
Google LLC
|
|
General
- Full URL
- https://tpc.googlesyndication.com/safeframe/1-0-33/html/container.html?n=1
- Requested by
- Host: securepubads.g.doubleclick.net
URL: https://securepubads.g.doubleclick.net/gpt/pubads_impl_2019050901.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a00:1450:4001:806::2001
Frankfurt am Main, Germany,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
/
- Resource Hash
|
GET
DATA
|
200
OK
|
truncated
/
Frame 0901
|
212 B
0
|
|
Image
image/png |
|
|
|
GET
DATA
|
200
OK
|
truncated
/
Frame 07F8
|
215 B
0
|
|
Image
image/png |
|
|
|
GET
DATA
|
200
OK
|
truncated
/
Frame DCA4
|
215 B
0
|
|
Image
image/png |
|
|
|
GET
DATA
|
200
OK
|
truncated
/
Frame 8D90
|
217 B
0
|
|
Image
image/png |
|
|
|
GET
H2
|
200
|
container.html
tpc.googlesyndication.com/safeframe/1-0-33/html/
Frame 38D4
|
0
0
|
7ms
6ms
|
Document
text/html |
2a00:1450:4001:806::2001
Google LLC
|
|
General
- Full URL
- https://tpc.googlesyndication.com/safeframe/1-0-33/html/container.html?n=1
- Requested by
- Host: securepubads.g.doubleclick.net
URL: https://securepubads.g.doubleclick.net/gpt/pubads_impl_rendering_2019050901.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a00:1450:4001:806::2001
Frankfurt am Main, Germany,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
sffe /
- Resource Hash
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
osd.js
Show response
www.googletagservices.com/activeview/js/current/
Frame 0901
|
76 KB
28 KB
|
42ms
42ms
|
Script
text/javascript |
2a00:1450:4001:816::2002
Google LLC
|
|
General
- Full URL
- https://www.googletagservices.com/activeview/js/current/osd.js?cb=%2Fr20100101
- Requested by
- Host: securepubads.g.doubleclick.net
URL: https://securepubads.g.doubleclick.net/gpt/pubads_impl_2019050901.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a00:1450:4001:816::2002
Frankfurt am Main, Germany,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
sffe /
- Resource Hash
- 53af729e9e4b8c8d2aae917515b562dba0d5273acc77c8775d6e05a6cddfcefd
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
container.html
tpc.googlesyndication.com/safeframe/1-0-33/html/
Frame 22E5
|
0
0
|
22ms
19ms
|
Document
text/html |
2a00:1450:4001:806::2001
Google LLC
|
|
General
- Full URL
- https://tpc.googlesyndication.com/safeframe/1-0-33/html/container.html?n=1
- Requested by
- Host: securepubads.g.doubleclick.net
URL: https://securepubads.g.doubleclick.net/gpt/pubads_impl_rendering_2019050901.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a00:1450:4001:806::2001
Frankfurt am Main, Germany,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
sffe /
- Resource Hash
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
osd.js
Show response
www.googletagservices.com/activeview/js/current/
Frame DCA4
|
76 KB
28 KB
|
126ms
47ms
|
Script
text/javascript |
2a00:1450:4001:816::2002
Google LLC
|
|
General
- Full URL
- https://www.googletagservices.com/activeview/js/current/osd.js?cb=%2Fr20100101
- Requested by
- Host: securepubads.g.doubleclick.net
URL: https://securepubads.g.doubleclick.net/gpt/pubads_impl_2019050901.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a00:1450:4001:816::2002
Frankfurt am Main, Germany,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
sffe /
- Resource Hash
- 53af729e9e4b8c8d2aae917515b562dba0d5273acc77c8775d6e05a6cddfcefd
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
container.html
tpc.googlesyndication.com/safeframe/1-0-33/html/
Frame 171C
|
0
0
|
17ms
7ms
|
Document
text/html |
2a00:1450:4001:806::2001
Google LLC
|
|
General
- Full URL
- https://tpc.googlesyndication.com/safeframe/1-0-33/html/container.html?n=1
- Requested by
- Host: securepubads.g.doubleclick.net
URL: https://securepubads.g.doubleclick.net/gpt/pubads_impl_rendering_2019050901.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a00:1450:4001:806::2001
Frankfurt am Main, Germany,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
sffe /
- Resource Hash
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
osd.js
Show response
www.googletagservices.com/activeview/js/current/
Frame 07F8
|
76 KB
28 KB
|
70ms
55ms
|
Script
text/javascript |
2a00:1450:4001:816::2002
Google LLC
|
|
General
- Full URL
- https://www.googletagservices.com/activeview/js/current/osd.js?cb=%2Fr20100101
- Requested by
- Host: securepubads.g.doubleclick.net
URL: https://securepubads.g.doubleclick.net/gpt/pubads_impl_2019050901.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a00:1450:4001:816::2002
Frankfurt am Main, Germany,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
sffe /
- Resource Hash
- 53af729e9e4b8c8d2aae917515b562dba0d5273acc77c8775d6e05a6cddfcefd
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
POST
H2
|
204
|
csi
csi.gstatic.com/
|
0
56 B
|
303ms
302ms
|
Other
image/gif |
2404:6800:4003:c04::5e
Google LLC
|
|
General
- Full URL
- https://csi.gstatic.com/csi?v=2&s=pagead&action=csi_pagead&dmc=8&puid=1~jvpcs18j&c=7308550299401&e=20040081%2C21060549%2C21060853%2C410075103%2C20040010&ctx=1&met.9=1.na~2.340
- Requested by
- Host: pagead2.googlesyndication.com
URL: https://pagead2.googlesyndication.com/pagead/js/r20190513/r20190131/rum.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2404:6800:4003:c04::5e
Singapore, Singapore,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
Golfe2 /
- Resource Hash
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
GET
H2
|
200
|
activeview
pagead2.googlesyndication.com/pcs/
Frame 0901
|
42 B
112 B
|
15ms
14ms
|
Image
image/gif |
2a00:1450:4001:820::2002
Google LLC
|
|
General
- Full URL
- https://pagead2.googlesyndication.com/pcs/activeview?xai=AKAOjsscpXHvpU6OtLJU1Hxudv31-bQjPhk86_HQoZGwYZsY5Bu10i4LJlI7seOv_QPqcm5ySyvSUcPxD4PaOSBvwg9jfp_F9nFKkNnhcaOkiXw&sig=Cg0ArKJSzPniL3s70m0rEAE&adk=4154185509&tt=-1&bs=1585%2C1185&mtos=0,1020,1020,1020,1020&tos=0,1020,0,0,0&p=10,1303,610,1603&mkm=1&mcvt=1020&rs=3&ht=0&tfs=4001&tls=5021&mc=0.94<e=0.94&bas=0&bac=0&avms=geo&md=2&rst=1557932491176&rpt=580&isd=0&msd=0&lm=2&oseid=3&xdi=0&ps=1603%2C5501&ss=1600%2C1200&pt=-1&deb=1-1-5-98-18-87-68-17&tvt=4953&r=v&id=osdim&vs=4&uc=8&upc=1&tgt=DIV&cl=1&cec=1&clc=1&cac=1&cd=0x0&itpl=19&v=20190513
- Requested by
- Host: www.golem.de
URL: https://www.golem.de/news/best-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a00:1450:4001:820::2002
Frankfurt am Main, Germany,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
cafe /
- Resource Hash
- ef1955ae757c8b966c83248350331bd3a30f658ced11f387f8ebf05ab3368629
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
activeview
pagead2.googlesyndication.com/pcs/
Frame 07F8
|
42 B
110 B
|
16ms
15ms
|
Image
image/gif |
2a00:1450:4001:820::2002
Google LLC
|
|
General
- Full URL
- https://pagead2.googlesyndication.com/pcs/activeview?xai=AKAOjsvzwsuN1-_pCvrZyYjqwWRbw5cnXzaRsSdbBuyvvv4990h78Px1unjULGkgTtjFbe5ItkpGyJdNO9WIqcpTvv6Qf7x5zahmPONDS0yacQU&sig=Cg0ArKJSzHXKoXQP-Vy-EAE&adk=3506586144&tt=-1&bs=1585%2C1185&mtos=1020,1020,1020,1020,1020&tos=1020,0,0,0,0&p=140,429,230,1157&mkm=1&mcvt=1020&rs=3&ht=0&tfs=4001&tls=5021&mc=1<e=1&bas=0&bac=0&avms=geo&md=2&rst=1557932491253&rpt=529&isd=0&msd=0&lm=2&oseid=3&xdi=0&ps=1603%2C5501&ss=1600%2C1200&pt=-1&deb=1-1-5-98-18-87-68-17&tvt=4953&r=v&id=osdim&vs=4&uc=8&upc=1&tgt=DIV&cl=1&cec=1&clc=1&cac=1&cd=0x0&itpl=19&v=20190513
- Requested by
- Host: www.golem.de
URL: https://www.golem.de/news/best-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a00:1450:4001:820::2002
Frankfurt am Main, Germany,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
cafe /
- Resource Hash
- ef1955ae757c8b966c83248350331bd3a30f658ced11f387f8ebf05ab3368629
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
activeview
pagead2.googlesyndication.com/pcs/
Frame DCA4
|
42 B
110 B
|
18ms
15ms
|
Image
image/gif |
2a00:1450:4001:820::2002
Google LLC
|
|
General
- Full URL
- https://pagead2.googlesyndication.com/pcs/activeview?xai=AKAOjstKA5UKHhsafg-5pboJAmPSDZSG6EbIbL3z4riZlA8ZnlmjwuXbD15HGOFmdBhC7M4ZwNdek8uPp29ibw2YdZVNJ6S923qXU42sJYG-q7Y&sig=Cg0ArKJSzKNwNeQboC7dEAE&adk=2040986986&tt=-1&bs=1585%2C1185&mtos=1020,1020,1020,1020,1020&tos=1020,0,0,0,0&p=902,993,1152,1293&mkm=1&mcvt=1020&rs=3&ht=0&tfs=4001&tls=5021&mc=1<e=1&bas=0&bac=0&avms=geo&md=2&rst=1557932491292&rpt=498&isd=0&msd=0&lm=2&oseid=3&xdi=0&ps=1603%2C5501&ss=1600%2C1200&pt=-1&deb=1-1-5-98-18-87-68-17&tvt=4953&r=v&id=osdim&vs=4&uc=8&upc=1&tgt=DIV&cl=1&cec=1&clc=1&cac=1&cd=0x0&itpl=19&v=20190513
- Requested by
- Host: www.golem.de
URL: https://www.golem.de/news/best-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a00:1450:4001:820::2002
Frankfurt am Main, Germany,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
cafe /
- Resource Hash
- ef1955ae757c8b966c83248350331bd3a30f658ced11f387f8ebf05ab3368629
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
0 |
|
GET
H/1.1
|
200
OK
|
Cookie set
frame
delivery.selfcampaign.com/tag/146005/
Frame 725C
|
0
0
|
4228ms
1164ms
|
Document
text/html |
148.251.131.173
HETZNER-AS
|
|
General
- Full URL
- https://delivery.selfcampaign.com/tag/146005/frame?title=Best%20of%20the%20Web%3A%20Trust-Siegel%20verteilt%20Keylogger%20-%20Golem.de&meta_keywords=&meta_description=Eigentlich%20soll%20das%20Best-of-the-Web-Siegel%20die%20Sicherheit%20von%20Webseiten%20zertifizieren%2C%20stattdesse...
- Requested by
- Host: lib.selfcampaign.com
URL: https://lib.selfcampaign.com/tag/146005_67aa4bdf07fc8a6dd839add1ec7302a1?async=1
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_RSA, AES_256_GCM
- Server
-
148.251.131.173
, Germany,
ASN24940
(HETZNER-AS, DE),
- Reverse DNS
- static.173.131.251.148.clients.your-server.de
- Software
-
nginx/1.14.0 (Ubuntu) /
- Resource Hash
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
1; mode=block |
|
GET
H2
|
200
|
fbevents.js
Show response
connect.facebook.net/en_US/
|
53 KB
15 KB
|
6ms
6ms
|
Script
application/x-javascript |
2a03:2880:f01c:216:face:b00c:0:3
Facebook
|
|
General
- Full URL
- https://connect.facebook.net/en_US/fbevents.js
- Requested by
- Host: lib.selfcampaign.com
URL: https://lib.selfcampaign.com/tag/146005_67aa4bdf07fc8a6dd839add1ec7302a1?async=1
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a03:2880:f01c:216:face:b00c:0:3
, Ireland,
ASN32934
(FACEBOOK - Facebook, Inc., US),
- Reverse DNS
- Software
-
/
- Resource Hash
- fa59b1ed1b011e084474ad818b5f6986d84fc678e2f37fee9330eb52d86860b3
- Security Headers
-
Name |
Value |
Content-Security-Policy |
default-src * data: blob:;script-src *.facebook.com *.fbcdn.net *.facebook.net *.google-analytics.com *.virtualearth.net *.google.com 127.0.0.1:* *.spotilocal.com:* 'unsafe-inline' 'unsafe-eval' blob: data: 'self';style-src data: blob: 'unsafe-inline' *;connect-src *.facebook.com facebook.com *.fbcdn.net *.facebook.net *.spotilocal.com:* wss://*.facebook.com:* https://fb.scanandcleanlocal.com:* attachment.fbsbx.com ws://localhost:* blob: *.cdninstagram.com 'self'; |
Strict-Transport-Security |
max-age=31536000; preload; includeSubDomains |
X-Content-Type-Options |
nosniff |
X-Frame-Options |
DENY |
X-Xss-Protection |
0 |
|
GET
H/1.1
|
200
OK
|
/
track2.selfcampaign.com/tag/
|
43 B
501 B
|
336ms
22ms
|
Image
image/gif |
148.251.69.233
HETZNER-AS
|
|
General
- Full URL
- https://track2.selfcampaign.com/tag/?request_id=c04e18ab-285c-44d3-b9f0-6cf9162fc54a&_auid=2a345f73fd39ec760c6933a51227b039&tag=146005&tags_usergroup=2805&project_id=611&account_id=545&ipzones=&pxs=&_autags=T0T&marked_tags=&lang=en-US&screen=1600x1200&screen_a=1200x1600&color_d=24&location=https%3A//www.golem.de/news/best-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html&referrer=&location_utm_medium=&location_utm_source=&location_utm_campaign=&location_utm_term=&location_utm_content=&title=Best%20of%20the%20Web%3A%20Trust-Siegel%20verteilt%20Keylogger%20-%20Golem.de&meta_keywords=&meta_description=Eigentlich%20soll%20das%20Best-of-the-Web-Siegel%20die%20Sicherheit%20von%20Webseiten%20zertifizieren%2C%20stattdesse...
- Requested by
- Host: www.golem.de
URL: https://www.golem.de/news/best-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_RSA, AES_128_GCM
- Server
-
148.251.69.233
, Germany,
ASN24940
(HETZNER-AS, DE),
- Reverse DNS
- static.233.69.251.148.clients.your-server.de
- Software
-
nginx/1.9.7 /
- Resource Hash
- cf4724b2f736ed1a0ae6bc28f1ead963d9cd2c1fd87b6ef32e7799fc1c5c8bda
|
GET
H/1.1
|
200
OK
|
/
track2.selfcampaign.com/map_td/
Redirect Chain
-
https://match.adsrvr.org/track/cmf/generic?ttd_pid=b2bmedia&ttd_tpi=1&ttd_puid=2a345f73fd39ec760c6933a51227b039
-
https://match.adsrvr.org/track/cmb/generic?ttd_pid=b2bmedia&ttd_tpi=1&ttd_puid=2a345f73fd39ec760c6933a51227b039
-
https://track.selfcampaign.com/map_td/?tdid=45ce332b-46b1-45ca-a465-be0929065911
-
https://track2.selfcampaign.com/map_td/?tdid=45ce332b-46b1-45ca-a465-be0929065911
|
43 B
488 B
|
777ms
12ms
|
Image
image/gif |
148.251.69.233
HETZNER-AS
|
|
|
GET
H/1.1
|
200
OK
|
/
track2.selfcampaign.com/map_td/
Redirect Chain
-
https://c1.adform.net/serving/cookie/match?party=1173
-
https://c1.adform.net/serving/cookie/match?CC=1&party=1173
-
https://track2.selfcampaign.com/map_td/?tdid=2287851576156690562&source=adform
|
43 B
488 B
|
107ms
12ms
|
Image
image/gif |
148.251.69.233
HETZNER-AS
|
|
|
GET
H/1.1
|
200
OK
|
mark
lib.selfcampaign.com/tag/146005/
|
0
0
|
925ms
922ms
|
Image
text/plain |
148.251.131.173
HETZNER-AS
|
|
|
GET
H2
|
200
|
413343732388253
Show response
connect.facebook.net/signals/config/
|
207 KB
55 KB
|
25ms
20ms
|
Script
application/x-javascript |
2a03:2880:f01c:216:face:b00c:0:3
Facebook
|
|
General
- Full URL
- https://connect.facebook.net/signals/config/413343732388253?v=2.8.47&r=stable
- Requested by
- Host: connect.facebook.net
URL: https://connect.facebook.net/en_US/fbevents.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a03:2880:f01c:216:face:b00c:0:3
, Ireland,
ASN32934
(FACEBOOK - Facebook, Inc., US),
- Reverse DNS
- Software
-
/
- Resource Hash
- d645956646bc0e6e1a33190fce79233b95079081e906891293f343a7c98492bc
- Security Headers
-
Name |
Value |
Content-Security-Policy |
default-src * data: blob:;script-src *.facebook.com *.fbcdn.net *.facebook.net *.google-analytics.com *.virtualearth.net *.google.com 127.0.0.1:* *.spotilocal.com:* 'unsafe-inline' 'unsafe-eval' blob: data: 'self';style-src data: blob: 'unsafe-inline' *;connect-src *.facebook.com facebook.com *.fbcdn.net *.facebook.net *.spotilocal.com:* wss://*.facebook.com:* https://fb.scanandcleanlocal.com:* attachment.fbsbx.com ws://localhost:* blob: *.cdninstagram.com 'self'; |
Strict-Transport-Security |
max-age=31536000; preload; includeSubDomains |
X-Content-Type-Options |
nosniff |
X-Frame-Options |
DENY |
X-Xss-Protection |
0 |
|
GET
H/1.1
|
200
OK
|
submit
lb44.s400.meetrics.net/bb-mx/
|
43 B
291 B
|
3574ms
14ms
|
Image
image/gif |
136.243.5.229
HETZNER-AS
|
|
General
- Full URL
- https://lb44.s400.meetrics.net/bb-mx/submit?/ilKUBDBAA/whFaBo0F0wFz6BvvA33F3uBnvFslFtuBklFvuEl3FzvBilFz0FtvEmtB0oFltB3lFitB0yF1zF0tBzpFlnFlsFt2ElyF0lFpsF0tBrlF5sFvnFnlFytBx5Aw1AtxA0xAy3A1uAo0FtsFfpyF+k2FoywAx5AtwA1tAw2AtxAz6A10At2A35A2wAwtAyuAxwA5uAytAwmEm3B0yAzxAL2wFBLl1FCz2iFjsFpjFrfFqhFjrFpuFnfFpmFyhFtlF/2xFMCylFx1FlzF0mF1sFszFjyFllFugBm1FssFzjFylFluFluFhiFslFkgB3pFukFv3Ff3FliFrpF0yFlxF1lFz0FhuFptFh0FpvFumFyhFtlFg3EpuFkvF3fF3lFirFp0FjhFujFlsFhuFptFh0FpvFumFyhFtlFg3EpuFkvF3fF3lFirFp0Fz0FvyFhnFlpFumFvgBjzFzfF3lFirFp0FOprFw6lCOqwFw6lClqwF23A52AwwALkmFBTkzFsFAAAAAAAZwS9VBPAAAAAAAAAOAAAAGLAAAAAAZwS9VBBRksFAQtjFo5kCTA
- Requested by
- Host: www.golem.de
URL: https://www.golem.de/news/best-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_RSA, AES_256_GCM
- Server
-
136.243.5.229
, Germany,
ASN24940
(HETZNER-AS, DE),
- Reverse DNS
- h231.meetrics.de
- Software
-
nginx /
- Resource Hash
- 548f2d6f4d0d820c6c5ffbeffcbd7f0e73193e2932eefe542accc84762deec87
|
GET
H/1.1
|
200
OK
|
data
lb44.s400.meetrics.net/
|
43 B
308 B
|
3585ms
11ms
|
Image
image/gif |
136.243.5.229
HETZNER-AS
|
|
|
GET
H2
|
200
|
inferredEvents.js
Show response
connect.facebook.net/signals/plugins/
|
1 KB
908 B
|
87ms
38ms
|
Script
application/x-javascript |
2a03:2880:f01c:216:face:b00c:0:3
Facebook
|
|
General
- Full URL
- https://connect.facebook.net/signals/plugins/inferredEvents.js?v=2.8.47
- Requested by
- Host: connect.facebook.net
URL: https://connect.facebook.net/en_US/fbevents.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a03:2880:f01c:216:face:b00c:0:3
, Ireland,
ASN32934
(FACEBOOK - Facebook, Inc., US),
- Reverse DNS
- Software
-
/
- Resource Hash
- cd1c301a8e7960a1786e2a959226b0b78b56dbea284bd114265f1662d6ca280e
- Security Headers
-
Name |
Value |
Strict-Transport-Security |
max-age=31536000; preload; includeSubDomains |
X-Content-Type-Options |
nosniff |
X-Frame-Options |
DENY |
X-Xss-Protection |
0 |
|
GET
H2
|
200
|
/
www.facebook.com/tr/
|
44 B
319 B
|
435ms
0ms
|
Image
image/gif |
2a03:2880:f11c:8083:face:b00c:0:25de
Facebook
|
|
General
- Full URL
- https://www.facebook.com/tr/?id=413343732388253&ev=TagView&dl=https%3A%2F%2Fwww.golem.de%2Fnews%2Fbest-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html&rl=&if=false&ts=1557932494087&cd[tag_id]=146005&sw=1600&sh=1200&v=2.8.47&r=stable&ec=0&o=30&fbp=fb.1.1557932494078.517815023&it=1557932493461&coo=false&rqm=GET
- Requested by
- Host: www.golem.de
URL: https://www.golem.de/news/best-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a03:2880:f11c:8083:face:b00c:0:25de
, Ireland,
ASN32934
(FACEBOOK - Facebook, Inc., US),
- Reverse DNS
- Software
-
proxygen-bolt /
- Resource Hash
- 10d8d42d73a02ddb877101e72fbfa15a0ec820224d97cedee4cf92d571be5caa
- Security Headers
-
Name |
Value |
Strict-Transport-Security |
max-age=31536000; includeSubDomains |
|
GET
H/1.1
|
200
OK
|
async_usersync.html
acdn.adnxs.com/ib/static/usersync/v3/
Frame 6E6A
|
0
0
|
407ms
18ms
|
Document
text/html |
104.111.215.51
Akamai Technologies
|
|
|
GET
H/1.1
|
200
OK
|
Cookie set
showad.js
ads.pubmatic.com/AdServer/js/
Frame 09F9
|
0
0
|
684ms
18ms
|
Document
text/html |
104.111.215.68
Akamai Technologies
|
|
|
GET
H2
|
200
|
index.html
cdn.districtm.io/ids/
Frame CDCE
|
0
0
|
564ms
67ms
|
Document
text/html |
2606:4700:30::681c:12e8
Cloudflare
|
|
General
- Full URL
- https://cdn.districtm.io/ids/index.html
- Requested by
- Host: cdn-a.yieldlove.com
URL: https://cdn-a.yieldlove.com/yieldlove-bidder-stroeer.js?golem.de
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2606:4700:30::681c:12e8
, United States,
ASN13335
(CLOUDFLARENET - Cloudflare, Inc., US),
- Reverse DNS
- Software
-
cloudflare /
- Resource Hash
|
POST
H2
|
200
|
/
www.facebook.com/tr/
Frame 7B2E
|
0
0
|
179ms
3ms
|
Document
text/plain |
2a03:2880:f11c:8083:face:b00c:0:25de
Facebook
|
|
General
- Full URL
- https://www.facebook.com/tr/
- Requested by
- Host: connect.facebook.net
URL: https://connect.facebook.net/en_US/fbevents.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2a03:2880:f11c:8083:face:b00c:0:25de
, Ireland,
ASN32934
(FACEBOOK - Facebook, Inc., US),
- Reverse DNS
- Software
-
proxygen-bolt /
- Resource Hash
- Security Headers
-
Name |
Value |
Strict-Transport-Security |
max-age=31536000; includeSubDomains |
|
GET
H/1.1
|
200
OK
|
/
Show response
tt.onthe.io/
|
0
287 B
|
1132ms
39ms
|
XHR
text/javascript |
95.216.24.150
HETZNER-AS
|
|
General
- Full URL
- https://tt.onthe.io/?k[]=43098:time[url:%2Fnews%2Fbest-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html,type_article:shortread,article_layout:default,site_skin:desktop,device:desktop,custom_page_type:Article%20page,cdn_version:7]&s=6acc7c777cce3be138a245218c439c54&1557932497992
- Requested by
- Host: cdn.onthe.io
URL: https://cdn.onthe.io/io.js/IjvnOpbzskTW
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_RSA, AES_256_GCM
- Server
-
95.216.24.150
, Finland,
ASN24940
(HETZNER-AS, DE),
- Reverse DNS
- static.150.24.216.95.clients.your-server.de
- Software
-
nginx /
- Resource Hash
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
GET
H/1.1
|
200
OK
|
data
lb44.s400.meetrics.net/
|
43 B
308 B
|
91ms
45ms
|
Image
image/gif |
136.243.5.229
HETZNER-AS
|
|
|
GET
H/1.1
|
200
OK
|
pixel
tracking.m6r.eu/consent/
|
44 B
209 B
|
127ms
127ms
|
Image
image/gif |
2.19.33.59
AKAMAI-ASN1
|
|
|
GET
H2
|
204
|
pl
insights.plista.com/
|
0
66 B
|
63ms
62ms
|
Image
text/plain |
23.111.11.152
Highwinds Network...
|
|
General
- Full URL
- https://insights.plista.com/pl?i=5a9fe1dae45a1d155411456a&ct=21.733&rt=0.418&pt=22.151&pvr=&p=https%3A%2F%2Fwww.golem.de%2Fnews%2Fbest-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html&c=desktop&t=article&s=&tg=-1&ctg=-1&_r=1557932507738:4.7.12:20190409-113831
- Protocol
- H2
- Security
- TLS 1.2,
ECDHE_RSA, AES_128_GCM
- Server
-
23.111.11.152
Phoenix, United States,
ASN33438
(HIGHWINDS2 - Highwinds Network Group, Inc., US),
- Reverse DNS
- Software
-
NetDNA-cache/2.2 /
- Resource Hash
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
GET
H/1.1
|
200
OK
|
map.js
Show response
js.adscale.de/
|
21 KB
6 KB
|
3845ms
12ms
|
Script
text/javascript |
104.111.215.171
Akamai Technologies
|
|
|
GET
H2
|
200
|
adex.js
Show response
dmp.theadex.com/d/607/2256/s/
|
39 KB
14 KB
|
14ms
13ms
|
Script
application/javascript |
89.163.159.107
MYLOC-AS
|
|
|
GET
H/1.1
|
200
OK
|
ibb_map.js
Show response
bbcdn-bbnaut.ibillboard.com/library/
|
1 KB
1014 B
|
3218ms
47ms
|
Script
application/javascript |
62.168.44.118
GTSCE GTS Central...
|
|
|
GET
H2
|
200
|
default.js
Show response
ups.xplosion.de/loader/69511/
|
2 KB
2 KB
|
3154ms
65ms
|
Script
text/javascript |
54.171.119.13
Amazon.com
|
|
|
GET
H/1.1
|
200
200
|
learn
de-gmtdmp.mookie1.com/t/v2/
|
43 B
673 B
|
7081ms
21ms
|
Image
image/gif |
3.122.160.52
Amazon.com
|
|
|
GET
H/1.1
|
200
OK
|
/
Show response
tt.onthe.io/
|
0
287 B
|
37ms
36ms
|
XHR
text/javascript |
95.216.24.150
HETZNER-AS
|
|
General
- Full URL
- https://tt.onthe.io/?k[]=43098:time[url:%2Fnews%2Fbest-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html,type_article:shortread,article_layout:default,site_skin:desktop,device:desktop,custom_page_type:Article%20page,cdn_version:7]&s=6acc7c777cce3be138a245218c439c54&1557932508004
- Requested by
- Host: cdn.onthe.io
URL: https://cdn.onthe.io/io.js/IjvnOpbzskTW
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_RSA, AES_256_GCM
- Server
-
95.216.24.150
, Finland,
ASN24940
(HETZNER-AS, DE),
- Reverse DNS
- static.150.24.216.95.clients.your-server.de
- Software
-
nginx /
- Resource Hash
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
POST
H2
|
204
|
csi
csi.gstatic.com/
|
0
56 B
|
298ms
298ms
|
Other
image/gif |
2404:6800:4003:c04::5e
Google LLC
|
|
General
- Full URL
- https://csi.gstatic.com/csi?v=2&s=pagead&action=csi_pagead&dmc=8&puid=2~jvpcs53w&c=7308550299401&e=20040081%2C21060549%2C21060853%2C410075103%2C20040010&ctx=1&met.1=1.jvpcrzd5~6.0~7.70~8.77~9.77~10.9e~11.7y~12.9e~13.a4~14.bm~15.aj~16.u5~17.u5~18.uu~19.h3k~20.h3k~21.h3o~22.ix~23.ix
- Requested by
- Host: pagead2.googlesyndication.com
URL: https://pagead2.googlesyndication.com/pagead/js/r20190513/r20190131/rum.js
- Protocol
- H2
- Security
- TLS 1.3,
, AES_128_GCM
- Server
-
2404:6800:4003:c04::5e
Singapore, Singapore,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
Golfe2 /
- Resource Hash
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
GET
H2
|
200
|
p.min.js
Show response
cdn.emetriq.de/adp/profiling/0.2.1/
|
4 KB
2 KB
|
60ms
7ms
|
Script
application/javascript |
2600:9000:20bb:a000:1c:8c89:a300:93a1
Amazon.com
|
|
|
GET
H2
|
200
|
segments
Show response
api.theadex.com/v0.9/pub/
|
56 B
126 B
|
836ms
12ms
|
Script
text/plain |
85.114.144.107
MYLOC-AS
|
|
General
- Full URL
- https://api.theadex.com/v0.9/pub/segments?access_token=y5fWjpPcqPTEF7fuHtSSUIh1UnD1w2hVEt2Y2PjI&callback=window.ibb_lib.ibb_store
- Requested by
- Host: bbcdn-bbnaut.ibillboard.com
URL: https://bbcdn-bbnaut.ibillboard.com/library/ibb_map.js
- Protocol
- H2
- Security
- TLS 1.2,
ECDHE_RSA, AES_128_GCM
- Server
-
85.114.144.107
, Germany,
ASN24961
(MYLOC-AS, DE),
- Reverse DNS
- Software
-
/
- Resource Hash
- 893fa7339c102fb976d4065531644d8a8ac565fc84818a77600ad3ed5a72a26b
|
GET
H2
|
200
|
data
Show response
ups.xplosion.de/
|
4 KB
3 KB
|
32ms
31ms
|
Script
text/javascript |
54.171.119.13
Amazon.com
|
|
General
- Full URL
- https://ups.xplosion.de/data?title=Best%20of%20the%20Web%3A%20Trust-Siegel%20verteilt%20Keylogger%20-%20Golem.de&hostSiteUrl=https%3A%2F%2Fwww.golem.de%2Fnews%2Fbest-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html&userAgent=5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_13_5)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F67.0.3396.87%20Safari%2F537.36&userLang=en-US&color=24&os=Linux%20x86_64&timezone=0&screen=1200x1600&mbr=b03c1ca71ac9b590ac4dfddc5f3ad735&event_id=page_view&_sid=69511&_ver=0.2.1&_seg=jsonp&_=359083814710
- Requested by
- Host: cdn.emetriq.de
URL: https://cdn.emetriq.de/adp/profiling/0.2.1/p.min.js
- Protocol
- H2
- Security
- TLS 1.2,
ECDHE_RSA, AES_128_GCM
- Server
-
54.171.119.13
Dublin, Ireland,
ASN16509
(AMAZON-02 - Amazon.com, Inc., US),
- Reverse DNS
- ec2-54-171-119-13.eu-west-1.compute.amazonaws.com
- Software
-
/
- Resource Hash
- c3be169db886efe9704bd3736dca04c9b8541af38b93bbc6c10c59faa161e9e5
|
GET
H/1.1
|
200
OK
|
adrtxtag.min.js
Show response
cdn.adrtx.net/
|
840 B
848 B
|
137ms
30ms
|
Script
application/javascript |
52.210.48.228
Amazon.com
|
|
|
GET
H2
|
200
|
usersync
uss.xplosion.de/
Frame 83E1
Redirect Chain
-
https://xpl.theadex.com/d/327/i/2.gif?axd_pid=22&axd_fuid=BSa0WsbsBDa-BSU-BSUkWsfABifABSfABSfABiUABifABfrr&cb=https%3A%2F%2Fuss.xplosion.de%2Fusersync%3Fsid%3D65966%26fpid%3D%7B%7BUUID%7D%7D
-
https://uss.xplosion.de/usersync?sid=65966&fpid=4192566266405755871
|
42 B
592 B
|
32ms
28ms
|
Image
image/gif |
54.171.119.13
Amazon.com
|
|
|
GET
H/1.1
|
200
OK
|
activation
adstax-match.adrtx.net/
Frame 672F
|
0
0
|
146ms
38ms
|
Document
text/html |
52.213.21.157
Amazon.com
|
|
|
GET
H/1.1
|
200
OK
|
Cookie set
map
ih.adscale.de/
Frame A311
Redirect Chain
-
https://ih.adscale.de/map?ssl=1&format=video
-
https://ih.adscale.de/map?ssl=1&format=video&nut&uu=14ae0a1b078f4a458e98be33ab19d584
|
0
0
|
98ms
97ms
|
Document
text/html |
104.111.215.171
Akamai Technologies
|
|
|
GET
H2
|
200
|
usersync
uss.xplosion.de/
|
42 B
592 B
|
40ms
31ms
|
Image
image/gif |
54.171.119.13
Amazon.com
|
|
|
GET
H/1.1
|
200
OK
|
/
Show response
tt.onthe.io/
|
0
287 B
|
115ms
36ms
|
XHR
text/javascript |
95.216.24.150
HETZNER-AS
|
|
General
- Full URL
- https://tt.onthe.io/?k[]=43098:time[url:%2Fnews%2Fbest-of-the-web-trust-siegel-verteilt-keylogger-1905-141275.html,type_article:shortread,article_layout:default,site_skin:desktop,device:desktop,custom_page_type:Article%20page,cdn_version:7]&s=6acc7c777cce3be138a245218c439c54&1557932517993
- Requested by
- Host: cdn.onthe.io
URL: https://cdn.onthe.io/io.js/IjvnOpbzskTW
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_RSA, AES_256_GCM
- Server
-
95.216.24.150
, Finland,
ASN24940
(HETZNER-AS, DE),
- Reverse DNS
- static.150.24.216.95.clients.your-server.de
- Software
-
nginx /
- Resource Hash
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|