Das weiß eine Webseite über den Erstbesucher
Bist du das erste Mal hier?
Oder bist du das erste Mal auf irgendeiner Seite?
Ohne das du hier irgendwelche Angaben gemacht hast weiß ich das schon über dich .
Zum Download-archiv
Kommentar abgeben zu diesen Beitrag/Code ?Zum Download-archiv
Dann hier klicken
Der hier verwendete Code
<?php
if ( (! empty($_SERVER['REQUEST_SCHEME']) && $_SERVER['REQUEST_SCHEME'] == 'https') ||
(! empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ||
(! empty($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == '443') ) {
// ok, all good
} else {
$location = 'https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
header('HTTP/1.1 301 Moved Permanently');
header('Location: '.$location);
exit;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Stop Being Paranoid</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<style>
body {
display: flex;
min-height: 100vh;
flex-direction: column;
}
main {
flex: 1 0 auto;
}
.headercolor {
background-color: #63A075;
}
.maincolor {
background-color: #9CD7DE;
}
.footercolor {
background-color: #1C70BE;
}