Skip to content

Commit 36449bf

Browse files
committed
Site is 'Dangerous' on Chrome, Redirect Updates
Chrome is flagging my site as potential malware. First attempt at a fix, using javascript directly for a reroute, rather than dynamically generated meta tags. Also added meta tags that are generated on the fly to index.htm.
1 parent bd6f4ad commit 36449bf

File tree

4 files changed

+48
-10
lines changed

4 files changed

+48
-10
lines changed

Public/404.html

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,9 @@
2424
let basePath = window.location.pathname;
2525
basePath = basePath.split('/');
2626
basePath = basePath.pop();
27-
let redirectUrl = '/index.htm?redirect=' + encodeURIComponent(basePath + window.location.search);
27+
let redirectUrl = '/index.htm?redirect=' + basePath;
2828

29-
let metaRedirect = document.createElement('meta');
30-
metaRedirect.setAttribute('http-equiv', 'refresh');
31-
metaRedirect.setAttribute('content', '0;url=' + redirectUrl);
32-
document.head.appendChild(metaRedirect);
29+
window.location.replace( redirectUrl );
3330

3431
// -- -- --
3532

Public/index.htm

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,27 @@
1919
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0">
2020
<meta name='theme-color' content='#000822'>
2121
<meta name="description" content="ProcStack's GitHub Portfolio">
22+
<meta name="keywords" content="ProcStack, Kevin Edzenga, Trancor, Technical Artist, Technical Director, Creative Technologist, 3d modeling, 3d animation, 3d rendering, 3d texturing, 3d lighting, 3d shading, 3d scripting, 3d programming, 3d development, 3d art, 3d graphics, 3d visual effects">
23+
<meta name="author" content="Kevin Edzenga">
24+
<meta name="robots" content="index, follow">
25+
<meta name="revisit-after" content="7 days">
26+
<meta name="googlebot" content="index, follow">
27+
<meta name="fragment" content="!">
28+
<meta name="google" content="nositelinkssearchbox">
29+
<meta name="google" content="notranslate">
30+
<meta name="google" content="nositelinkssearchbox">
31+
<meta name="og:title" content="ProcStack's GitHub Portfolio">
32+
<meta name="og:description" content="ProcStack's GitHub Portfolio">
33+
<meta name="og:image" content="https://procstack.github.io/images/ProcStack_th.jpg">
34+
<meta name="og:url" content="https://procstack.github.io">
35+
<meta name="twitter:card" content="summary_large_image">
36+
<meta name="twitter:title" content="ProcStack's GitHub Portfolio">
37+
<meta name="twitter:description" content="ProcStack's GitHub Portfolio">
38+
<meta name="twitter:image" content="https://procstack.github.io/images/ProcStack_th.jpg">
39+
<meta name="twitter:url" content="https://procstack.github.io">
40+
<meta name="twitter:domain" content="procstack.github.io">
41+
<meta name="twitter:label1" content="Written by">
42+
<meta name="twitter:data1" content="Kevin Edzenga">
2243
</head>
2344

2445
<!-- -- -- -- -->

docs/404.html

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,9 @@
2424
let basePath = window.location.pathname;
2525
basePath = basePath.split('/');
2626
basePath = basePath.pop();
27-
let redirectUrl = '/index.htm?redirect=' + encodeURIComponent(basePath + window.location.search);
27+
let redirectUrl = '/index.htm?redirect=' + basePath;
2828

29-
let metaRedirect = document.createElement('meta');
30-
metaRedirect.setAttribute('http-equiv', 'refresh');
31-
metaRedirect.setAttribute('content', '0;url=' + redirectUrl);
32-
document.head.appendChild(metaRedirect);
29+
window.location.replace( redirectUrl );
3330

3431
// -- -- --
3532

docs/index.htm

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,29 @@
1919
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0">
2020
<meta name='theme-color' content='#000822'>
2121
<meta name="description" content="ProcStack's GitHub Portfolio">
22+
<meta name="keywords" content="ProcStack, Kevin Edzenga, Trancor, Technical Artist, Technical Director, Creative Technologist, 3d modeling, 3d animation, 3d rendering, 3d texturing, 3d lighting, 3d shading, 3d scripting, 3d programming, 3d development, 3d art, 3d graphics, 3d visual effects">
23+
<meta name="author" content="Kevin Edzenga">
24+
<meta name="robots" content="index, follow">
25+
<meta name="revisit-after" content="7 days">
26+
<meta name="googlebot" content="index, follow">
27+
<meta name="fragment" content="!">
28+
<meta name="google" content="nositelinkssearchbox">
29+
<meta name="google" content="notranslate">
30+
<meta name="google" content="nositelinkssearchbox">
31+
<meta name="og:title" content="ProcStack's GitHub Portfolio">
32+
<meta name="og:description" content="ProcStack's GitHub Portfolio">
33+
<meta name="og:image" content="https://procstack.github.io/images/ProcStack_th.jpg">
34+
<meta name="og:url" content="https://procstack.github.io">
35+
<meta name="twitter:card" content="summary_large_image">
36+
<meta name="twitter:title" content="ProcStack's GitHub Portfolio">
37+
<meta name="twitter:description" content="ProcStack's GitHub Portfolio">
38+
<meta name="twitter:image" content="https://procstack.github.io/images/ProcStack_th.jpg">
39+
<meta name="twitter:url" content="https://procstack.github.io">
40+
<meta name="twitter:domain" content="procstack.github.io">
41+
<meta name="twitter:label1" content="Written by">
42+
<meta name="twitter:data1" content="Kevin Edzenga">
43+
44+
2245
</head>
2346

2447
<!-- -- -- -- -->

0 commit comments

Comments
 (0)