You can check the user what the host he use!
npm install host-checker@latest
// Check host
if (IsHosting("replit")) {
console.log("This user is using Replit.");
} else {
console.log("This user is NOT using Replit.");
}
if (IsHosting("github")) {
console.log("This user is using GitHub.");
} else {
console.log("This user is NOT using Github");
}
if (IsHosting("glitch")) {
console.log("This user is using Glitch.");
} else {
console.log("This user is NOT using Glitch.");
}
// See Host
console.log(UsingHosting()) // if user is not using a hosting. it return null.
Feel free to pull request for fix something or add more host.
(Optional but recommended) Please add Prettier code formatter for neatness of this code!
license : MIT