#scamshield{
max-width:900px;
margin:auto;
padding:25px;
background:#f8f8f8;
border-radius:10px;
font-family:Arial,Helvetica,sans-serif;
}
#scamshield textarea{
width:100%;
height:250px;
padding:15px;
font-size:16px;
}
#scamshield button{
margin-top:15px;
background:#b10000;
color:white;
border:none;
padding:14px 30px;
cursor:pointer;
font-size:18px;
border-radius:5px;
}
#results{
margin-top:25px;
padding:20px;
background:white;
border-left:6px solid #b10000;
display:none;
}
.score{
font-size:34px;
font-weight:bold;
}
.high{
color:red;
}
.medium{
color:orange;
}
.low{
color:green;
}
ul{
line-height:1.8em;
}
🛡 Scam Message Analyzer
Paste a suspicious email, text message, Facebook message, WhatsApp conversation, or job offer below.
Risk Assessment
Reasons
function analyzeScam(){
let text=document.getElementById(“message”).value.toLowerCase();
let score=0;
let reasons=[];
const rules=[
[“gift card”,25,”Requests Gift Cards”],
[“bitcoin”,25,”Requests Cryptocurrency”],
[“crypto”,20,”Requests Cryptocurrency”],
[“wire transfer”,25,”Requests Wire Transfer”],
[“western union”,25,”Requests Money Transfer”],
[“urgent”,10,”Creates Urgency”],
[“immediately”,10,”Pressure Tactic”],
[“act now”,10,”Pressure Tactic”],
[“limited time”,8,”Pressure Tactic”],
[“click here”,10,”Suspicious Link Request”],
[“verify your account”,20,”Account Verification Scam”],
[“social security”,20,”Government Impersonation”],
[“irs”,20,”Government Impersonation”],
[“amazon account”,15,”Fake Amazon Alert”],
[“bank account”,15,”Banking Scam”],
[“password”,10,”Credential Request”],
[“remote access”,30,”Remote Access Scam”],
[“teamviewer”,30,”Remote Access Software Mentioned”],
[“anydesk”,30,”Remote Access Software Mentioned”],
[“refund”,10,”Refund Scam”],
[“investment”,15,”Investment Pitch”],
[“guaranteed returns”,25,”Investment Scam”],
[“romance”,10,”Possible Romance Scam”],
[“telegram”,8,”Moves Conversation Off Platform”],
[“whatsapp”,8,”Moves Conversation Off Platform”]
];
rules.forEach(function(rule){
if(text.includes(rule[0])){
score+=rule[1];
reasons.push(rule[2]);
}
});
if(text.match(/https?:\/\//g)){
score+=10;
reasons.push(“Contains Links”);
}
if(text.match(/\$\d+/g)){
score+=8;
reasons.push(“Requests Money”);
}
if(score>100) score=100;
let level=”LOW RISK”;
let css=”low”;
if(score>=70){
level=”HIGH RISK”;
css=”high”;
}
else if(score>=40){
level=”MEDIUM RISK”;
css=”medium”;
}
document.getElementById(“results”).style.display=”block”;
document.getElementById(“score”).innerHTML=
““+score+”% – “+level+”“;
let html=””;
if(reasons.length===0){
html=”
“;
}else{
reasons.forEach(function(r){
html+=”
“;
});
}
document.getElementById(“reasons”).innerHTML=html;
}