This repository has been archived by the owner on Apr 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c9c8ffd
commit bf6c6ec
Showing
1 changed file
with
2 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,11 @@ | ||
/* var allowedDomains = [ | ||
"https://platformerdotio.co", | ||
"https://lightspeedsystems.onrender.com", | ||
"https://enrichingstudents.onrender.com", | ||
"https://platformerio.pages.dev", | ||
"https://arizona-tea.netlify.app", | ||
"https://nates-cdn.pages.dev", | ||
"https://platformer-io-7az7.onrender.com", | ||
"https://schmeckles-forest.pages.dev", | ||
"https://enrichingstudents.vercel.app", | ||
"https://precious-snickerdoodle-03da77.netlify.app", | ||
"https://mellifluous-muffin-002487.netlify.app", | ||
"https://extraordinary-faun-286888.netlify.app", | ||
"https://main--vocal-tapioca-5fc81e.netlify.app", | ||
"https://matheducation.online", | ||
"https://trust-45p4dpmo0-dgademon.vercel.app", | ||
"https://extramathwork.netlify.app", | ||
"https://imaginemathh.netlify.app", | ||
"https://scienceteststudies.netlify.app", | ||
"https://eduphoria.pages.dev", | ||
"https://homeworkbyexoiscool.netlify.app", | ||
"https://main--candid-sawine-af24ba.netlify.app", | ||
"https://platformer-io-9h1t.onrender.com", | ||
"https://platformer-dearrgames.netlify.app", | ||
"https://yoo-im-asending.netlify.app", | ||
"https://stop-it.netlify.app", | ||
"https://xello.pages.dev", | ||
"https://xello.onrender.com", | ||
"https://dontleaveplatformer.netlify.app", | ||
"https://platformerio.tomahawkchurch.org", | ||
"https://masteryconnect.tecteach.net", | ||
"https://geometry.kooh.cl", | ||
"" | ||
]; | ||
var allowedDomains = window.location.hostname; | ||
|
||
var referringUrl = document.referrer; | ||
|
||
var isAllowedDomain = allowedDomains.some(function (domain) { | ||
var isAllowedDomain = allowedDomain.some(function (domain) { | ||
return referringUrl.indexOf(domain) !== -1; | ||
}); | ||
|
||
if (!isAllowedDomain) { | ||
window.location.href = "https://helloskids.pages.dev"; | ||
}*/ | ||
|
||
var assetDomain = window.location.hostname; | ||
|
||
var referringURL = document.referrer; | ||
var referringDomain = new URL(referringURL).hostname; | ||
|
||
if (referringDomain !== assetDomain) { | ||
window.location.href = 'https://helloskids.pages.dev'; | ||
} |