GET
H/1.1
|
200
OK
|
Primary Request
Move-Mouse_102198245.html
Show response
www.chip.de/downloads/
|
211 KB
83 KB
|
26ms
13ms
|
Document
text/html |
2a02:26f0:6c00:28c::bf0
AKAMAI-ASN1
|
|
|
GET
H/1.1
|
200
OK
|
ads_fol_init.js
Show response
a.bf-ad.net/makabo/
|
33 B
377 B
|
30ms
5ms
|
Script
application/x-javascript |
2a02:26f0:6c00:28b::30fb
AKAMAI-ASN1
|
|
|
GET
H/1.1
|
200
OK
|
cmp.js
Show response
a.bf-tools.net/cmp/
|
180 KB
53 KB
|
33ms
17ms
|
Script
application/x-javascript |
2a02:26f0:6c00:195::1142
AKAMAI-ASN1
|
|
|
GET
H/1.1
|
200
OK
|
download-v1.5.9.css
www.chip.de/download/assets/
|
300 KB
42 KB
|
12ms
7ms
|
Stylesheet
text/css |
2a02:26f0:6c00:28c::bf0
AKAMAI-ASN1
|
|
|
GET
H/1.1
|
200
OK
|
speedtestwidget-v1.5.9.css
www.chip.de/download/assets/
|
79 KB
11 KB
|
18ms
5ms
|
Stylesheet
text/css |
2a02:26f0:6c00:28c::bf0
AKAMAI-ASN1
|
|
|
GET
H/1.1
|
200
OK
|
simple-dom.php
Show response
www.chip.de/downloader/guided-download/
|
26 KB
8 KB
|
9ms
8ms
|
Script
text/javascript |
2a02:26f0:6c00:28c::bf0
AKAMAI-ASN1
|
|
General
- Full URL
- https://www.chip.de/downloader/guided-download/simple-dom.php?pid=chipde&cid=102198244&lastchange=01-06-2018_15:36&tid=38998&v=1&isDefault=false&ref=&canonical=https%3A%2F%2Fwww.chip.de%2Fdownloads%2FMove-Mouse_102198245.html
- Requested by
- Host: www.chip.de
URL: https://www.chip.de/downloads/Move-Mouse_102198245.html
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_RSA, AES_256_GCM
- Server
-
2a02:26f0:6c00:28c::bf0
, European Union,
ASN20940
(AKAMAI-ASN1, US),
- Reverse DNS
- Software
-
nginx /
- Resource Hash
- f3115bdfa715bd4b11f6f2f8e61eab795b87b83ead55e369e84999ec8a9ef93a
|
GET
H2
|
200
|
satelliteLib-1f360a6db91f2db811a8431bff692897ac6cf408.js
Show response
adtm.chip.de/3469f5db1bb7fc021f6829a881d1c8a6df48a471/
|
106 KB
31 KB
|
59ms
35ms
|
Script
application/x-javascript |
2a02:26f0:6c00:198::bf0
AKAMAI-ASN1
|
|
|
GET
H/1.1
|
200
OK
|
amzn_ads.js
Show response
c.amazon-adsystem.com/aax2/
|
20 KB
7 KB
|
24ms
9ms
|
Script
application/javascript |
52.222.147.181
Amazon.com
|
|
|
GET
H/1.1
|
200
OK
|
9232.min.js
Show response
ad-js.chip.de/js/chip/
|
142 KB
39 KB
|
30ms
12ms
|
Script
text/javascript |
2a02:26f0:6c00:28c::bf0
AKAMAI-ASN1
|
|
|
GET
H/1.1
|
200
OK
|
0e914dcc5ea68d3e.jpg
www.chip.de/ii/5/3/3/5/3/4/0/1/
|
11 KB
12 KB
|
8ms
7ms
|
Image
image/jpeg |
2a02:26f0:6c00:2bc::bf0
AKAMAI-ASN1
|
|
|
GET
H2
|
200
|
bootstrap.88c36d866245388602ce.bundle.js
Show response
filestorage.chip.de/videoplayer/
|
31 KB
11 KB
|
49ms
19ms
|
Script
application/x-javascript |
2a02:26f0:6c00:198::bf0
AKAMAI-ASN1
|
|
|
GET
S
|
200
|
B10860713.145164108;dc_pre=CIaz677A0NwCFVIX4Aodu_EHwQ;dc_trk_aid=316834968;dc_trk_cid=78557170;ord=[timestamp];dc_lat=;dc_rdid=;tag_for_child_directed_treatment=
ad.doubleclick.net/ddm/trackimp/N408002.112081CHIP.DE/
Redirect Chain
-
https://ad.doubleclick.net/ddm/trackimp/N408002.112081CHIP.DE/B10860713.145164108;dc_trk_aid=316834968;dc_trk_cid=78557170;ord=[timestamp];dc_lat=;dc_rdid=;tag_for_child_directed_treatment=?1533285382
-
https://ad.doubleclick.net/ddm/trackimp/N408002.112081CHIP.DE/B10860713.145164108;dc_pre=CIaz677A0NwCFVIX4Aodu_EHwQ;dc_trk_aid=316834968;dc_trk_cid=78557170;ord=[timestamp];dc_lat=;dc_rdid=;tag_for...
|
42 B
318 B
|
26ms
25ms
|
Image
image/gif |
172.217.16.166
Google LLC
|
|
General
- Full URL
- https://ad.doubleclick.net/ddm/trackimp/N408002.112081CHIP.DE/B10860713.145164108;dc_pre=CIaz677A0NwCFVIX4Aodu_EHwQ;dc_trk_aid=316834968;dc_trk_cid=78557170;ord=[timestamp];dc_lat=;dc_rdid=;tag_for_child_directed_treatment=?1533285382
- Requested by
- Host: www.chip.de
URL: https://www.chip.de/downloads/Move-Mouse_102198245.html
- Protocol
- SPDY
- Server
-
172.217.16.166
Mountain View, United States,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- fra15s11-in-f166.1e100.net
- Software
-
cafe /
- Resource Hash
- ef1955ae757c8b966c83248350331bd3a30f658ced11f387f8ebf05ab3368629
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
1; mode=block |
|
GET
H/1.1
|
200
OK
|
outbrain.js
Show response
widgets.outbrain.com/
|
69 KB
26 KB
|
27ms
9ms
|
Script
application/x-javascript |
2.18.234.190
Akamai Technologies
|
|
|
GET
H/1.1
|
200
OK
|
installer_init-v1.5.9.js
Show response
www.chip.de/download/assets/
|
2 KB
1 KB
|
6ms
6ms
|
Script
application/javascript |
2a02:26f0:6c00:28c::bf0
AKAMAI-ASN1
|
|
|
GET
H/1.1
|
200
OK
|
hook-v1.5.9.js
Show response
www.chip.de/download/assets/
|
296 KB
100 KB
|
6ms
6ms
|
Script
application/javascript |
2a02:26f0:6c00:28c::bf0
AKAMAI-ASN1
|
|
|
GET
H2
|
200
|
satellite-5b192bd364746d5acf000a29.js
Show response
adtm.chip.de/3469f5db1bb7fc021f6829a881d1c8a6df48a471/scripts/
|
816 B
1 KB
|
10ms
10ms
|
Script
application/x-javascript |
2a02:26f0:6c00:198::bf0
AKAMAI-ASN1
|
|
|
GET
H2
|
200
|
satellite-57c58fcc64746d7a93007e3e.js
Show response
adtm.chip.de/3469f5db1bb7fc021f6829a881d1c8a6df48a471/scripts/
|
1 KB
764 B
|
12ms
11ms
|
Script
application/x-javascript |
2a02:26f0:6c00:198::bf0
AKAMAI-ASN1
|
|
|
GET
H2
|
200
|
satellite-5a0ef85764746d0bbd0091aa.js
Show response
adtm.chip.de/3469f5db1bb7fc021f6829a881d1c8a6df48a471/scripts/
|
97 B
350 B
|
10ms
10ms
|
Script
application/x-javascript |
2a02:26f0:6c00:198::bf0
AKAMAI-ASN1
|
|
|
GET
H/1.1
|
200
OK
|
bid
Show response
aax.amazon-adsystem.com/e/dtb/
|
33 B
212 B
|
134ms
49ms
|
Script
text/javascript |
52.94.216.48
Amazon.com
|
|
General
- Full URL
- https://aax.amazon-adsystem.com/e/dtb/bid?src=3128&u=https%3A%2F%2Fwww.chip.de%2Fdownloads%2FMove-Mouse_102198245.html&cb=8457674&gdprl=%7B%22status%22%3A%22cmp-in-flight%22%7D
- Requested by
- Host: c.amazon-adsystem.com
URL: https://c.amazon-adsystem.com/aax2/amzn_ads.js
- Protocol
- HTTP/1.1
- Server
-
52.94.216.48
Dublin, Ireland,
ASN16509
(AMAZON-02 - Amazon.com, Inc., US),
- Reverse DNS
- Software
-
Server /
- Resource Hash
- 8415221e077fe0cbd6b1cbe89f490ededbcbc4409fbc324c442173663717ee78
|
GET
H/1.1
|
200
OK
|
hub.html
a.bf-tools.net/cmp/
Frame AEC0
|
0
0
|
8ms
7ms
|
Document
text/html |
2a02:26f0:6c00:195::1142
AKAMAI-ASN1
|
|
General
- Full URL
- https://a.bf-tools.net/cmp/hub.html
- Requested by
- Host: a.bf-tools.net
URL: https://a.bf-tools.net/cmp/cmp.js
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_ECDSA, AES_256_GCM
- Server
-
2a02:26f0:6c00:195::1142
, European Union,
ASN20940
(AKAMAI-ASN1, US),
- Reverse DNS
- Software
-
Apache /
- Resource Hash
|
GET
H2
|
200
|
satellite-5a0ef80d64746d0bc600a756.js
Show response
adtm.chip.de/3469f5db1bb7fc021f6829a881d1c8a6df48a471/scripts/
|
125 B
384 B
|
8ms
7ms
|
Script
application/x-javascript |
2a02:26f0:6c00:198::bf0
AKAMAI-ASN1
|
|
|
GET
H/1.1
|
200
OK
|
iam.js
Show response
script.ioam.de/
|
19 KB
7 KB
|
42ms
10ms
|
Script
application/javascript |
91.215.100.39
INFONLINE-AS
|
|
|
GET
H/1.1
|
200
OK
|
1.1.1.33-BF-RELEASE.chunk.js
Show response
a.bf-tools.net/cmp/
|
6 KB
3 KB
|
15ms
15ms
|
Script
application/x-javascript |
2a02:26f0:6c00:195::1142
AKAMAI-ASN1
|
|
|
GET
H/1.1
|
200
OK
|
0.1.1.33-BF-RELEASE.chunk.js
Show response
a.bf-tools.net/cmp/
|
35 KB
10 KB
|
19ms
7ms
|
Script
application/x-javascript |
2a02:26f0:6c00:194::1142
AKAMAI-ASN1
|
|
|
GET
S
|
200
|
identitystatus
Show response
irqs.ioam.de/
|
25 B
203 B
|
32ms
9ms
|
XHR
application/vnd.api+json |
193.46.63.75
INFONLINE-AS
|
|
General
- Full URL
- https://irqs.ioam.de/identitystatus?offerIdentifier=chip&siteIdentifier=downloads&sampleType=in&pixelType=CP&isFadeoutFlash=true&isFadeoutFrame=true&isFadeoutForm=true&positionTop=10&positionLeft=100&zIndex=1100000&c=0.31322723447384204
- Requested by
- Host: script.ioam.de
URL: https://script.ioam.de/iam.js?m=1
- Protocol
- SPDY
- Server
-
193.46.63.75
Bonn, 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
|
blank.gif
de.ioam.de/
Redirect Chain
-
https://de.ioam.de/tx.io?cp=downloads&st=chip&sv=i2&pt=CP&ps=lin&er=N22&rf=&r2=&ur=www.chip.de&xy=1600x1200x24&lo=DE%2Fn.a.&cb=000d&i2=000dd4248442378e75b641784&ep=1556916614&vr=409&id=s9k4qs<=15...
-
https://de.ioam.de/tx.io?cp=downloads&st=chip&sv=i2&pt=CP&ps=lin&er=N22&rf=&r2=&ur=www.chip.de&xy=1600x1200x24&lo=DE%2Fn.a.&cb=000d&i2=000dd4248442378e75b641784&ep=1556916614&vr=409&id=s9k4qs<=15...
-
https://de.ioam.de/blank.gif
|
43 B
651 B
|
10ms
10ms
|
Image
image/gif |
91.215.103.65
INFONLINE-AS
|
|
|
GET
H/1.1
|
200
OK
|
de.js
Show response
a.bf-tools.net/de/
|
3 KB
2 KB
|
13ms
13ms
|
Script
application/x-javascript |
2a02:26f0:6c00:194::1142
AKAMAI-ASN1
|
|
|
GET
H/1.1
|
200
OK
|
adengine.js
Show response
a.bf-ad.net/pubjs/chip/
|
159 KB
41 KB
|
11ms
10ms
|
Script
application/x-javascript |
2a02:26f0:6c00:28b::30fb
AKAMAI-ASN1
|
|
|
GET
S
|
200
|
adsbygoogle.js
Show response
pagead2.googlesyndication.com/pagead/js/
|
74 KB
27 KB
|
31ms
31ms
|
Script
text/javascript |
2a00:1450:4001:806::2002
Google LLC
|
|
|
GET
DATA
|
200
OK
|
truncated
/
|
59 B
0
|
|
Image
image/svg+xml |
|
|
|
GET
S
|
200
|
c8c3489e-f329-40e8-bcfc-1f852e512b01-1.0.js
Show response
d3alqb8vzo7fun.cloudfront.net/
|
344 KB
51 KB
|
46ms
8ms
|
Script
application/x-javascript |
52.222.149.218
Amazon.com
|
|
|
GET
H2
|
200
|
main.88c36d866245388602ce.css
filestorage.chip.de/videoplayer/stylesheets/
|
71 KB
19 KB
|
14ms
14ms
|
Stylesheet
text/css |
2a02:26f0:6c00:198::bf0
AKAMAI-ASN1
|
|
|
GET
H2
|
200
|
videoplayer.88c36d866245388602ce.bundle.js
Show response
filestorage.chip.de/videoplayer/
|
427 KB
116 KB
|
30ms
30ms
|
Script
application/x-javascript |
2a02:26f0:6c00:198::bf0
AKAMAI-ASN1
|
|
|
GET
H/1.1
|
200
OK
|
obtp.js
Show response
amplify.outbrain.com/cp/
|
4 KB
2 KB
|
20ms
6ms
|
Script
application/x-javascript |
2.18.234.190
Akamai Technologies
|
|
|
GET
H/1.1
|
200
OK
|
CHIP_Software_Deals_300x150.jpg
www.chip.de/download/assets/img/deals/
|
30 KB
31 KB
|
7ms
6ms
|
Image
image/jpeg |
2a02:26f0:6c00:2bc::bf0
AKAMAI-ASN1
|
|
|
GET
DATA
|
200
OK
|
truncated
/
|
305 B
0
|
|
Image
image/svg+xml |
|
|
|
GET
DATA
|
200
OK
|
truncated
/
|
726 B
0
|
|
Image
image/svg+xml |
|
|
|
GET
H/1.1
|
200
OK
|
18
videos.chip.de/p/1741931/thumbnail/entry_id/1_82cmb71o/width/640/height/360/
|
21 KB
22 KB
|
222ms
169ms
|
Image
image/jpeg |
2a02:26f0:10:482::bf0
AKAMAI-ASN1
|
|
|
GET
DATA
|
200
OK
|
truncated
/
|
4 KB
0
|
|
Image
image/png |
|
|
|
GET
DATA
|
200
OK
|
truncated
/
|
28 KB
0
|
|
Image
image/jpeg |
|
|
|
GET
S
|
200
|
gpt.js
Show response
www.googletagservices.com/tag/js/
|
20 KB
8 KB
|
44ms
43ms
|
Script
text/javascript |
2a00:1450:4001:812::2002
Google LLC
|
|
|
GET
H/1.1
|
200
OK
|
bfa_infolayer_styles.css
a.bf-ad.net/packages/info-layer/chip/
|
1 KB
820 B
|
6ms
5ms
|
Stylesheet
text/css |
2a02:26f0:6c00:28b::30fb
AKAMAI-ASN1
|
|
|
GET
H/1.1
|
200
OK
|
bfa_infolayer.js
Show response
a.bf-ad.net/packages/info-layer/chip/
|
6 KB
2 KB
|
14ms
7ms
|
Script
application/x-javascript |
2a02:26f0:6c00:28b::30fb
AKAMAI-ASN1
|
|
|
GET
H/1.1
|
200
OK
|
config.js
Show response
cdn.conative.de/serve/domain/chip_de/
|
61 KB
8 KB
|
334ms
7ms
|
Script
application/javascript |
52.222.150.86
Amazon.com
|
|
|
GET
H/1.1
|
200
OK
|
default.js
Show response
ups.xplosion.de/loader/91628/
Redirect Chain
-
https://dyn.emetriq.de/loader/91628/default.js
-
https://ups.xplosion.de/loader/91628/default.js?xplrdir=1
|
2 KB
2 KB
|
108ms
27ms
|
Script
text/javascript |
52.17.80.93
Amazon.com
|
|
|
GET
H/1.1
|
200
OK
|
/
Show response
partners.wfxtriggers.com/json/
|
243 B
397 B
|
119ms
31ms
|
Script
text/plain |
54.194.160.217
Amazon.com
|
|
|
GET
S
|
200
|
pixel
tr.outbrain.com/
|
43 B
288 B
|
90ms
85ms
|
Image
image/gif |
151.101.14.2
Fastly
|
|
General
- Full URL
- https://tr.outbrain.com/pixel?marketerId=00057ca5dbe399df9cce707e0cb533aa0b&obApiVersion=1.0.10&name=PAGE_VIEW&dl=https%3A%2F%2Fwww.chip.de%2Fdownloads%2FMove-Mouse_102198245.html&bust=001309801114355591
- Requested by
- Host: www.chip.de
URL: https://www.chip.de/downloads/Move-Mouse_102198245.html
- Protocol
- SPDY
- Server
-
151.101.14.2
San Francisco, United States,
ASN54113
(FASTLY - Fastly, US),
- Reverse DNS
- Software
-
/
- Resource Hash
- 33ca751ed175a163bef530ebdcdbd0a2d15997ccbcbf8d50a6f504e8ffac5a5c
- Security Headers
-
Name |
Value |
Strict-Transport-Security |
max-age=0; includeSubDomains; |
|
GET
H/1.1
|
200
OK
|
pixel
amplifypixel.outbrain.com/
|
43 B
293 B
|
400ms
94ms
|
Image
image/gif |
74.201.198.92
Internap Network ...
|
|
General
- Full URL
- https://amplifypixel.outbrain.com/pixel?mid=00057ca5dbe399df9cce707e0cb533aa0b&dl=https%3A%2F%2Fwww.chip.de%2Fdownloads%2FMove-Mouse_102198245.html&bust=001309801114355591
- Requested by
- Host: www.chip.de
URL: https://www.chip.de/downloads/Move-Mouse_102198245.html
- Protocol
- HTTP/1.1
- Server
-
74.201.198.92
, United States,
ASN13789
(INTERNAP-BLK3 - Internap Network Services Corporation, US),
- Reverse DNS
- Software
-
/
- Resource Hash
- 33ca751ed175a163bef530ebdcdbd0a2d15997ccbcbf8d50a6f504e8ffac5a5c
- Security Headers
-
Name |
Value |
Strict-Transport-Security |
max-age=0; includeSubDomains; |
|
GET
S
|
200
|
pixel
tr.outbrain.com/
|
43 B
159 B
|
95ms
91ms
|
Image
image/gif |
151.101.14.2
Fastly
|
|
General
- Full URL
- https://tr.outbrain.com/pixel?marketerId=00057ca5dbe399df9cce707e0cb533aa0b&obApiVersion=1.0.10&name=PAGE_VIEW&dl=https%3A%2F%2Fwww.chip.de%2Fdownloads%2FMove-Mouse_102198245.html&bust=024879317307102577
- Requested by
- Host: www.chip.de
URL: https://www.chip.de/downloads/Move-Mouse_102198245.html
- Protocol
- SPDY
- Server
-
151.101.14.2
San Francisco, United States,
ASN54113
(FASTLY - Fastly, US),
- Reverse DNS
- Software
-
/
- Resource Hash
- 33ca751ed175a163bef530ebdcdbd0a2d15997ccbcbf8d50a6f504e8ffac5a5c
- Security Headers
-
Name |
Value |
Strict-Transport-Security |
max-age=0; includeSubDomains; |
|
GET
H/1.1
|
200
OK
|
pixel
amplifypixel.outbrain.com/
|
43 B
288 B
|
404ms
98ms
|
Image
image/gif |
64.202.112.28
Server Central Ne...
|
|
General
- Full URL
- https://amplifypixel.outbrain.com/pixel?mid=00057ca5dbe399df9cce707e0cb533aa0b&dl=https%3A%2F%2Fwww.chip.de%2Fdownloads%2FMove-Mouse_102198245.html&bust=024879317307102577
- Requested by
- Host: www.chip.de
URL: https://www.chip.de/downloads/Move-Mouse_102198245.html
- Protocol
- HTTP/1.1
- Server
-
64.202.112.28
, United States,
ASN23352
(SERVERCENTRAL - Server Central Network, US),
- Reverse DNS
- chi-only.outbrain.org
- Software
-
/
- Resource Hash
- 33ca751ed175a163bef530ebdcdbd0a2d15997ccbcbf8d50a6f504e8ffac5a5c
- Security Headers
-
Name |
Value |
Strict-Transport-Security |
max-age=0; includeSubDomains; |
|
GET
S
|
200
|
pixel
tr.outbrain.com/
|
43 B
168 B
|
95ms
91ms
|
Image
image/gif |
151.101.14.2
Fastly
|
|
General
- Full URL
- https://tr.outbrain.com/pixel?marketerId=00057ca5dbe399df9cce707e0cb533aa0b&obApiVersion=1.0.10&name=PAGE_VIEW&dl=https%3A%2F%2Fwww.chip.de%2Fdownloads%2FMove-Mouse_102198245.html&bust=05590216723142261
- Requested by
- Host: www.chip.de
URL: https://www.chip.de/downloads/Move-Mouse_102198245.html
- Protocol
- SPDY
- Server
-
151.101.14.2
San Francisco, United States,
ASN54113
(FASTLY - Fastly, US),
- Reverse DNS
- Software
-
/
- Resource Hash
- 33ca751ed175a163bef530ebdcdbd0a2d15997ccbcbf8d50a6f504e8ffac5a5c
- Security Headers
-
Name |
Value |
Strict-Transport-Security |
max-age=0; includeSubDomains; |
|
GET
H/1.1
|
200
OK
|
pixel
amplifypixel.outbrain.com/
|
43 B
288 B
|
404ms
98ms
|
Image
image/gif |
74.201.198.92
Internap Network ...
|
|
General
- Full URL
- https://amplifypixel.outbrain.com/pixel?mid=00057ca5dbe399df9cce707e0cb533aa0b&dl=https%3A%2F%2Fwww.chip.de%2Fdownloads%2FMove-Mouse_102198245.html&bust=05590216723142261
- Requested by
- Host: www.chip.de
URL: https://www.chip.de/downloads/Move-Mouse_102198245.html
- Protocol
- HTTP/1.1
- Server
-
74.201.198.92
, United States,
ASN13789
(INTERNAP-BLK3 - Internap Network Services Corporation, US),
- Reverse DNS
- Software
-
/
- Resource Hash
- 33ca751ed175a163bef530ebdcdbd0a2d15997ccbcbf8d50a6f504e8ffac5a5c
- Security Headers
-
Name |
Value |
Strict-Transport-Security |
max-age=0; includeSubDomains; |
|
GET
S
|
200
|
pixel
tr.outbrain.com/
|
43 B
173 B
|
86ms
85ms
|
Image
image/gif |
151.101.14.2
Fastly
|
|
General
- Full URL
- https://tr.outbrain.com/pixel?marketerId=00057ca5dbe399df9cce707e0cb533aa0b&obApiVersion=1.0.10&name=PAGE_VIEW&dl=https%3A%2F%2Fwww.chip.de%2Fdownloads%2FMove-Mouse_102198245.html&bust=019833397600748381
- Requested by
- Host: www.chip.de
URL: https://www.chip.de/downloads/Move-Mouse_102198245.html
- Protocol
- SPDY
- Server
-
151.101.14.2
San Francisco, United States,
ASN54113
(FASTLY - Fastly, US),
- Reverse DNS
- Software
-
/
- Resource Hash
- 33ca751ed175a163bef530ebdcdbd0a2d15997ccbcbf8d50a6f504e8ffac5a5c
- Security Headers
-
Name |
Value |
Strict-Transport-Security |
max-age=0; includeSubDomains; |
|
GET
H/1.1
|
200
OK
|
pixel
amplifypixel.outbrain.com/
|
43 B
288 B
|
411ms
102ms
|
Image
image/gif |
64.202.112.28
Server Central Ne...
|
|
General
- Full URL
- https://amplifypixel.outbrain.com/pixel?mid=00057ca5dbe399df9cce707e0cb533aa0b&dl=https%3A%2F%2Fwww.chip.de%2Fdownloads%2FMove-Mouse_102198245.html&bust=019833397600748381
- Requested by
- Host: www.chip.de
URL: https://www.chip.de/downloads/Move-Mouse_102198245.html
- Protocol
- HTTP/1.1
- Server
-
64.202.112.28
, United States,
ASN23352
(SERVERCENTRAL - Server Central Network, US),
- Reverse DNS
- chi-only.outbrain.org
- Software
-
/
- Resource Hash
- 33ca751ed175a163bef530ebdcdbd0a2d15997ccbcbf8d50a6f504e8ffac5a5c
- Security Headers
-
Name |
Value |
Strict-Transport-Security |
max-age=0; includeSubDomains; |
|
GET
S
|
200
|
pixel
tr.outbrain.com/
|
43 B
159 B
|
86ms
85ms
|
Image
image/gif |
151.101.14.2
Fastly
|
|
General
- Full URL
- https://tr.outbrain.com/pixel?marketerId=00057ca5dbe399df9cce707e0cb533aa0b&obApiVersion=1.0.10&name=PAGE_VIEW&dl=https%3A%2F%2Fwww.chip.de%2Fdownloads%2FMove-Mouse_102198245.html&bust=0521690679915993
- Requested by
- Host: www.chip.de
URL: https://www.chip.de/downloads/Move-Mouse_102198245.html
- Protocol
- SPDY
- Server
-
151.101.14.2
San Francisco, United States,
ASN54113
(FASTLY - Fastly, US),
- Reverse DNS
- Software
-
/
- Resource Hash
- 33ca751ed175a163bef530ebdcdbd0a2d15997ccbcbf8d50a6f504e8ffac5a5c
- Security Headers
-
Name |
Value |
Strict-Transport-Security |
max-age=0; includeSubDomains; |
|
GET
H/1.1
|
200
OK
|
pixel
amplifypixel.outbrain.com/
|
43 B
288 B
|
403ms
100ms
|
Image
image/gif |
64.202.112.28
Server Central Ne...
|
|
General
- Full URL
- https://amplifypixel.outbrain.com/pixel?mid=00057ca5dbe399df9cce707e0cb533aa0b&dl=https%3A%2F%2Fwww.chip.de%2Fdownloads%2FMove-Mouse_102198245.html&bust=0521690679915993
- Requested by
- Host: www.chip.de
URL: https://www.chip.de/downloads/Move-Mouse_102198245.html
- Protocol
- HTTP/1.1
- Server
-
64.202.112.28
, United States,
ASN23352
(SERVERCENTRAL - Server Central Network, US),
- Reverse DNS
- chi-only.outbrain.org
- Software
-
/
- Resource Hash
- 33ca751ed175a163bef530ebdcdbd0a2d15997ccbcbf8d50a6f504e8ffac5a5c
- Security Headers
-
Name |
Value |
Strict-Transport-Security |
max-age=0; includeSubDomains; |
|
GET
S
|
200
|
pixel
tr.outbrain.com/
|
43 B
168 B
|
86ms
85ms
|
Image
image/gif |
151.101.14.2
Fastly
|
|
General
- Full URL
- https://tr.outbrain.com/pixel?marketerId=00057ca5dbe399df9cce707e0cb533aa0b&obApiVersion=1.0.10&name=PAGE_VIEW&dl=https%3A%2F%2Fwww.chip.de%2Fdownloads%2FMove-Mouse_102198245.html&bust=04321565152746325
- Requested by
- Host: www.chip.de
URL: https://www.chip.de/downloads/Move-Mouse_102198245.html
- Protocol
- SPDY
- Server
-
151.101.14.2
San Francisco, United States,
ASN54113
(FASTLY - Fastly, US),
- Reverse DNS
- Software
-
/
- Resource Hash
- 33ca751ed175a163bef530ebdcdbd0a2d15997ccbcbf8d50a6f504e8ffac5a5c
- Security Headers
-
Name |
Value |
Strict-Transport-Security |
max-age=0; includeSubDomains; |
|
GET
H/1.1
|
200
OK
|
pixel
amplifypixel.outbrain.com/
|
43 B
288 B
|
347ms
90ms
|
Image
image/gif |
74.201.198.92
Internap Network ...
|
|
General
- Full URL
- https://amplifypixel.outbrain.com/pixel?mid=00057ca5dbe399df9cce707e0cb533aa0b&dl=https%3A%2F%2Fwww.chip.de%2Fdownloads%2FMove-Mouse_102198245.html&bust=04321565152746325
- Requested by
- Host: www.chip.de
URL: https://www.chip.de/downloads/Move-Mouse_102198245.html
- Protocol
- HTTP/1.1
- Server
-
74.201.198.92
, United States,
ASN13789
(INTERNAP-BLK3 - Internap Network Services Corporation, US),
- Reverse DNS
- Software
-
/
- Resource Hash
- 33ca751ed175a163bef530ebdcdbd0a2d15997ccbcbf8d50a6f504e8ffac5a5c
- Security Headers
-
Name |
Value |
Strict-Transport-Security |
max-age=0; includeSubDomains; |
|
GET
S
|
200
|
pixel
tr.outbrain.com/
|
43 B
116 B
|
86ms
85ms
|
Image
image/gif |
151.101.14.2
Fastly
|
|
General
- Full URL
- https://tr.outbrain.com/pixel?marketerId=00057ca5dbe399df9cce707e0cb533aa0b&obApiVersion=1.0.10&name=PAGE_VIEW&dl=https%3A%2F%2Fwww.chip.de%2Fdownloads%2FMove-Mouse_102198245.html&bust=019521636232606032
- Requested by
- Host: www.chip.de
URL: https://www.chip.de/downloads/Move-Mouse_102198245.html
- Protocol
- SPDY
- Server
-
151.101.14.2
San Francisco, United States,
ASN54113
(FASTLY - Fastly, US),
- Reverse DNS
- Software
-
/
- Resource Hash
- 33ca751ed175a163bef530ebdcdbd0a2d15997ccbcbf8d50a6f504e8ffac5a5c
- Security Headers
-
Name |
Value |
Strict-Transport-Security |
max-age=0; includeSubDomains; |
|
GET
H/1.1
|
200
OK
|
pixel
amplifypixel.outbrain.com/
|
43 B
288 B
|
106ms
99ms
|
Image
image/gif |
64.202.112.28
Server Central Ne...
|
|
General
- Full URL
- https://amplifypixel.outbrain.com/pixel?mid=00057ca5dbe399df9cce707e0cb533aa0b&dl=https%3A%2F%2Fwww.chip.de%2Fdownloads%2FMove-Mouse_102198245.html&bust=019521636232606032
- Requested by
- Host: www.chip.de
URL: https://www.chip.de/downloads/Move-Mouse_102198245.html
- Protocol
- HTTP/1.1
- Server
-
64.202.112.28
, United States,
ASN23352
(SERVERCENTRAL - Server Central Network, US),
- Reverse DNS
- chi-only.outbrain.org
- Software
-
/
- Resource Hash
- 33ca751ed175a163bef530ebdcdbd0a2d15997ccbcbf8d50a6f504e8ffac5a5c
- Security Headers
-
Name |
Value |
Strict-Transport-Security |
max-age=0; includeSubDomains; |
|
GET
S
|
200
|
pixel
tr.outbrain.com/
|
43 B
168 B
|
86ms
86ms
|
Image
image/gif |
151.101.14.2
Fastly
|
|
General
- Full URL
- https://tr.outbrain.com/pixel?marketerId=00057ca5dbe399df9cce707e0cb533aa0b&obApiVersion=1.0.10&name=PAGE_VIEW&dl=https%3A%2F%2Fwww.chip.de%2Fdownloads%2FMove-Mouse_102198245.html&bust=019872849224135747
- Requested by
- Host: www.chip.de
URL: https://www.chip.de/downloads/Move-Mouse_102198245.html
- Protocol
- SPDY
- Server
-
151.101.14.2
San Francisco, United States,
ASN54113
(FASTLY - Fastly, US),
- Reverse DNS
- Software
-
/
- Resource Hash
- 33ca751ed175a163bef530ebdcdbd0a2d15997ccbcbf8d50a6f504e8ffac5a5c
- Security Headers
-
Name |
Value |
Strict-Transport-Security |
max-age=0; includeSubDomains; |
|
GET
H/1.1
|
200
OK
|
pixel
amplifypixel.outbrain.com/
|
43 B
288 B
|
101ms
100ms
|
Image
image/gif |
74.201.198.92
Internap Network ...
|
|
General
- Full URL
- https://amplifypixel.outbrain.com/pixel?mid=00057ca5dbe399df9cce707e0cb533aa0b&dl=https%3A%2F%2Fwww.chip.de%2Fdownloads%2FMove-Mouse_102198245.html&bust=019872849224135747
- Requested by
- Host: www.chip.de
URL: https://www.chip.de/downloads/Move-Mouse_102198245.html
- Protocol
- HTTP/1.1
- Server
-
74.201.198.92
, United States,
ASN13789
(INTERNAP-BLK3 - Internap Network Services Corporation, US),
- Reverse DNS
- Software
-
/
- Resource Hash
- 33ca751ed175a163bef530ebdcdbd0a2d15997ccbcbf8d50a6f504e8ffac5a5c
- Security Headers
-
Name |
Value |
Strict-Transport-Security |
max-age=0; includeSubDomains; |
|
GET
S
|
200
|
integrator.js
Show response
adservice.google.de/adsid/
|
109 B
171 B
|
30ms
29ms
|
Script
application/javascript |
2a00:1450:4001:811::2002
Google LLC
|
|
|
GET
S
|
200
|
integrator.js
Show response
adservice.google.com/adsid/
|
109 B
171 B
|
29ms
29ms
|
Script
application/javascript |
2a00:1450:4001:806::2002
Google LLC
|
|
|
GET
DATA
|
200
OK
|
truncated
/
|
600 B
0
|
|
Image
image/svg+xml |
|
|
|
GET
H/1.1
|
200
OK
|
MarselisSlabWeb.woff2
www.chip.de/fec/assets/font/
|
27 KB
28 KB
|
7ms
6ms
|
Font
application/font-woff2 |
2a02:26f0:6c00:2bc::bf0
AKAMAI-ASN1
|
|
|
GET
H/1.1
|
200
OK
|
e2dec89d8c7e4a6c.jpg
www.chip.de/ii/5/3/3/5/3/4/0/1/
|
111 KB
104 KB
|
7ms
7ms
|
Image
image/jpeg |
2a02:26f0:6c00:2bc::bf0
AKAMAI-ASN1
|
|
|
GET
H2
|
200
|
satellite-5a0c20e064746d476b0006bf.js
Show response
adtm.chip.de/3469f5db1bb7fc021f6829a881d1c8a6df48a471/scripts/
|
431 B
655 B
|
6ms
5ms
|
Script
application/x-javascript |
2a02:26f0:6c00:198::bf0
AKAMAI-ASN1
|
|
|
GET
H2
|
200
|
satellite-5a1fc54664746d108e0025fa.js
Show response
adtm.chip.de/3469f5db1bb7fc021f6829a881d1c8a6df48a471/scripts/
|
1 KB
821 B
|
9ms
8ms
|
Script
application/x-javascript |
2a02:26f0:6c00:198::bf0
AKAMAI-ASN1
|
|
|
GET
H2
|
200
|
satellite-57ad808c64746d3e8d000ef0.js
Show response
adtm.chip.de/3469f5db1bb7fc021f6829a881d1c8a6df48a471/scripts/
|
12 KB
4 KB
|
9ms
9ms
|
Script
application/x-javascript |
2a02:26f0:6c00:198::bf0
AKAMAI-ASN1
|
|
|
GET
H2
|
200
|
s-code-contents-3fc54c0d5404f54efff3418f68e36a29132e0b15.js
Show response
adtm.chip.de/3469f5db1bb7fc021f6829a881d1c8a6df48a471/
|
35 KB
13 KB
|
8ms
7ms
|
Script
application/x-javascript |
2a02:26f0:6c00:198::bf0
AKAMAI-ASN1
|
|
|
GET
H2
|
200
|
satellite-58b3dec264746d7415009f7b.js
Show response
adtm.chip.de/3469f5db1bb7fc021f6829a881d1c8a6df48a471/scripts/
|
97 B
359 B
|
32ms
32ms
|
Script
application/x-javascript |
2a02:26f0:6c00:198::bf0
AKAMAI-ASN1
|
|
|
GET
H/1.1
|
200
OK
|
front.asp
Show response
k.intellitxt.com/intellitxt/
|
2 KB
1 KB
|
142ms
27ms
|
Script
text/html |
31.24.80.101
VIBRANT-EU
|
|
|
GET
S
|
200
|
pubads_impl_236.js
Show response
securepubads.g.doubleclick.net/gpt/
|
179 KB
62 KB
|
44ms
40ms
|
Script
text/javascript |
172.217.22.98
Google LLC
|
|
|
GET
S
|
200
|
lux.js
Show response
cdn.speedcurve.com/js/
|
14 KB
5 KB
|
25ms
6ms
|
Script
application/javascript |
23.111.9.35
netDNA
|
|
|
GET
H/1.1
|
200
OK
|
collect
rt.chip.de/
|
35 B
391 B
|
124ms
27ms
|
Image
image/gif |
46.51.178.72
Amazon.com
|
|
General
- Full URL
- https://rt.chip.de/collect?t=live.track&cachebust=jkdr278k&rnd=d9230c40-8e97-4027-95e7-dd7b3772977b&ran=d9230c40-8e97-4027-95e7-dd7b3772977b&14=7350&uid=0.9342194541028748&ref=&url=https%3A%2F%2Fwww.chip.de%2Fdownloads%2FMove-Mouse_102198245.html&tit=move%20mouse&id=53353401&bart=Downloads_Updates&layout=c1_downloads&ch=downloads&sch=tuning%20system&ssch=maus%20tastatur-tools&ivw=downloads&mob=stationaer&aut=michael%20humpa&can=https%3A%2F%2Fwww.chip.de%2Fdownloads%2FMove-Mouse_102198245.html
- Requested by
- Host: www.chip.de
URL: https://www.chip.de/downloads/Move-Mouse_102198245.html
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_RSA, AES_128_GCM
- Server
-
46.51.178.72
Dublin, Ireland,
ASN16509
(AMAZON-02 - Amazon.com, Inc., US),
- Reverse DNS
- ec2-46-51-178-72.eu-west-1.compute.amazonaws.com
- Software
-
nginx/1.7.9 /
- Resource Hash
- 8337212354871836e6763a41e615916c89bac5b3f1f0adf60ba43c7c806e1015
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
|
GET
H/1.1
|
200
OK
|
Cookie set
s02907101041478
somniture.chip.de/b/ss/cxochipde-prod/1/JS-2.7.0-D7QN/
Redirect Chain
-
https://somniture.chip.de/b/ss/cxochipde-prod/1/JS-2.7.0-D7QN/s02907101041478?AQB=1&ndh=1&pf=1&t=3%2F7%2F2018%208%3A51%3A17%205%200&D=D%3D&fid=0199A6F6A048473B-1B9AF299F78AAE34&ce=UTF-8&pageName=ir...
-
https://somniture.chip.de/b/ss/cxochipde-prod/1/JS-2.7.0-D7QN/s02907101041478?AQB=1&pccr=true&vidn=2DB20BC285310B41-60000103A00045C8&&ndh=1&pf=1&t=3%2F7%2F2018%208%3A51%3A17%205%200&D=D%3D&fid=0199...
|
43 B
741 B
|
27ms
26ms
|
Image
image/gif |
63.140.40.124
Adobe Systems Inc.
|
|
General
- Full URL
- https://somniture.chip.de/b/ss/cxochipde-prod/1/JS-2.7.0-D7QN/s02907101041478?AQB=1&pccr=true&vidn=2DB20BC285310B41-60000103A00045C8&&ndh=1&pf=1&t=3%2F7%2F2018%208%3A51%3A17%205%200&D=D%3D&fid=0199A6F6A048473B-1B9AF299F78AAE34&ce=UTF-8&pageName=ir-53353401%20%7C%20move%20mouse%20%5Bdownloads%20%3E%20tuning%20syst%5D&g=https%3A%2F%2Fwww.chip.de%2Fdownloads%2FMove-Mouse_102198245.html&ch=downloads&server=www.chip.de&events=event129%2Cevent154%3D7&c1=D%3Dv7&v2=ir-53353401%20%7C%20move%20mouse%20%5Bdownloads%20%3E%20tuning%20syst%5D&c3=D%3Dv15&v4=Weekday%7CFriday%7C10%3A30AM&c5=D%3Dv4&v5=1&v6=downloads&c7=D%3Dv16&v7=tuning%20system&c8=c1_downloads&v8=maus%20tastatur-tools&c10=D%3Dv8&v15=Downloads_Updates&c18=n%2Fa&v19=stationaer&v23=1&v25=www.chip.de&c28=https%3A%2F%2Fwww.chip.de%2Fdownloads%2FMove-Mouse_102198245.html&v30=c1_downloads&c31=D%3Dv26&c32=n%2Fa&c36=First%20page%20view%20or%20cookies%20not%20supported&c37=michael%20humpa&c38=visible&c40=n%2Fa&c42=D%3Dv42&v42=Video%3A%20Roboter%20sticht%20perfekte%20Tattoos&v43=7&c44=dtm%20CHIP%20Master&c46=D%3Dv46&v46=chip_digital%7Cdownloads%7Ctuning_amp_system%7Cmaus_amp_tastatur_tools%7Cartikel&c50=index%2C%20follow&c51=D%3Dv19&c52=downloads&c54=no&c59=n%2Fa&c60=53353401&v60=n%2Fa&v66=D%3Dc28&v67=D%3Dc60&v68=n%2Fa&c70=D%3Dv70&v70=downloads&v72=PV-WD%20no&v84=n%2Fa&v89=n%2Fa&v92=n%2Fa&s=1600x1200&c=24&j=1.6&v=N&k=Y&bw=1600&bh=1200&AQE=1
- Requested by
- Host: www.chip.de
URL: https://www.chip.de/downloads/Move-Mouse_102198245.html
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_RSA, AES_256_GCM
- Server
-
63.140.40.124
Lehi, United States,
ASN15224
(OMNITURE - Adobe Systems Inc., US),
- Reverse DNS
- chip.de.ssl.sc.omtrdc.net
- Software
-
Omniture DC/2.0.0 /
- Resource Hash
- a1ecbaed793a1f564c49c671f2dd0ce36f858534ef6d26b55783a06b884cc506
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
1; mode=block |
|
GET
H/1.1
|
200
OK
|
adscript.min.js
Show response
cdn.conative.de/artifacts-v2/c2afc6bad791e1762c6f630acafcbb183f2b3ffe/
|
229 KB
65 KB
|
9ms
9ms
|
Script
application/javascript |
52.222.150.86
Amazon.com
|
|
|
GET
S
|
200
|
p.min.js
Show response
cdn.emetriq.de/adp/profiling/0.1.13/
|
4 KB
2 KB
|
34ms
9ms
|
Script
application/javascript |
2600:9000:2047:0:1c:8c89:a300:93a1
Amazon.com
|
|
|
GET
H/1.1
|
200
OK
|
global_config.json
Show response
hgc-cf-cache-1.svonm.com/
|
53 B
719 B
|
340ms
7ms
|
XHR
application/json |
52.222.150.181
Amazon.com
|
|
|
GET
H/1.1
|
200
OK
|
homadConfig.json
Show response
filestorage.chip.de/videoplayer//config/
|
323 B
677 B
|
30ms
8ms
|
XHR
application/json |
2a02:26f0:6c00:198::bf0
AKAMAI-ASN1
|
|
|
GET
H/1.1
|
200
OK
|
config.json
Show response
hgc-cf-cache-1.svonm.com/www.chip.de/
|
422 B
1 KB
|
277ms
9ms
|
XHR
application/json |
52.222.150.181
Amazon.com
|
|
|
GET
H/1.1
|
200
OK
|
data
Show response
ups.xplosion.de/
|
4 KB
3 KB
|
28ms
28ms
|
Script
text/javascript |
52.17.80.93
Amazon.com
|
|
General
- Full URL
- https://ups.xplosion.de/data?title=Move%20Mouse%20-%20Download%20-%20CHIP&hostSiteUrl=https%3A%2F%2Fwww.chip.de%2Fdownloads%2FMove-Mouse_102198245.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&event_id=page_view&_sid=91628&_ver=0.1.13&_seg=jsonp&_=342044202042
- Requested by
- Host: cdn.emetriq.de
URL: https://cdn.emetriq.de/adp/profiling/0.1.13/p.min.js
- Protocol
- HTTP/1.1
- Server
-
52.17.80.93
Dublin, Ireland,
ASN16509
(AMAZON-02 - Amazon.com, Inc., US),
- Reverse DNS
- ec2-52-17-80-93.eu-west-1.compute.amazonaws.com
- Software
-
Apache-Coyote/1.1 /
- Resource Hash
- b70f1eb3c591b8a0c171b8998b03b348ebb363cb5db95d8a46ee415396b45637
|
GET
H/1.1
|
200
OK
|
/
Show response
k.intellitxt.com/go/1/
|
4 KB
2 KB
|
51ms
51ms
|
Script
text/javascript |
31.24.80.101
VIBRANT-EU
|
|
General
- Full URL
- https://k.intellitxt.com/go/1/?ipid=5154&consentstr={%22opt_in%22:true%2C%22timestamp%22:1533286276664%2C%22version%22:%221.1.33-BF-RELEASE%22%2C%22localeVariantName%22:%22bf%22%2C%22localeVariantVersion%22:0%2C%22privacy%22:{%221%22:true%2C%222%22:true%2C%223%22:true%2C%224%22:true%2C%225%22:true}}&consenttype=oil_data
- Requested by
- Host: k.intellitxt.com
URL: https://k.intellitxt.com/intellitxt/front.asp?ipid=5154
- Protocol
- HTTP/1.1
- Server
-
31.24.80.101
, United Kingdom,
ASN56464
(VIBRANT-EU, GB),
- Reverse DNS
- Software
-
nginx /
Kormorant
- Resource Hash
- 15d6f954a3433a3ca85aa6b7f6bf380c17f0c6e84917c910a6a15fb0e216c542
|
GET
H/1.1
|
200
OK
|
Cookie set
s03988790094473
somniture.chip.de/b/ss/cxochipde-prod/1/JS-2.7.0-D7QN/
|
43 B
741 B
|
24ms
23ms
|
Image
image/gif |
63.140.40.124
Adobe Systems Inc.
|
|
General
- Full URL
- https://somniture.chip.de/b/ss/cxochipde-prod/1/JS-2.7.0-D7QN/s03988790094473?AQB=1&ndh=1&pf=1&t=3%2F7%2F2018%208%3A51%3A17%205%200&D=D%3D&fid=0199A6F6A048473B-1B9AF299F78AAE34&ce=UTF-8&pageName=ir-53353401%20%7C%20move%20mouse%20%5Bdownloads%20%3E%20tuning%20syst%5D&g=https%3A%2F%2Fwww.chip.de%2Fdownloads%2FMove-Mouse_102198245.html&ch=downloads&server=www.chip.de&events=event168&v70=downloads&pe=lnk_o&pev2=oil_shown&s=1600x1200&c=24&j=1.6&v=N&k=Y&bw=1600&bh=1200&AQE=1
- Requested by
- Host: www.chip.de
URL: https://www.chip.de/downloads/Move-Mouse_102198245.html
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_RSA, AES_256_GCM
- Server
-
63.140.40.124
Lehi, United States,
ASN15224
(OMNITURE - Adobe Systems Inc., US),
- Reverse DNS
- chip.de.ssl.sc.omtrdc.net
- Software
-
Omniture DC/2.0.0 /
- Resource Hash
- a1ecbaed793a1f564c49c671f2dd0ce36f858534ef6d26b55783a06b884cc506
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
1; mode=block |
|
GET
H/1.1
|
200
OK
|
adrtxtag.min.js
Show response
cdn.adrtx.net/
|
840 B
848 B
|
139ms
30ms
|
Script
application/javascript |
52.212.57.107
Amazon.com
|
|
|
GET
H/1.1
|
204
No Content
|
m
p.yieldlab.net/
|
0
471 B
|
62ms
23ms
|
Image
text/plain |
85.114.144.196
MYLOC-AS
|
|
General
- Full URL
- https://p.yieldlab.net/m?dm_id=23666&ext_id=BSasBs73WD7FWsBZWsf-BiUABifkBD7sBDfABifABifABfrr&ddata_seg=e0
- Requested by
- Host: www.chip.de
URL: https://www.chip.de/downloads/Move-Mouse_102198245.html
- Protocol
- HTTP/1.1
- Server
-
85.114.144.196
, Germany,
ASN24961
(MYLOC-AS, DE),
- Reverse DNS
- lb.yieldlab.net
- Software
-
/
- Resource Hash
- e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Frame-Options |
DENY |
X-Xss-Protection |
1; mode=block |
|
GET
H/1.1
|
200
OK
|
a.js
d.df-srv.de/match/
Redirect Chain
-
https://d.df-srv.de/match/a.js?pid=42
-
https://dsp.adfarm1.adition.com/cookie/?redirect=https%3A%2F%2Fd.df-srv.de%2Fmatch%2Fa.js%3Fpid%3D42%26l%3D1%26adition_vid%3D%25%25COOKIE%25%25
-
https://d.df-srv.de/match/a.js?pid=42&l=1&adition_vid=6585414415135471640
|
3 B
466 B
|
58ms
12ms
|
Image
application/javascript |
2001:16e0:10a:1::c1:1
RKOM R-KOM Regens...
|
|
|
GET
H/1.1
|
200
OK
|
2.gif
xpl.theadex.com/d/327/i/
Redirect Chain
-
https://xpl.theadex.com/d/327/i/2.gif?axd_pid=22&axd_fuid=BSasBs73WD7FWsBZWsf-BiUABifkBD7sBDfABifABifABfrr
-
https://xpl.theadex.com/d/327/i/2.gif?_sc=1001717901051170127&axd_pid=22&axd_fuid=BSasBs73WD7FWsBZWsf-BiUABifkBD7sBDfABifABifABfrr
|
43 B
717 B
|
12ms
11ms
|
Image
image/gif |
89.163.159.126
MYLOC-AS
|
|
|
GET
H/1.1
|
200
OK
|
1_82cmb71o
Show response
videoembed.chip.de/v3/videos/
|
1 KB
1 KB
|
227ms
50ms
|
Fetch
application/json |
2a02:26f0:6c00:198::bf0
AKAMAI-ASN1
|
|
|
GET
S
|
200
|
ima3.js
Show response
imasdk.googleapis.com/js/sdkloader/
|
231 KB
79 KB
|
64ms
41ms
|
Script
text/javascript |
2a00:1450:4001:814::200a
Google LLC
|
|
|
GET
S
|
200
|
kormorant-1.28.03.min.js
Show response
images.intellitxt.com/k/
|
169 KB
48 KB
|
27ms
9ms
|
Script
application/javascript |
52.222.150.76
Amazon.com
|
|
General
- Full URL
- https://images.intellitxt.com/k/kormorant-1.28.03.min.js
- Requested by
- Host: k.intellitxt.com
URL: https://k.intellitxt.com/go/1/?ipid=5154&consentstr={%22opt_in%22:true%2C%22timestamp%22:1533286276664%2C%22version%22:%221.1.33-BF-RELEASE%22%2C%22localeVariantName%22:%22bf%22%2C%22localeVariantVersion%22:0%2C%22privacy%22:{%221%22:true%2C%222%22:true%2C%223%22:true%2C%224%22:true%2C%225%22:true}}&consenttype=oil_data
- Protocol
- SPDY
- Server
-
52.222.150.76
Seattle, United States,
ASN16509
(AMAZON-02 - Amazon.com, Inc., US),
- Reverse DNS
- server-52-222-150-76.fra53.r.cloudfront.net
- Software
-
AmazonS3 /
- Resource Hash
- c7784b7909c6de814e7098757f65f87f25dec4e8163332a8debedbe2412a56b7
|
GET
S
|
200
|
get
Show response
odb.outbrain.com/utils/
|
5 KB
3 KB
|
121ms
120ms
|
Script
text/x-json |
151.101.14.2
Fastly
|
|
General
- Full URL
- https://odb.outbrain.com/utils/get?url=https%3A%2F%2Fwww.chip.de&settings=true&recs=true&widgetJSId=SB_1&key=NANOWDGT01&idx=0&version=01004600&ref=&apv=false&sig=H3bXBO47&format=html&rand=95515&winW=1600&winH=1200&scrW=1600&scrH=1200&adblck=false&secured=true
- Requested by
- Host: widgets.outbrain.com
URL: https://widgets.outbrain.com/outbrain.js
- Protocol
- SPDY
- Server
-
151.101.14.2
San Francisco, United States,
ASN54113
(FASTLY - Fastly, US),
- Reverse DNS
- Software
-
/
- Resource Hash
- ea76437570ff0096dc9037babcce5468a832d516ec73519ef00dbc9ac10c86a8
- Security Headers
-
Name |
Value |
Strict-Transport-Security |
max-age=0; includeSubDomains; |
|
GET
H2
|
200
|
readconsent.html
vibrant.mgr.consensu.org/
Frame 2E89
|
0
0
|
328ms
102ms
|
Document
text/html |
52.84.122.124
Amazon.com
|
|
General
- Full URL
- https://vibrant.mgr.consensu.org/readconsent.html
- Requested by
- Host: images.intellitxt.com
URL: https://images.intellitxt.com/k/kormorant-1.28.03.min.js
- Protocol
- H2
- Security
- TLS 1.2,
ECDHE_RSA, AES_128_GCM
- Server
-
52.84.122.124
Seattle, United States,
ASN16509
(AMAZON-02 - Amazon.com, Inc., US),
- Reverse DNS
- server-52-84-122-124.iad16.r.cloudfront.net
- Software
-
AmazonS3 /
- Resource Hash
|
GET
S
|
200
|
kormorant-1.28.03.min.css
images.intellitxt.com/k/
|
26 KB
7 KB
|
7ms
7ms
|
Stylesheet
text/css |
52.222.150.76
Amazon.com
|
|
|
OPTIONS
H/1.1
|
200
OK
|
1
Show response
k.intellitxt.com/context/
|
13 B
506 B
|
125ms
40ms
|
XHR
text/html |
31.24.80.101
VIBRANT-EU
|
|
|
GET
H/1.1
|
204
No Content
|
4525383635311927196
k.intellitxt.com/csync/0/appnexus/
Redirect Chain
-
https://ib.adnxs.com/getuid?https%3A%2F%2Fk.intellitxt.com%2Fcsync%2F0%2Fappnexus%2F%24UID
-
https://ib.adnxs.com/bounce?%2Fgetuid%3Fhttps%253A%252F%252Fk.intellitxt.com%252Fcsync%252F0%252Fappnexus%252F%2524UID
-
https://k.intellitxt.com/csync/0/appnexus/4525383635311927196
|
0
296 B
|
103ms
30ms
|
Image
text/plain |
31.24.80.101
VIBRANT-EU
|
|
|
GET
H/1.1
|
200
OK
|
usermatchredir
ssum-sec.casalemedia.com/
|
43 B
288 B
|
27ms
12ms
|
Image
image/gif |
2.18.234.21
Akamai Technologies
|
|
|
GET
H/1.1
|
204
No Content
|
/
k.intellitxt.com/log/0/ptr/09ba111a2771b5104e59b9183dcfbb286d497c86/5154/9d1042ab-de3d-46a7-8096-3edb21897853/
|
0
230 B
|
34ms
33ms
|
Image
text/plain |
31.24.80.101
VIBRANT-EU
|
|
|
GET
H/1.1
|
200
OK
|
100
videos.chip.de/p/1741931/sp/174193100/thumbnail/entry_id/1_82cmb71o/version/100011/acv/111/width/100/vid_slices/
|
151 KB
152 KB
|
176ms
170ms
|
Image
image/jpeg |
2a02:26f0:10:482::bf0
AKAMAI-ASN1
|
|
|
GET
H/1.1
|
200
OK
|
iam.js
Show response
script.ioam.de/
|
26 KB
9 KB
|
11ms
10ms
|
Script
application/javascript |
91.215.100.39
INFONLINE-AS
|
|
|
GET
DATA
|
200
OK
|
truncated
/
|
2 KB
0
|
|
Image
image/png |
|
|
|
GET
H2
|
200
|
bridge3.225.0_en.html
imasdk.googleapis.com/js/core/
Frame B2A8
|
0
0
|
6ms
6ms
|
Document
text/html |
2a00:1450:4001:814::200a
Google LLC
|
|
General
- Full URL
- https://imasdk.googleapis.com/js/core/bridge3.225.0_en.html
- Requested by
- Host: imasdk.googleapis.com
URL: https://imasdk.googleapis.com/js/sdkloader/ima3.js
- Protocol
- H2
- Security
- TLS 1.2,
ECDHE_ECDSA, AES_128_GCM
- Server
-
2a00:1450:4001:814::200a
, Ireland,
ASN15169
(GOOGLE - Google LLC, US),
- Reverse DNS
- Software
-
sffe /
- Resource Hash
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
X-Xss-Protection |
1; mode=block |
|
GET
S
|
200
|
client.js
Show response
s0.2mdn.net/instream/video/
|
26 KB
11 KB
|
85ms
38ms
|
Script
text/javascript |
2a00:1450:4001:81d::2006
Google LLC
|
|
|
GET
H/1.1
|
200
OK
|
activation
adstax-match.adrtx.net/
Frame 47B8
|
0
0
|
120ms
27ms
|
Document
text/html |
52.208.127.173
Amazon.com
|
|
|
GET
H/1.1
|
200
OK
|
obFrame.htm
widgets.outbrain.com/nanoWidget/externals/obFrame/
Frame DD9F
|
0
0
|
7ms
6ms
|
Document
text/html |
2.18.234.190
Akamai Technologies
|
|
General
- Full URL
- https://widgets.outbrain.com/nanoWidget/externals/obFrame/obFrame.htm
- Requested by
- Host: widgets.outbrain.com
URL: https://widgets.outbrain.com/outbrain.js
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_RSA, AES_256_GCM
- Server
-
2.18.234.190
, European Union,
ASN16625
(AKAMAI-AS - Akamai Technologies, Inc., US),
- Reverse DNS
- a2-18-234-190.deploy.static.akamaitechnologies.com
- Software
-
Apache /
- Resource Hash
|
GET
S
|
200
|
get
Show response
odb.outbrain.com/utils/
|
33 KB
11 KB
|
136ms
129ms
|
Script
text/x-json |
151.101.14.2
Fastly
|
|
General
- Full URL
- https://odb.outbrain.com/utils/get?url=https%3A%2F%2Fwww.chip.de&settings=true&recs=true&widgetJSId=AR_1&key=NANOWDGT01&idx=1&version=01004600&ref=&apv=false&sig=H3bXBO47&format=html&rand=27806&lsd=09f3532a-26d6-4d99-bf5c-dd98a5dc5b35&t=MV9kYzkzZDUyMDA3MmU3NmRkMDg0MjQwMjRlOGQ3MzFkNF8w&winW=1600&winH=1200&scrW=1600&scrH=1200&adblck=false&secured=true
- Requested by
- Host: widgets.outbrain.com
URL: https://widgets.outbrain.com/outbrain.js
- Protocol
- SPDY
- Server
-
151.101.14.2
San Francisco, United States,
ASN54113
(FASTLY - Fastly, US),
- Reverse DNS
- Software
-
/
- Resource Hash
- e194660bad3e94afa85d2918e88ea6e09cae3e138d1982bacaecd3329f39ae82
- Security Headers
-
Name |
Value |
Strict-Transport-Security |
max-age=0; includeSubDomains; |
|
POST
H/1.1
|
200
OK
|
1
Show response
k.intellitxt.com/context/
|
213 B
692 B
|
114ms
110ms
|
XHR
application/json |
31.24.80.101
VIBRANT-EU
|
|
|
GET
H/1.1
|
200
OK
|
hd-main.js
Show response
hgc-cf-cache-1.svonm.com/
|
184 KB
50 KB
|
12ms
7ms
|
XHR
application/javascript |
52.222.150.181
Amazon.com
|
|
|
GET
H/1.1
|
206
Partial Content
|
a.mp4
videos.chip.de/p/1741931/sp/174193100/serveFlavor/entryId/1_82cmb71o/v/1/flavorId/1_8pu5fxrd/name/
|
169 KB
0
|
246ms
232ms
|
Media
video/mp4 |
2a02:26f0:10:498::bf0
AKAMAI-ASN1
|
|
General
- Full URL
- https://videos.chip.de/p/1741931/sp/174193100/serveFlavor/entryId/1_82cmb71o/v/1/flavorId/1_8pu5fxrd/name/a.mp4
- Requested by
- Host: www.chip.de
URL: https://www.chip.de/downloads/Move-Mouse_102198245.html
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_RSA, AES_256_GCM
- Server
-
2a02:26f0:10:498::bf0
, European Union,
ASN20940
(AKAMAI-ASN1, US),
- Reverse DNS
- Software
-
nginx /
- Resource Hash
|
GET
DATA
|
200
OK
|
truncated
Show response
/
|
184 KB
0
|
|
Script
text/javascript |
|
|
|
GET
H/1.1
|
200
OK
|
smartFeed.js
Show response
widgets.outbrain.com/nanoWidget/01004600/module/
|
25 KB
8 KB
|
10ms
9ms
|
Script
application/x-javascript |
2.18.234.190
Akamai Technologies
|
|
|
GET
H/1.1
|
200
OK
|
eyJpdSI6IjMzMDcwNzc1M2MxM2I1Yjg3NzhlZDM2YmQ5ZmUyN2VhZTE3YTI5NTcxYTE3ZTI0NzQ1ZjNjZTVlYjA5ZjgxZTUiLCJ3IjozMDAsImgiOjE3MCwiZCI6MS41LCJjcyI6MCwiZiI6MH0.webp
images.outbrainimg.com/transform/v3/
|
3 KB
2 KB
|
40ms
6ms
|
Image
image/webp |
2.18.232.28
Akamai Technologies
|
|
|
GET
H/1.1
|
200
OK
|
eyJpdSI6ImZiMDE2MDJiOTM5NWEwMmM5NzYyMzA1Zjk4ZjM2ZWEwYWU0YmNiYmUzYjY2NDllM2Y1YzYxNDMwZWU3MjIwODciLCJ3IjozMDAsImgiOjE3MCwiZCI6MS41LCJjcyI6MCwiZiI6MH0.webp
images.outbrainimg.com/transform/v3/
|
16 KB
16 KB
|
40ms
6ms
|
Image
image/webp |
2.18.232.28
Akamai Technologies
|
|
|
GET
H/1.1
|
200
OK
|
eyJpdSI6IjQ5NzI0ZWVhYzMwMzViYWE1NTdiOTA0NmRmMzkxNzA0ODM1ZmM5NDYxODhiMTAxZDgzODliYzRjNDFjY2ExMmEiLCJ3IjozMDAsImgiOjE3MCwiZCI6MS41LCJjcyI6MCwiZiI6MH0.webp
images.outbrainimg.com/transform/v3/
|
10 KB
11 KB
|
41ms
6ms
|
Image
image/webp |
2.18.232.28
Akamai Technologies
|
|
|
GET
H/1.1
|
200
OK
|
eyJpdSI6IjFjYmE4ZGIwYWM3ZjVlNTkwOWRjNjdmMGY3MzUyNzUwNWQwOGMyNzdjNGEwYWVkZjQ0MzdiYTEyZDAzZGNjMjIiLCJ3IjozMDAsImgiOjE3MCwiZCI6MS41LCJjcyI6MCwiZiI6MH0.webp
images.outbrainimg.com/transform/v3/
|
10 KB
10 KB
|
41ms
7ms
|
Image
image/webp |
2.18.232.28
Akamai Technologies
|
|
|
GET
H/1.1
|
200
OK
|
eyJpdSI6IjFmNGMzNTliODFmYTQ1MzJhYmM2YWM2ZGU4MGM5OTBlY2MyY2ZkNzgxZjNiYzNiY2JlYWFlNTcyZTI1NDM2ZGQiLCJ3IjozMDAsImgiOjE3MCwiZCI6MS41LCJjcyI6MCwiZiI6MH0.webp
images.outbrainimg.com/transform/v3/
|
12 KB
12 KB
|
40ms
6ms
|
Image
image/webp |
2.18.232.28
Akamai Technologies
|
|
|
GET
H/1.1
|
200
OK
|
play_100x100.png
widgets.outbrain.com/images/widgetIcons/
|
9 KB
10 KB
|
21ms
11ms
|
Image
image/png |
2.18.234.190
Akamai Technologies
|
|
|
GET
H/1.1
|
200
OK
|
eyJpdSI6IjhhNGNlYmYwZDYwOGI1MTE1ZDI0ZTZhZTEzNGVlMDY2ZWI0MzIyZWExMDIyYzk1OTVmMzU0MDg4NGFkNWNhODkiLCJ3IjozMDAsImgiOjE3MCwiZCI6MS41LCJjcyI6MCwiZiI6MH0.webp
images.outbrainimg.com/transform/v3/
|
10 KB
10 KB
|
38ms
6ms
|
Image
image/webp |
2.18.232.28
Akamai Technologies
|
|
|
GET
H/1.1
|
200
OK
|
1
Show response
k.intellitxt.com/ad/
|
60 B
613 B
|
102ms
101ms
|
Script
text/javascript |
31.24.80.101
VIBRANT-EU
|
|
General
- Full URL
- https://k.intellitxt.com/ad/1?callback=vib_1&ipid=5154&pvu=9d1042ab-de3d-46a7-8096-3edb21897853&kw=&audiences=&contextKey=09ba111a2771b5104e59b9183dcfbb286d497c86&liveLookup=false&intext.ids=943884686%2C2077437211%2C-28124829%2C943884686%3A716%3Ainview&intext.sets=&intext.bidders=%255B%255D&intext.count=3&intext.internal=false&intext.autoreveal=false
- Requested by
- Host: images.intellitxt.com
URL: https://images.intellitxt.com/k/kormorant-1.28.03.min.js
- Protocol
- HTTP/1.1
- Server
-
31.24.80.101
, United Kingdom,
ASN56464
(VIBRANT-EU, GB),
- Reverse DNS
- Software
-
nginx /
Kormorant
- Resource Hash
- f76ef21e424630805039c01630d55159929b01149ee6fa74e144d233d3ce52be
- Security Headers
-
Name |
Value |
X-Content-Type-Options |
nosniff |
|
GET
H/1.1
|
200
OK
|
ob_smartFeedLogo.min.svg
widgets.outbrain.com/images/widgetIcons/
|
12 KB
12 KB
|
19ms
6ms
|
Image
image/svg+xml |
2.18.234.190
Akamai Technologies
|
|
|
GET
H/1.1
|
200
OK
|
achoice.svg
widgets.outbrain.com/images/widgetIcons/
|
3 KB
2 KB
|
6ms
5ms
|
Image
image/svg+xml |
2.18.234.190
Akamai Technologies
|
|
|
GET
S
|
200
|
get
Show response
odb.outbrain.com/utils/
|
21 KB
6 KB
|
129ms
129ms
|
Script
text/x-json |
151.101.14.2
Fastly
|
|
General
- Full URL
- https://odb.outbrain.com/utils/get?url=https%3A%2F%2Fwww.chip.de&settings=true&recs=true&widgetJSId=SFD_STP_2&key=NANOWDGT01&idx=2&version=01004600&ref=&apv=true&sig=H3bXBO47&format=html&rand=1404&lsd=09f3532a-26d6-4d99-bf5c-dd98a5dc5b35&t=MV9kYzkzZDUyMDA3MmU3NmRkMDg0MjQwMjRlOGQ3MzFkNF8w&winW=1600&winH=1200&scrW=1600&scrH=1200&adblck=false&secured=true&fId=100&fAB=no_abtest&fCard=1&feedIdx=1
- Requested by
- Host: widgets.outbrain.com
URL: https://widgets.outbrain.com/outbrain.js
- Protocol
- SPDY
- Server
-
151.101.14.2
San Francisco, United States,
ASN54113
(FASTLY - Fastly, US),
- Reverse DNS
- Software
-
/
- Resource Hash
- a3e5701ef5aabd13e54a5ed8ad668346179429fe554e5dcc92cb820eb52a6d91
- Security Headers
-
Name |
Value |
Strict-Transport-Security |
max-age=0; includeSubDomains; |
|
GET
H/1.1
|
200
OK
|
widgetGlobalEvent
Show response
log.outbrain.com/loggerServices/
|
4 B
299 B
|
353ms
87ms
|
Script
application/json |
74.201.198.92
Internap Network ...
|
|
General
- Full URL
- https://log.outbrain.com/loggerServices/widgetGlobalEvent?eT=0&tm=1163&pid=3051&sid=235450&wId=102&wRV=01004600&rId=dc93d520072e76dd08424024e8d731d4&idx=0&pvId=dc93d520072e76dd08424024e8d731d4&org=0&pad=0&pVis=0&eIdx=&ab=0&wl=0
- Requested by
- Host: widgets.outbrain.com
URL: https://widgets.outbrain.com/outbrain.js
- Protocol
- HTTP/1.1
- Server
-
74.201.198.92
, United States,
ASN13789
(INTERNAP-BLK3 - Internap Network Services Corporation, US),
- Reverse DNS
- Software
-
/
- Resource Hash
- b5bea41b6c623f7c09f1bf24dcae58ebab3c0cdd90ad966bc43a45b44867e12b
|
GET
H/1.1
|
200
OK
|
widgetGlobalEvent
Show response
log.outbrain.com/loggerServices/
|
4 B
299 B
|
407ms
109ms
|
Script
application/json |
74.201.198.92
Internap Network ...
|
|
General
- Full URL
- https://log.outbrain.com/loggerServices/widgetGlobalEvent?eT=0&tm=1163&pid=3051&sid=235450&wId=100&wRV=01004600&rId=dd7223c5b76adf585fac21008a2508f1&idx=1&pvId=dc93d520072e76dd08424024e8d731d4&org=2&pad=3&pVis=1&eIdx=&ab=0&wl=0
- Requested by
- Host: widgets.outbrain.com
URL: https://widgets.outbrain.com/outbrain.js
- Protocol
- HTTP/1.1
- Server
-
74.201.198.92
, United States,
ASN13789
(INTERNAP-BLK3 - Internap Network Services Corporation, US),
- Reverse DNS
- Software
-
/
- Resource Hash
- b5bea41b6c623f7c09f1bf24dcae58ebab3c0cdd90ad966bc43a45b44867e12b
|
GET
H/1.1
|
206
Partial Content
|
a.mp4
videos.chip.de/p/1741931/sp/174193100/serveFlavor/entryId/1_82cmb71o/v/1/flavorId/1_8pu5fxrd/name/
|
206 KB
0
|
11ms
9ms
|
Media
video/mp4 |
2a02:26f0:10:482::bf0
AKAMAI-ASN1
|
|
General
- Full URL
- https://videos.chip.de/p/1741931/sp/174193100/serveFlavor/entryId/1_82cmb71o/v/1/flavorId/1_8pu5fxrd/name/a.mp4
- Requested by
- Host: www.chip.de
URL: https://www.chip.de/downloads/Move-Mouse_102198245.html
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_RSA, AES_256_GCM
- Server
-
2a02:26f0:10:482::bf0
, European Union,
ASN20940
(AKAMAI-ASN1, US),
- Reverse DNS
- Software
-
nginx /
- Resource Hash
|
GET
H/1.1
|
200
OK
|
widgetGlobalEvent
Show response
log.outbrain.com/loggerServices/
|
4 B
299 B
|
396ms
101ms
|
Script
application/json |
64.202.112.28
Server Central Ne...
|
|
General
- Full URL
- https://log.outbrain.com/loggerServices/widgetGlobalEvent?eT=3&tm=1175&pid=3051&sid=235450&wId=102&wRV=01004600&rId=dc93d520072e76dd08424024e8d731d4&idx=0&pvId=dc93d520072e76dd08424024e8d731d4&org=0&pad=0&pVis=0&eIdx=0&ab=0&wl=0
- Requested by
- Host: widgets.outbrain.com
URL: https://widgets.outbrain.com/outbrain.js
- Protocol
- HTTP/1.1
- Server
-
64.202.112.28
, United States,
ASN23352
(SERVERCENTRAL - Server Central Network, US),
- Reverse DNS
- chi-only.outbrain.org
- Software
-
/
- Resource Hash
- b5bea41b6c623f7c09f1bf24dcae58ebab3c0cdd90ad966bc43a45b44867e12b
|
GET
DATA
|
200
OK
|
truncated
/
|
43 B
0
|
|
Image
image/gif |
|
|
|
GET
S
|
204
|
gen_204
pagead2.googlesyndication.com/pagead/
|
0
53 B
|
39ms
39ms
|
Image
text/html |
2a00:1450:4001:806::2002
Google LLC
|
|
|
GET
H/1.1
|
200
OK
|
widgetGlobalEvent
Show response
log.outbrain.com/loggerServices/
|
4 B
299 B
|
401ms
103ms
|
Script
application/json |
74.201.198.92
Internap Network ...
|
|
General
- Full URL
- https://log.outbrain.com/loggerServices/widgetGlobalEvent?eT=0&tm=1224&pid=3051&sid=235450&wId=973&wRV=01004600&rId=d94d6675d1b1fa60f8639f454225ca87&idx=2&pvId=dc93d520072e76dd08424024e8d731d4&org=1&pad=1&pVis=1&eIdx=&ab=0&wl=0
- Requested by
- Host: widgets.outbrain.com
URL: https://widgets.outbrain.com/outbrain.js
- Protocol
- HTTP/1.1
- Server
-
74.201.198.92
, United States,
ASN13789
(INTERNAP-BLK3 - Internap Network Services Corporation, US),
- Reverse DNS
- Software
-
/
- Resource Hash
- b5bea41b6c623f7c09f1bf24dcae58ebab3c0cdd90ad966bc43a45b44867e12b
|
GET
S
|
200
|
get
Show response
odb.outbrain.com/utils/
|
23 KB
8 KB
|
128ms
127ms
|
Script
text/x-json |
151.101.14.2
Fastly
|
|
General
- Full URL
- https://odb.outbrain.com/utils/get?url=https%3A%2F%2Fwww.chip.de&settings=true&recs=true&widgetJSId=SFD_STP_3&key=NANOWDGT01&idx=3&version=01004600&ref=&apv=true&sig=H3bXBO47&format=html&rand=78216&lsd=09f3532a-26d6-4d99-bf5c-dd98a5dc5b35&t=MV9kYzkzZDUyMDA3MmU3NmRkMDg0MjQwMjRlOGQ3MzFkNF8w&winW=1600&winH=1200&scrW=1600&scrH=1200&adblck=false&secured=true&fId=100&fAB=no_abtest&fCard=2&feedIdx=1
- Requested by
- Host: widgets.outbrain.com
URL: https://widgets.outbrain.com/outbrain.js
- Protocol
- SPDY
- Server
-
151.101.14.2
San Francisco, United States,
ASN54113
(FASTLY - Fastly, US),
- Reverse DNS
- Software
-
/
- Resource Hash
- 8b1cbf22ff33d0baef587a0f9f3c790111b162e9e249e516253883abbd2b814b
- Security Headers
-
Name |
Value |
Strict-Transport-Security |
max-age=0; includeSubDomains; |
|
GET
H/1.1
|
200
OK
|
eyJpdSI6IjA3YzQ0YjdmNWJlNjM3N2I4ODY2NjcwYmQ2Yzc0NTY2NjRhNjNlNTM1MmEzYmJhNDQxOTk0YjI0ZDAzMzFiZTIiLCJ3Ijo0NjcsImgiOjI2NCwiZCI6MS41LCJjcyI6MCwiZiI6MH0.webp
images.outbrainimg.com/transform/v3/
|
92 KB
92 KB
|
9ms
8ms
|
Image
image/webp |
2.18.232.28
Akamai Technologies
|
|
|
GET
H/1.1
|
200
OK
|
eyJpdSI6ImIyNTRlNTQwYzMxZWRiYmE1ODQ1YzlkNTkxYjhhNjVkODg1YTJmYWNhMmZkODcwN2ZmNmJiOGJkNzQ0YzE4MDUiLCJ3Ijo0NjcsImgiOjI2NCwiZCI6MS41LCJjcyI6MCwiZiI6MH0.webp
images.outbrainimg.com/transform/v3/
|
33 KB
34 KB
|
6ms
6ms
|
Image
image/webp |
2.18.232.28
Akamai Technologies
|
|
|
GET
H/1.1
|
206
Partial Content
|
a.mp4
videos.chip.de/p/1741931/sp/174193100/serveFlavor/entryId/1_82cmb71o/v/1/flavorId/1_8pu5fxrd/name/
|
272 KB
0
|
21ms
6ms
|
Media
video/mp4 |
2a02:26f0:10:482::bf0
AKAMAI-ASN1
|
|
General
- Full URL
- https://videos.chip.de/p/1741931/sp/174193100/serveFlavor/entryId/1_82cmb71o/v/1/flavorId/1_8pu5fxrd/name/a.mp4
- Requested by
- Host: www.chip.de
URL: https://www.chip.de/downloads/Move-Mouse_102198245.html
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_RSA, AES_256_GCM
- Server
-
2a02:26f0:10:482::bf0
, European Union,
ASN20940
(AKAMAI-ASN1, US),
- Reverse DNS
- Software
-
nginx /
- Resource Hash
|
GET
H/1.1
|
200
OK
|
widgetGlobalEvent
Show response
log.outbrain.com/loggerServices/
|
4 B
299 B
|
299ms
103ms
|
Script
application/json |
64.202.112.28
Server Central Ne...
|
|
General
- Full URL
- https://log.outbrain.com/loggerServices/widgetGlobalEvent?eT=0&tm=1363&pid=3051&sid=235450&wId=978&wRV=01004600&rId=87901b0d777b746fabbfff86ce1b0350&idx=3&pvId=dc93d520072e76dd08424024e8d731d4&org=2&pad=1&pVis=1&eIdx=&ab=0&wl=0
- Requested by
- Host: widgets.outbrain.com
URL: https://widgets.outbrain.com/outbrain.js
- Protocol
- HTTP/1.1
- Server
-
64.202.112.28
, United States,
ASN23352
(SERVERCENTRAL - Server Central Network, US),
- Reverse DNS
- chi-only.outbrain.org
- Software
-
/
- Resource Hash
- b5bea41b6c623f7c09f1bf24dcae58ebab3c0cdd90ad966bc43a45b44867e12b
|
GET
S
|
200
|
get
Show response
odb.outbrain.com/utils/
|
20 KB
7 KB
|
124ms
124ms
|
Script
text/x-json |
151.101.14.2
Fastly
|
|
General
- Full URL
- https://odb.outbrain.com/utils/get?url=https%3A%2F%2Fwww.chip.de&settings=true&recs=true&widgetJSId=SFD_STP_2&key=NANOWDGT01&idx=4&version=01004600&ref=&apv=true&sig=H3bXBO47&format=html&rand=84196&lsd=09f3532a-26d6-4d99-bf5c-dd98a5dc5b35&t=MV9kYzkzZDUyMDA3MmU3NmRkMDg0MjQwMjRlOGQ3MzFkNF8w&winW=1600&winH=1200&scrW=1600&scrH=1200&adblck=false&secured=true&fId=100&fAB=no_abtest&fCard=3&feedIdx=1
- Requested by
- Host: widgets.outbrain.com
URL: https://widgets.outbrain.com/outbrain.js
- Protocol
- SPDY
- Server
-
151.101.14.2
San Francisco, United States,
ASN54113
(FASTLY - Fastly, US),
- Reverse DNS
- Software
-
/
- Resource Hash
- 80c9c3839dab10dafab40e8aae1d30866f5d86cbda2c41a33495afac8e2cee5c
- Security Headers
-
Name |
Value |
Strict-Transport-Security |
max-age=0; includeSubDomains; |
|
GET
H/1.1
|
200
OK
|
eyJpdSI6IjMyNGFiZjE1ZTc5OGFiZmQxMTkyOGUwZTI5YmM1ZTdhNTc3NzdhODM0ZjI0NGRlMzI1ODA5ZWNmZWZkZTEyYmQiLCJ3Ijo0NjcsImgiOjI2NCwiZCI6MS41LCJjcyI6MCwiZiI6MH0.webp
images.outbrainimg.com/transform/v3/
|
33 KB
33 KB
|
6ms
6ms
|
Image
image/webp |
2.18.232.28
Akamai Technologies
|
|
|
GET
H/1.1
|
200
OK
|
eyJpdSI6IjFjNDNhYTFhYjgxNWJlZTBlMzlhOThmY2Y2ZDAxNGJmOTVlY2M5YTU1NzZjNWUzNjM3NDRmNjcxZWY3Zjk0ZjciLCJ3Ijo0NjcsImgiOjI2NCwiZCI6MS41LCJjcyI6MCwiZiI6MH0.webp
images.outbrainimg.com/transform/v3/
|
79 KB
79 KB
|
8ms
8ms
|
Image
image/webp |
2.18.232.28
Akamai Technologies
|
|
|
GET
H/1.1
|
200
OK
|
eyJpdSI6IjhlYjAzY2FkNDFjZTRjMjhjNGE5MDVmY2ZhOWRkMTM4NGIyYWU1ZTIxNTlhM2I0ZDU2ZjMxZmQyMzIzNDc5NWYiLCJ3Ijo0NjcsImgiOjI2NCwiZCI6MS41LCJjcyI6MCwiZiI6MH0.webp
images.outbrainimg.com/transform/v3/
|
69 KB
69 KB
|
6ms
6ms
|
Image
image/webp |
2.18.232.28
Akamai Technologies
|
|
|
GET
H/1.1
|
200
OK
|
global_config.json
Show response
hgc-cf-cache-1.svonm.com/
|
53 B
719 B
|
35ms
7ms
|
XHR
application/json |
52.222.150.31
Amazon.com
|
|
General
- Full URL
- https://hgc-cf-cache-1.svonm.com/global_config.json?cache=3814652324
- Requested by
- Host: text
URL: data:text/javascript;base64,dmFyIFBpZXh1dXBoZWhhcGhvaFY9UGlleHV1cGhlaGFwaG9oVnx8e307CihmdW5jdGlvbihjKXtmdW5jdGlvbiBYKCl7eS5TZHx8KHkuU2Q9MCk7eS5TZCsrO3dpbmRvdy52aWRlb3BrZ0ludGVyZmFjZSE9eS52aWRlb3BrZ0ludGVyZmFjZSYmKHdpbmRvdy52aWRlb3BrZ0ludGVyZmFjZT15LnZpZGVvcGtnSW50ZXJmYWNlKTsxMD55LlNkJiZ3aW5kb3cuc2V0VGltZW91dChYLDUwMCl9ZnVuY3Rpb24gQSgpe3dpbmRvdy5yZW1vdmVFdmVudExpc3RlbmVyKCJrZXlkb3duIixBKTt3aW5kb3cucmVtb3ZlRXZlbnRMaXN0ZW5lcigibW91c2Vtb3ZlIixBKTt3aW5kb3cucmVtb3ZlRXZlbnRMaXN0ZW5lcigibW91c2Vkb3duIixBKTt3aW5kb3cucmVtb3ZlRXZlbnRMa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reverse DNS
- server-52-222-150-31.fra53.r.cloudfront.net
- Software
-
AmazonS3 /
- Resource Hash
- f1379a9c047773af19ec6c4f9a465e0147cbabc785342c01110b43304179196a
|
GET
H/1.1
|
200
OK
|
homadConfig.json
Show response
filestorage.chip.de/videoplayer//config/
|
323 B
677 B
|
44ms
30ms
|
XHR
application/json |
2a02:26f0:6c00:198::bf0
AKAMAI-ASN1
|
|
General
- Full URL
- https://filestorage.chip.de/videoplayer//config/homadConfig.json?cache=4200992111
- Requested by
- Host: text
URL: data:text/javascript;base64,dmFyIFBpZXh1dXBoZWhhcGhvaFY9UGlleHV1cGhlaGFwaG9oVnx8e307CihmdW5jdGlvbihjKXtmdW5jdGlvbiBYKCl7eS5TZHx8KHkuU2Q9MCk7eS5TZCsrO3dpbmRvdy52aWRlb3BrZ0ludGVyZmFjZSE9eS52aWRlb3BrZ0ludGVyZmFjZSYmKHdpbmRvdy52aWRlb3BrZ0ludGVyZmFjZT15LnZpZGVvcGtnSW50ZXJmYWNlKTsxMD55LlNkJiZ3aW5kb3cuc2V0VGltZW91dChYLDUwMCl9ZnVuY3Rpb24gQSgpe3dpbmRvdy5yZW1vdmVFdmVudExpc3RlbmVyKCJrZXlkb3duIixBKTt3aW5kb3cucmVtb3ZlRXZlbnRMaXN0ZW5lcigibW91c2Vtb3ZlIixBKTt3aW5kb3cucmVtb3ZlRXZlbnRMaXN0ZW5lcigibW91c2Vkb3duIixBKTt3aW5kb3cucmVtb3ZlRXZlbnRMaXN0ZW5lcigiY2xpY2siLEEpO3dpbmRvdy5yZW1vdmVFdmVudExpc3RlbmVyKCJ0b3VjaHN0YXJ0IixBKTt3aW5kb3cucmVtb3ZlRXZlbnRMaXN0ZW5lcigidG91Y2hlbmQiLEEpO3dpbmRvdy5yZW1vdmVFdmVudExpc3RlbmVyKCJ0b3VjaG1vdmUiLEEpO1k9ITA7Zm9yKHZhciBjPTA7YzxCLmxlbmd0aDtjKyspQltjXS5sb2FkKCk7CmZvcihjPTA7YzxC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dGhpcy5hbj10aGlzLmFbMl07dGhpcy5vbT10aGlzLmFbNl07dGhpcy5Gcj10aGlzLmFbNF07dGhpcy5nPXRoaXMuYVs4XX1jLnRuPWI7Yi5wcm90b3R5cGU9e3FuOmZ1bmN0aW9uKGEpe3JldHVybiAxMDxhP3RoaXMucm46dGhpcy5UcyhhKX0sVHM6ZnVuY3Rpb24oYSl7cmV0dXJuIDQ8YT90aGlzLlVzOnRoaXMuJG0oYSl9LCRtOmZ1bmN0aW9uKGEpe3JldHVybiA4PGE/dGhpcy5hbjp0aGlzLm5tKGEpfSxubTpmdW5jdGlvbihhKXtyZXR1cm4gNjxhP3RoaXMub206dGhpcy5FcihhKX0sRXI6ZnVuY3Rpb24oYSl7cmV0dXJuIDE8YT90aGlzLkZyOnRoaXMuZihhKX0sZjpmdW5jdGlvbihhKXtyZXR1cm4gNTxhP3RoaXMuZzphfX19KShjKTt2YXIgR2M9Yy50bnx8R2MsdmQ9bmV3IEdjKDEsbmV3IERhdGUsMixNYXRoLnJhbmRvbSgpLCJ0cnVlIixuYXZpZ2F0b3IsCiJsLWtleSIsITEsTWF0aC5hYnMoLTEpLCJ0ZiIsIlooVFREWlRSUiIpO3dpbmRvdy52PXZkLnFuKDQpfSkuY2FsbChQaWV4dXVwaGVoYXBob2hWLFBpZXh1dXBoZWhhcGhvaFYpOwo=
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_RSA, AES_256_GCM
- Server
-
2a02:26f0:6c00:198::bf0
, European Union,
ASN20940
(AKAMAI-ASN1, US),
- Reverse DNS
- Software
-
Apache /
- Resource Hash
- 96a277140a07c8bfdbf6926bd41c2b1b9915e266760ad9f34f26069ec9cb8c2a
|
GET
H/1.1
|
200
OK
|
widgetGlobalEvent
Show response
log.outbrain.com/loggerServices/
|
4 B
299 B
|
295ms
99ms
|
Script
application/json |
74.201.198.92
Internap Network ...
|
|
General
- Full URL
- https://log.outbrain.com/loggerServices/widgetGlobalEvent?eT=0&tm=1507&pid=3051&sid=235450&wId=973&wRV=01004600&rId=afd60c9b23c3c7c79e91002e6ee9c3b9&idx=4&pvId=dc93d520072e76dd08424024e8d731d4&org=1&pad=1&pVis=1&eIdx=&ab=0&wl=0
- Requested by
- Host: widgets.outbrain.com
URL: https://widgets.outbrain.com/outbrain.js
- Protocol
- HTTP/1.1
- Server
-
74.201.198.92
, United States,
ASN13789
(INTERNAP-BLK3 - Internap Network Services Corporation, US),
- Reverse DNS
- Software
-
/
- Resource Hash
- b5bea41b6c623f7c09f1bf24dcae58ebab3c0cdd90ad966bc43a45b44867e12b
|
GET
S
|
200
|
get
Show response
odb.outbrain.com/utils/
|
24 KB
8 KB
|
127ms
125ms
|
Script
text/x-json |
151.101.14.2
Fastly
|
|
General
- Full URL
- https://odb.outbrain.com/utils/get?url=https%3A%2F%2Fwww.chip.de&settings=true&recs=true&widgetJSId=SFD_STP_3&key=NANOWDGT01&idx=5&version=01004600&ref=&apv=true&sig=H3bXBO47&format=html&rand=54046&lsd=09f3532a-26d6-4d99-bf5c-dd98a5dc5b35&t=MV9kYzkzZDUyMDA3MmU3NmRkMDg0MjQwMjRlOGQ3MzFkNF8w&winW=1600&winH=1200&scrW=1600&scrH=1200&adblck=false&secured=true&fId=100&fAB=no_abtest&fCard=4&feedIdx=1
- Requested by
- Host: widgets.outbrain.com
URL: https://widgets.outbrain.com/outbrain.js
- Protocol
- SPDY
- Server
-
151.101.14.2
San Francisco, United States,
ASN54113
(FASTLY - Fastly, US),
- Reverse DNS
- Software
-
/
- Resource Hash
- e48c60faae9511bda1862d6d320a7cce59354c0ab7b9cf9177a521a6354eb71c
- Security Headers
-
Name |
Value |
Strict-Transport-Security |
max-age=0; includeSubDomains; |
|
GET
H/1.1
|
200
OK
|
eyJpdSI6IjU5ZWE0MDZkMjAzOTJkYjg0MGVmN2QwNWU2ZGY5NTFmZTU5Y2Y3NDBiOWU3MDQ4MTAyNWZhYjA3ZWYzM2M5ODciLCJ3Ijo0NjcsImgiOjI2NCwiZCI6MS41LCJjcyI6MCwiZiI6MH0.webp
images.outbrainimg.com/transform/v3/
|
24 KB
25 KB
|
7ms
6ms
|
Image
image/webp |
2.18.232.28
Akamai Technologies
|
|
|
GET
H/1.1
|
200
OK
|
eyJpdSI6ImNhZTI1ZTg0ZjMwZDkwYWZmZGFmOWI4ZjhlYmVmMDVlZTA1MjkwMzhiZGQ4ZmVjYzVlMTJlYjM1Njk2MDU1NmEiLCJ3Ijo0NjcsImgiOjI2NCwiZCI6MS41LCJjcyI6MCwiZiI6MH0.webp
images.outbrainimg.com/transform/v3/
|
7 KB
7 KB
|
6ms
5ms
|
Image
image/webp |
2.18.232.28
Akamai Technologies
|
|
|
GET
H/1.1
|
200
OK
|
config.json
Show response
hgc-cf-cache-1.svonm.com/www.chip.de/
|
422 B
1 KB
|
7ms
7ms
|
XHR
application/json |
52.222.150.31
Amazon.com
|
|
General
- Full URL
- https://hgc-cf-cache-1.svonm.com/www.chip.de/config.json?cache=2580107349
- Requested by
- Host: text
URL: data:text/javascript;base64,dmFyIFBpZXh1dXBoZWhhcGhvaFY9UGlleHV1cGhlaGFwaG9oVnx8e307CihmdW5jdGlvbihjKXtmdW5jdGlvbiBYKCl7eS5TZHx8KHkuU2Q9MCk7eS5TZCsrO3dpbmRvdy52aWRlb3BrZ0ludGVyZmFjZSE9eS52aWRlb3BrZ0ludGVyZmFjZSYmKHdpbmRvdy52aWRlb3BrZ0ludGVyZmFjZT15LnZpZGVvcGtnSW50ZXJmYWNlKTsxMD55LlNkJiZ3aW5kb3cuc2V0VGltZW91dChYLDUwMCl9ZnVuY3Rpb24gQSgpe3dpbmRvdy5yZW1vdmVFdmVudExpc3RlbmVyKCJrZXlkb3duIixBKTt3aW5kb3cucmVtb3ZlRXZlbnRMaXN0ZW5lcigibW91c2Vtb3ZlIixBKTt3aW5kb3cucmVtb3ZlRXZlbnRMaXN0ZW5lcigibW91c2Vkb3duIixBKTt3aW5kb3cucmVtb3ZlRXZlbnRMaXN0ZW5lcigiY2xpY2si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fra53.r.cloudfront.net
- Software
-
AmazonS3 /
- Resource Hash
- b001be44e53a0b5c52327701170e75b18b032edb0062402e1d43cc9772633b3e
|
POST
H/1.1
|
200
OK
|
/
Show response
ssl.2.damoh.chip.de/aa96132536ace0da45eaa9178ff3900ef9d5c43f/
|
422 B
1 KB
|
94ms
38ms
|
XHR
application/json |
178.63.74.137
HETZNER-AS
|
|
General
- Full URL
- https://ssl.2.damoh.chip.de/aa96132536ace0da45eaa9178ff3900ef9d5c43f/
- Requested by
- Host: text
URL: data:text/javascript;base64,dmFyIFBpZXh1dXBoZWhhcGhvaFY9UGlleHV1cGhlaGFwaG9oVnx8e307CihmdW5jdGlvbihjKXtmdW5jdGlvbiBYKCl7eS5TZHx8KHkuU2Q9MCk7eS5TZCsrO3dpbmRvdy52aWRlb3BrZ0ludGVyZmFjZSE9eS52aWRlb3BrZ0ludGVyZmFjZSYmKHdpbmRvdy52aWRlb3BrZ0ludGVyZmFjZT15LnZpZGVvcGtnSW50ZXJmYWNlKTsxMD55LlNkJiZ3aW5kb3cuc2V0VGltZW91dChYLDUwMCl9ZnVuY3Rpb24gQSgpe3dpbmRvdy5yZW1vdmVFdmVudExpc3RlbmVyKCJrZXlkb3duIixBKTt3aW5kb3cucmVtb3ZlRXZlbnRMaXN0ZW5lcigibW91c2Vtb3ZlIixBKTt3aW5kb3cucmVtb3ZlRXZlbnRMaXN0ZW5lcigibW91c2Vkb3duIixBKTt3aW5kb3cucmVtb3ZlRXZlbnRMaXN0ZW5lcigiY2xpY2siLEEpO3dpbmRvdy5yZW1vdmVFdmVudExpc3RlbmVyKCJ0b3VjaHN0YXJ0IixBKTt3aW5kb3cucmVtb3ZlRXZlbnRMaXN0ZW5lcigidG91Y2hlbmQiLEEpO3dpbmRvdy5yZW1vdmVFdmVudExpc3RlbmVyKCJ0b3VjaG1vdmUiLEEpO1k9ITA7Zm9yKHZhciBjPTA7YzxCLmxlbmd0aDtjKyspQltjXS5sb2FkKCk7CmZvcihjPTA7YzxC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dGhpcy5hbj10aGlzLmFbMl07dGhpcy5vbT10aGlzLmFbNl07dGhpcy5Gcj10aGlzLmFbNF07dGhpcy5nPXRoaXMuYVs4XX1jLnRuPWI7Yi5wcm90b3R5cGU9e3FuOmZ1bmN0aW9uKGEpe3JldHVybiAxMDxhP3RoaXMucm46dGhpcy5UcyhhKX0sVHM6ZnVuY3Rpb24oYSl7cmV0dXJuIDQ8YT90aGlzLlVzOnRoaXMuJG0oYSl9LCRtOmZ1bmN0aW9uKGEpe3JldHVybiA4PGE/dGhpcy5hbjp0aGlzLm5tKGEpfSxubTpmdW5jdGlvbihhKXtyZXR1cm4gNjxhP3RoaXMub206dGhpcy5FcihhKX0sRXI6ZnVuY3Rpb24oYSl7cmV0dXJuIDE8YT90aGlzLkZyOnRoaXMuZihhKX0sZjpmdW5jdGlvbihhKXtyZXR1cm4gNTxhP3RoaXMuZzphfX19KShjKTt2YXIgR2M9Yy50bnx8R2MsdmQ9bmV3IEdjKDEsbmV3IERhdGUsMixNYXRoLnJhbmRvbSgpLCJ0cnVlIixuYXZpZ2F0b3IsCiJsLWtleSIsITEsTWF0aC5hYnMoLTEpLCJ0ZiIsIlooVFREWlRSUiIpO3dpbmRvdy52PXZkLnFuKDQpfSkuY2FsbChQaWV4dXVwaGVoYXBob2hWLFBpZXh1dXBoZWhhcGhvaFYpOwo=
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_RSA, AES_128_GCM
- Server
-
178.63.74.137
, Germany,
ASN24940
(HETZNER-AS, DE),
- Reverse DNS
- static.137.74.63.178.clients.your-server.de
- Software
-
AmazonS3 /
- Resource Hash
- b001be44e53a0b5c52327701170e75b18b032edb0062402e1d43cc9772633b3e
|
GET
H/1.1
|
200
OK
|
widgetGlobalEvent
Show response
log.outbrain.com/loggerServices/
|
4 B
299 B
|
268ms
88ms
|
Script
application/json |
74.201.198.92
Internap Network ...
|
|
General
- Full URL
- https://log.outbrain.com/loggerServices/widgetGlobalEvent?eT=0&tm=1644&pid=3051&sid=235450&wId=978&wRV=01004600&rId=54a082a90fc57894547230a98940c87e&idx=5&pvId=dc93d520072e76dd08424024e8d731d4&org=1&pad=1&pVis=1&eIdx=&ab=0&wl=0
- Requested by
- Host: widgets.outbrain.com
URL: https://widgets.outbrain.com/outbrain.js
- Protocol
- HTTP/1.1
- Server
-
74.201.198.92
, United States,
ASN13789
(INTERNAP-BLK3 - Internap Network Services Corporation, US),
- Reverse DNS
- Software
-
/
- Resource Hash
- b5bea41b6c623f7c09f1bf24dcae58ebab3c0cdd90ad966bc43a45b44867e12b
|
GET
S
|
200
|
get
Show response
odb.outbrain.com/utils/
|
20 KB
7 KB
|
132ms
124ms
|
Script
text/x-json |
151.101.14.2
Fastly
|
|
General
- Full URL
- https://odb.outbrain.com/utils/get?url=https%3A%2F%2Fwww.chip.de&settings=true&recs=true&widgetJSId=SFD_STP_2&key=NANOWDGT01&idx=6&version=01004600&ref=&apv=true&sig=H3bXBO47&format=html&rand=85052&lsd=09f3532a-26d6-4d99-bf5c-dd98a5dc5b35&t=MV9kYzkzZDUyMDA3MmU3NmRkMDg0MjQwMjRlOGQ3MzFkNF8w&winW=1600&winH=1200&scrW=1600&scrH=1200&adblck=false&secured=true&fId=100&fAB=no_abtest&fCard=5&feedIdx=1
- Requested by
- Host: widgets.outbrain.com
URL: https://widgets.outbrain.com/outbrain.js
- Protocol
- SPDY
- Server
-
151.101.14.2
San Francisco, United States,
ASN54113
(FASTLY - Fastly, US),
- Reverse DNS
- Software
-
/
- Resource Hash
- 7f2744ba79d66e4987ebd29b1b349b1279cd5280506d5a66e959b0d05c063183
- Security Headers
-
Name |
Value |
Strict-Transport-Security |
max-age=0; includeSubDomains; |
|
GET
H/1.1
|
200
OK
|
eyJpdSI6IjM0YjczOGYxMTg4NWUzMjIxNjY3ZjVlYjk3NmU1YjFlNzU3OGNkNDM4N2Y2MjU1NzZjNTZmNTA1ZWNiZGY4N2QiLCJ3Ijo0NjcsImgiOjI2NCwiZCI6MS41LCJjcyI6MCwiZiI6MH0.webp
images.outbrainimg.com/transform/v3/
|
24 KB
24 KB
|
12ms
6ms
|
Image
image/webp |
2.18.232.28
Akamai Technologies
|
|
|
GET
H/1.1
|
200
OK
|
eyJpdSI6IjMzMDcwNzc1M2MxM2I1Yjg3NzhlZDM2YmQ5ZmUyN2VhZTE3YTI5NTcxYTE3ZTI0NzQ1ZjNjZTVlYjA5ZjgxZTUiLCJ3Ijo0NjcsImgiOjI2NCwiZCI6MS41LCJjcyI6MCwiZiI6MH0.webp
images.outbrainimg.com/transform/v3/
|
6 KB
3 KB
|
11ms
8ms
|
Image
image/webp |
2.18.232.28
Akamai Technologies
|
|
|
GET
H/1.1
|
200
OK
|
eyJpdSI6ImQ4ODMwNTJkYzZlOTA0ZDAwNjVmYTAxMTFlMjNiNTRhNmVlYmEyNWQ5NzA3MGI1OGE5NDg2ZDYxODBmZDljNGIiLCJ3Ijo0NjcsImgiOjI2NCwiZCI6MS41LCJjcyI6MCwiZiI6MH0.webp
images.outbrainimg.com/transform/v3/
|
40 KB
40 KB
|
10ms
7ms
|
Image
image/webp |
2.18.232.28
Akamai Technologies
|
|
|
GET
H/1.1
|
200
OK
|
hic_qos
Show response
ssl.1.damoh.chip.de/
|
24 B
281 B
|
651ms
1ms
|
Script
application/octet-stream |
88.198.8.169
HETZNER-AS
|
|
General
- Full URL
- https://ssl.1.damoh.chip.de/hic_qos?adv_partner&_werbebanner_
- Requested by
- Host: text
URL: data:text/javascript;base64,dmFyIFBpZXh1dXBoZWhhcGhvaFY9UGlleHV1cGhlaGFwaG9oVnx8e307CihmdW5jdGlvbihjKXtmdW5jdGlvbiBYKCl7eS5TZHx8KHkuU2Q9MCk7eS5TZCsrO3dpbmRvdy52aWRlb3BrZ0ludGVyZmFjZSE9eS52aWRlb3BrZ0ludGVyZmFjZSYmKHdpbmRvdy52aWRlb3BrZ0ludGVyZmFjZT15LnZpZGVvcGtnSW50ZXJmYWNlKTsxMD55LlNkJiZ3aW5kb3cuc2V0VGlt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Z2F0b3IsCiJsLWtleSIsITEsTWF0aC5hYnMoLTEpLCJ0ZiIsIlooVFREWlRSUiIpO3dpbmRvdy52PXZkLnFuKDQpfSkuY2FsbChQaWV4dXVwaGVoYXBob2hWLFBpZXh1dXBoZWhhcGhvaFYpOwo=
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_RSA, AES_128_GCM
- Server
-
88.198.8.169
Nürnberg, Germany,
ASN24940
(HETZNER-AS, DE),
- Reverse DNS
- static.88-198-8-169.clients.your-server.de
- Software
-
openresty/1.13.6.2 /
- Resource Hash
- ae8f9dd465ab424d0dd4f81f7ba9ec5029f6736e090c3f33b5f0fa0c0ecc47dc
|
GET
H/1.1
|
200
OK
|
widgetGlobalEvent
Show response
log.outbrain.com/loggerServices/
|
4 B
299 B
|
294ms
99ms
|
Script
application/json |
64.202.112.28
Server Central Ne...
|
|
General
- Full URL
- https://log.outbrain.com/loggerServices/widgetGlobalEvent?eT=0&tm=1787&pid=3051&sid=235450&wId=973&wRV=01004600&rId=23e6a84c7dfb00c5bc76eec69c5ef599&idx=6&pvId=dc93d520072e76dd08424024e8d731d4&org=1&pad=1&pVis=1&eIdx=&ab=0&wl=0
- Requested by
- Host: widgets.outbrain.com
URL: https://widgets.outbrain.com/outbrain.js
- Protocol
- HTTP/1.1
- Server
-
64.202.112.28
, United States,
ASN23352
(SERVERCENTRAL - Server Central Network, US),
- Reverse DNS
- chi-only.outbrain.org
- Software
-
/
- Resource Hash
- b5bea41b6c623f7c09f1bf24dcae58ebab3c0cdd90ad966bc43a45b44867e12b
|
GET
H/1.1
|
200
OK
|
eyJpdSI6IjE2OTIzOTY0OGRjODhjNGE2NTMyMjNlZWE3NDA5OGRkNWNkZmYwY2VhNDVkMzE2ZGVhYzgxMzFhNmM1MDllNmMiLCJ3Ijo0NjcsImgiOjI2NCwiZCI6MS41LCJjcyI6MCwiZiI6MH0.webp
images.outbrainimg.com/transform/v3/
|
14 KB
14 KB
|
6ms
5ms
|
Image
image/webp |
2.18.232.28
Akamai Technologies
|
|
|
GET
H/1.1
|
200
OK
|
eyJpdSI6IjdjMTVmNWI4NmFmYjJhMjQ2YzNkNzE0Njg3ZmUyNWU1ZDMyNGM5M2QyMThmNzgzM2YwN2MxN2NkMzU0NTFiOWIiLCJ3Ijo0NjcsImgiOjI2NCwiZCI6MS41LCJjcyI6MCwiZiI6MH0.webp
images.outbrainimg.com/transform/v3/
|
29 KB
29 KB
|
6ms
6ms
|
Image
image/webp |
2.18.232.28
Akamai Technologies
|
|
|
POST
H/1.1
|
200
OK
|
/
Show response
ssl.2.damoh.chip.de/7495490d38d08f55951c5e5aaaae273a91dfc8cb/
|
109 B
670 B
|
335ms
8ms
|
XHR
application/json |
46.4.39.5
HETZNER-AS
|
|
General
- Full URL
- https://ssl.2.damoh.chip.de/7495490d38d08f55951c5e5aaaae273a91dfc8cb/
- Requested by
- Host: text
URL: data:text/javascript;base64,dmFyIFBpZXh1dXBoZWhhcGhvaFY9UGlleHV1cGhlaGFwaG9oVnx8e307CihmdW5jdGlvbihjKXtmdW5jdGlvbiBYKCl7eS5TZHx8KHkuU2Q9MCk7eS5TZCsrO3dpbmRvdy52aWRlb3BrZ0ludGVyZmFjZSE9eS52aWRlb3BrZ0ludGVyZmFjZSYmKHdpbmRvdy52aWRlb3BrZ0ludGVyZmFjZT15LnZpZGVvcGtnSW50ZXJmYWNlKTsxMD55LlNkJiZ3aW5kb3cuc2V0VGltZW91dChYLDUwMCl9ZnVuY3Rpb24gQSgpe3dpbmRvdy5yZW1vdmVFdmVudExpc3RlbmVyKCJrZXlkb3duIixBKTt3aW5kb3cucmVtb3ZlRXZlbnRMaXN0ZW5lcigibW91c2Vtb3ZlIixBKTt3aW5kb3cucmVtb3ZlRXZlbnRMaXN0ZW5lcigibW91c2Vkb3duIixBKTt3aW5kb3cucmVtb3ZlRXZlbnRMaXN0ZW5lcigiY2xpY2siLEEpO3dpbmRvdy5yZW1vdmVFdmVudExpc3RlbmVyKCJ0b3VjaHN0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X0pKGMpO3ZhciBkYT1jLk5nfHxkYSxRPSExLGphPSExO2M9Y3x8e307KGZ1bmN0aW9uKGMpe2Z1bmN0aW9uIGIoKXt0aGlzLmE9CkFycmF5LnByb3RvdHlwZS5zbGljZS5jYWxsKGFyZ3VtZW50cyk7dGhpcy5ybj10aGlzLmFbNV07dGhpcy5Vcz10aGlzLmFbNV07dGhpcy5hbj10aGlzLmFbMl07dGhpcy5vbT10aGlzLmFbNl07dGhpcy5Gcj10aGlzLmFbNF07dGhpcy5nPXRoaXMuYVs4XX1jLnRuPWI7Yi5wcm90b3R5cGU9e3FuOmZ1bmN0aW9uKGEpe3JldHVybiAxMDxhP3RoaXMucm46dGhpcy5UcyhhKX0sVHM6ZnVuY3Rpb24oYSl7cmV0dXJuIDQ8YT90aGlzLlVzOnRoaXMuJG0oYSl9LCRtOmZ1bmN0aW9uKGEpe3JldHVybiA4PGE/dGhpcy5hbjp0aGlzLm5tKGEpfSxubTpmdW5jdGlvbihhKXtyZXR1cm4gNjxhP3RoaXMub206dGhpcy5FcihhKX0sRXI6ZnVuY3Rpb24oYSl7cmV0dXJuIDE8YT90aGlzLkZyOnRoaXMuZihhKX0sZjpmdW5jdGlvbihhKXtyZXR1cm4gNTxhP3RoaXMuZzphfX19KShjKTt2YXIgR2M9Yy50bnx8R2MsdmQ9bmV3IEdjKDEsbmV3IERhdGUsMixNYXRoLnJhbmRvbSgpLCJ0cnVlIixuYXZpZ2F0b3IsCiJsLWtleSIsITEsTWF0aC5hYnMoLTEpLCJ0ZiIsIlooVFREWlRSUiIpO3dpbmRvdy52PXZkLnFuKDQpfSkuY2FsbChQaWV4dXVwaGVoYXBob2hWLFBpZXh1dXBoZWhhcGhvaFYpOwo=
- Protocol
- HTTP/1.1
- Security
- TLS 1.2,
ECDHE_RSA, AES_128_GCM
- Server
-
46.4.39.5
, Germany,
ASN24940
(HETZNER-AS, DE),
- Reverse DNS
- static.5.39.4.46.clients.your-server.de
- Software
-
TornadoServer/4.5.3 /
- Resource Hash
- 480f7a2020234eb7d1f5745fbc8ec7f6535905cdeddda4a8b5d63bf6466c33c5
|