Spaces:
Running
Running
Add 2 files
Browse files- index.html +34 -16
index.html
CHANGED
|
@@ -859,23 +859,41 @@
|
|
| 859 |
// Check for common TLD typos
|
| 860 |
const tld = domain.split('.').pop();
|
| 861 |
const commonTldTypos = {
|
| 862 |
-
|
| 863 |
-
|
| 864 |
-
|
| 865 |
-
|
| 866 |
-
|
| 867 |
-
|
| 868 |
-
'cm': 'com',
|
| 869 |
-
'comm': 'com',
|
| 870 |
-
'netl': 'net',
|
| 871 |
-
'ner': 'net',
|
| 872 |
-
'orgn': 'org',
|
| 873 |
-
'og': 'org',
|
| 874 |
-
'edu.': 'edu',
|
| 875 |
-
'gouv': 'gov',
|
| 876 |
-
'gob': 'gov'
|
| 877 |
|
| 878 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 879 |
};
|
| 880 |
|
| 881 |
if (commonTldTypos[tld]) {
|
|
|
|
| 859 |
// Check for common TLD typos
|
| 860 |
const tld = domain.split('.').pop();
|
| 861 |
const commonTldTypos = {
|
| 862 |
+
// Common "com" typos (keyboard proximity, missing letters, repeats)
|
| 863 |
+
'con': 'com', 'cpm': 'com', 'cim': 'com', 'col': 'com', 'cok': 'com',
|
| 864 |
+
'co': 'com', 'cm': 'com', 'comm': 'com', 'vom': 'com', 'ocm': 'com',
|
| 865 |
+
'cmo': 'com', 'comn': 'com', 'coom': 'com', 'commm': 'com', 'c0m': 'com',
|
| 866 |
+
'čom': 'com', // Accented character typo
|
| 867 |
+
'kom': 'com', // Phonetic error (non-English keyboards)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 868 |
|
| 869 |
+
// Common "net" typos
|
| 870 |
+
'netl': 'net', 'ner': 'net', 'nte': 'net', 'ent': 'net', 'nett': 'net',
|
| 871 |
+
'nettt': 'net', 'n3t': 'net', 'nét': 'net', // Accented typo
|
| 872 |
+
|
| 873 |
+
// Common "org" typos
|
| 874 |
+
'orgn': 'org', 'og': 'org', 'ogr': 'org', 'or': 'org', 'rg': 'org',
|
| 875 |
+
'orgi': 'org', 'orq': 'org', '0rg': 'org', 'örg': 'org', // Accented/QWERTY errors
|
| 876 |
+
|
| 877 |
+
// Common "gov" typos
|
| 878 |
+
'gouv': 'gov', 'gob': 'gov', 'gv': 'gov', 'govv': 'gov', 'gove': 'gov',
|
| 879 |
+
'goev': 'gov', 'g0v': 'gov',
|
| 880 |
+
|
| 881 |
+
// Common "edu" typos
|
| 882 |
+
'edu.': 'edu', 'eddu': 'edu', 'ed': 'edu', 'eduu': 'edu', '3du': 'edu',
|
| 883 |
+
|
| 884 |
+
// Other generic TLDs
|
| 885 |
+
'intl': 'int', 'itn': 'int', 'inr': 'int', 'iint': 'int', // .int typos
|
| 886 |
+
'mil.': 'mil', 'mll': 'mil', 'miil': 'mil', // .mil typos
|
| 887 |
+
'biz': 'biz', 'bizz': 'biz', 'bzi': 'biz', // .biz typos (prevents overcorrection)
|
| 888 |
+
'infoo': 'info', 'infor': 'info', 'infi': 'info', // .info typos
|
| 889 |
+
|
| 890 |
+
// Trailing characters (e.g., accidental punctuation)
|
| 891 |
+
'org.': 'org', 'com.': 'com', 'net.': 'net', 'edu..': 'edu',
|
| 892 |
+
|
| 893 |
+
// Country TLD overcorrections (use with caution!)
|
| 894 |
+
'uk': 'com', // Common mistake for .uk vs .com
|
| 895 |
+
'cm': 'com', // Cameroon’s TLD often mistyped as .com
|
| 896 |
+
'om': 'com', // Oman’s TLD mistyped as .com
|
| 897 |
};
|
| 898 |
|
| 899 |
if (commonTldTypos[tld]) {
|