Heighten security according to Mozilla Observatory.

This commit is contained in:
daniel 2016-08-28 12:14:04 +02:00
parent edb3b0b59d
commit 5722c96947
5 changed files with 99 additions and 52 deletions

5
.htaccess Normal file
View File

@ -0,0 +1,5 @@
Header set Content-Security-Policy "default-src *; script-src 'self' ajax.googleapis.com; style-src 'self'"
Header set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
Header set X-Frame-Options "deny"
Header set X-XSS-Protection "1; mode=block"
Header set X-Content-Type-Options "nosniff"

29
css/bovender.css Normal file
View File

@ -0,0 +1,29 @@
.no-border {
border: 0;
}
.no-margin {
margin: 0;
}
.margin-right {
margin-right: 1em;
}
.margin-top {
margin-top: 16px;
}
.gravatar {
margin-right: 1em;
}
body {
padding: 18px;
}
iframe {
border: 0;
height: 250px;
width: 95%;
}

View File

@ -13,6 +13,7 @@
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap-theme.min.css" rel="stylesheet">
<link href="css/bovender.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
@ -21,35 +22,36 @@
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body style="padding:18px;">
<body>
<div class="container">
<div class="row">
<div class="col-md-12">
<h1>
<img class="img-rounded pull-left" style="margin-right:1em;" src="https://secure.gravatar.com/avatar/0e25d6dfd8f326c6d2aeae3752c22863" alt="Daniel Kraus">
<img class="img-rounded pull-left gravatar" src="https://secure.gravatar.com/avatar/0e25d6dfd8f326c6d2aeae3752c22863" alt="Daniel Kraus">
Daniel Kraus is (a) Bovender
</h1>
</div>
</div>
<div class="row" style="margin-top:18px; margin-bottom:8px;">
<div class="col-md-12">
<div class="well text-center">
<p style="display:inline;margin-right:1em;">
Find me on
<a class="btn btn-primary" href="https://github.com/bovender">
GitHub
</a>
<a class="btn btn-primary" href="https://www.mediawiki.org/wiki/User:Bovender">
MediaWiki
</a>
<a class="btn btn-primary" href="https://de.linkedin.com/in/krada">
LinkedIn
</a>
<a class="btn btn-primary" href="https://www.researchgate.net/profile/Kraus_Daniel">
ResearchGate
</a>
</p>
</div>
<ul class="nav nav-pills" role="navigation">
<li>
<a href="https://github.com/bovender">
GitHub
</a>
</li>
<li>
<a href="https://www.mediawiki.org/wiki/User:Bovender">
MediaWiki
</a>
</li>
<li>
<a href="https://de.linkedin.com/in/krada">
LinkedIn
</a>
</li>
<li>
<a href="https://www.researchgate.net/profile/Kraus_Daniel">
ResearchGate
</a>
</li>
</ul>
</div>
</div>
<div class="row">
@ -59,8 +61,10 @@
</div>
<p>
I'm interested in energy metabolism. Please see my
<a href="https://www.researchgate.net/profile/Kraus_Daniel">ResearchGate
profile</a> for more information.
<a href="https://www.researchgate.net/profile/Kraus_Daniel">
ResearchGate profile
</a>
for more information.
</p>
<div class="page-header">
@ -74,7 +78,7 @@
<h3 class="panel-title">Daniel's XL Toolbox</h3>
</div>
<div class="panel-body">
<div class="pull-left" style="margin-right:1em;">
<div class="pull-left margin-right">
<img src="img/xltoolbox.png" alt="XL Toolbox">
</div>
<h4>
@ -157,7 +161,7 @@ sudo apt-get install indicator-ip</code></pre>
www.gemeinsam-gegen-armut.org
</a>
</h4>
<div class="pull-left" style="margin-right:1em;">
<div class="pull-left margin-right">
<img src="img/ggap.png" alt="Gemeinsam gegen Armut auf den Philippinen (GGAP) e.V.">
</div>
<p>
@ -288,9 +292,9 @@ sudo apt-get install create-changelog</code></pre>
um anonymisierte Besucherstatistiken zu erfassen. <a
href="piwik/">Hier geht's zur Statistik</a>.
</p>
<iframe style="border: 0; height: 250px; width: 95%;"
src="//www.bovender.de/piwik/index.php?module=CoreAdminHome&action=optOut&idsite=1&language=de"></iframe>
<p style="margin-top:16px;">
<iframe src="https://www.bovender.de/piwik/index.php?module=CoreAdminHome&action=optOut">
</iframe>
<p class="margin-top">
<a href="skandal.html" class="btn btn-default">
Skandal der Woche
</a>
@ -299,13 +303,13 @@ sudo apt-get install create-changelog</code></pre>
</div>
</div>
<div class="row" style="margin-top: 18px">
<div class="row margin-top">
<div class="col-md-12 text-center text-muted">
<p style="margin:0">
<p class="no-margin">
<small>
This microsite was hand-coded using <a
href="http://www.vim.org">Vim</a> and <a
href="www.getbootstrap.com">Bootstrap</a>.
This microsite was hand-coded using
<a href="http://www.vim.org">Vim</a> and
<a href="//www.getbootstrap.com">Bootstrap</a>.
</small>
</p>
<address>
@ -321,25 +325,13 @@ sudo apt-get install create-changelog</code></pre>
</div>
</div>
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//www.bovender.de/piwik/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', 1]);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<noscript><p><img src="//www.bovender.de/piwik/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->
<script src="js/piwik.js"></script>
<noscript><p><img src="//www.bovender.de/piwik/piwik.php?idsite=1" class="no-border" alt="" /></p></noscript>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://code.jquery.com/jquery-1.12.4.min.js"
integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ="
crossorigin="anonymous"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
</body>

10
js/piwik.js Normal file
View File

@ -0,0 +1,10 @@
var _paq = _paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//www.bovender.de/piwik/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', 1]);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();

View File

@ -56,6 +56,17 @@
<td>25.01.-31.01.16</td>
<td>In Berlin gab es keinen toten Flüchtling.</td>
</tr>
<tr>
<td>5</td>
<td>01.02.-07.02.16</td>
<td>Seehofer traf Putin.</td>
</tr>
<tr>
<td>6</td>
<td>08.02.-14.02.16</td>
<td>Seehofer sah eine Herrschaft des Unrechts, aber nicht
in Rußland.</td>
</tr>
</div>
</div>
</div>