diff --git a/src/App.vue b/src/App.vue index 0dbdd02..313a0e7 100644 --- a/src/App.vue +++ b/src/App.vue @@ -77,10 +77,9 @@ function getTextClass() { return "text-xl"; } -onBeforeMount(async () => { - await factory.value.init(); +onBeforeMount(() => { + factory.value.init(); newDomain(); - state.value = State.Ready; }); onMounted(() => { setTimeout(() => { diff --git a/src/data/blacklist.txt b/src/data/blacklist.txt deleted file mode 100644 index a92b765..0000000 --- a/src/data/blacklist.txt +++ /dev/null @@ -1,1286 +0,0 @@ -aaa -aarp -abb -abbott -abbvie -abc -able -abogado -abudhabi -ac -academy -accenture -accountant -accountants -aco -actor -ad -ads -adult -ae -aeg -aero -aetna -af -afl -africa -ag -agakhan -agency -ai -aig -airbus -airforce -airtel -akdn -al -alibaba -alipay -allfinanz -allstate -ally -alsace -alstom -am -amazon -americanexpress -americanfamily -amex -amfam -amica -amsterdam -analytics -android -anquan -anz -ao -aol -apartments -app -apple -aq -aquarelle -ar -arab -aramco -archi -army -arpa -art -arte -as -asda -asia -associates -at -athleta -attorney -au -auction -audi -audible -audio -auspost -author -auto -autos -aw -aws -ax -axa -az -azure -ba -baby -baidu -banamex -band -bank -bar -barcelona -barclaycard -barclays -barefoot -bargains -baseball -basketball -bauhaus -bayern -bb -bbc -bbt -bbva -bcg -bcn -bd -be -beats -beauty -beer -berlin -best -bestbuy -bet -bf -bg -bh -bharti -bi -bible -bid -bike -bing -bingo -bio -biz -bj -black -blackfriday -blockbuster -blog -bloomberg -blue -bm -bms -bmw -bn -bnpparibas -bo -boats -boehringer -bofa -bom -bond -boo -book -booking -bosch -bostik -boston -bot -boutique -box -br -bradesco -bridgestone -broadway -broker -brother -brussels -bs -bt -build -builders -business -buy -buzz -bv -bw -by -bz -bzh -ca -cab -cafe -cal -call -calvinklein -cam -camera -camp -canon -capetown -capital -capitalone -car -caravan -cards -care -career -careers -cars -casa -case -cash -casino -cat -catering -catholic -cba -cbn -cbre -cc -cd -center -ceo -cern -cf -cfa -cfd -cg -ch -chanel -channel -charity -chase -chat -cheap -chintai -christmas -chrome -church -ci -cipriani -circle -cisco -citadel -citi -citic -city -ck -cl -claims -cleaning -click -clinic -clinique -clothing -cloud -club -clubmed -cm -cn -co -coach -codes -coffee -college -cologne -com -commbank -community -company -compare -computer -comsec -condos -construction -consulting -contact -contractors -cooking -cool -coop -corsica -country -coupon -coupons -courses -cpa -cr -credit -creditcard -creditunion -cricket -crown -crs -cruise -cruises -cu -cuisinella -cv -cw -cx -cy -cymru -cyou -cz -dad -dance -data -date -dating -datsun -day -dclk -dds -de -deal -dealer -deals -degree -delivery -dell -deloitte -delta -democrat -dental -dentist -desi -design -dev -dhl -diamonds -diet -digital -direct -directory -discount -discover -dish -diy -dj -dk -dm -dnp -do -docs -doctor -dog -domains -dot -download -drive -dtv -dubai -dupont -durban -dvag -dvr -dz -earth -eat -ec -eco -edeka -edu -education -ee -eg -email -emerck -energy -engineer -engineering -enterprises -epson -equipment -er -ericsson -erni -es -esq -estate -et -eu -eurovision -eus -events -exchange -expert -exposed -express -extraspace -fage -fail -fairwinds -faith -family -fan -fans -farm -farmers -fashion -fast -fedex -feedback -ferrari -ferrero -fi -fidelity -fido -film -final -finance -financial -fire -firestone -firmdale -fish -fishing -fit -fitness -fj -fk -flickr -flights -flir -florist -flowers -fly -fm -fo -foo -food -football -ford -forex -forsale -forum -foundation -fox -fr -free -fresenius -frl -frogans -frontier -ftr -fujitsu -fun -fund -furniture -futbol -fyi -ga -gal -gallery -gallo -gallup -game -games -gap -garden -gay -gb -gbiz -gd -gdn -ge -gea -gent -genting -george -gf -gg -ggee -gh -gi -gift -gifts -gives -giving -gl -glass -gle -global -globo -gm -gmail -gmbh -gmo -gmx -gn -godaddy -gold -goldpoint -golf -goodyear -goog -google -gop -got -gov -gp -gq -gr -grainger -graphics -gratis -green -gripe -grocery -group -gs -gt -gu -gucci -guge -guide -guitars -guru -gw -gy -hair -hamburg -hangout -haus -hbo -hdfc -hdfcbank -health -healthcare -help -helsinki -here -hermes -hiphop -hisamitsu -hitachi -hiv -hk -hkt -hm -hn -hockey -holdings -holiday -homedepot -homegoods -homes -homesense -honda -horse -hospital -host -hosting -hot -hotels -hotmail -house -how -hr -hsbc -ht -hu -hughes -hyatt -hyundai -ibm -icbc -ice -icu -id -ie -ieee -ifm -ikano -il -im -imamat -imdb -immo -immobilien -in -inc -industries -infiniti -info -ing -ink -institute -insurance -insure -int -international -intuit -investments -io -ipiranga -iq -ir -irish -is -ismaili -ist -istanbul -it -itau -itv -jaguar -java -jcb -je -jeep -jetzt -jewelry -jio -jll -jm -jmp -jnj -jo -jobs -joburg -jot -joy -jp -jpmorgan -jprs -juegos -juniper -kaufen -kddi -ke -kerryhotels -kerryproperties -kfh -kg -kh -ki -kia -kids -kim -kindle -kitchen -kiwi -km -kn -koeln -komatsu -kosher -kp -kpmg -kpn -kr -krd -kred -kuokgroup -kw -ky -kyoto -kz -la -lacaixa -lamborghini -lamer -land -landrover -lanxess -lasalle -lat -latino -latrobe -law -lawyer -lb -lc -lds -lease -leclerc -lefrak -legal -lego -lexus -lgbt -li -lidl -life -lifeinsurance -lifestyle -lighting -like -lilly -limited -limo -lincoln -link -live -living -lk -llc -llp -loan -loans -locker -locus -lol -london -lotte -lotto -love -lpl -lplfinancial -lr -ls -lt -ltd -ltda -lu -lundbeck -luxe -luxury -lv -ly -ma -madrid -maif -maison -makeup -man -management -mango -map -market -marketing -markets -marriott -marshalls -mattel -mba -mc -mckinsey -md -me -med -media -meet -melbourne -meme -memorial -men -menu -merck -merckmsd -mg -mh -miami -microsoft -mil -mini -mint -mit -mitsubishi -mk -ml -mlb -mls -mm -mma -mn -mo -mobi -mobile -moda -moe -moi -mom -monash -money -monster -mormon -mortgage -moscow -moto -motorcycles -mov -movie -mp -mq -mr -ms -msd -mt -mtn -mtr -mu -museum -music -mv -mw -mx -my -mz -na -nab -nagoya -name -navy -nba -nc -ne -nec -net -netbank -netflix -network -neustar -new -news -next -nextdirect -nexus -nf -nfl -ng -ngo -nhk -ni -nico -nike -nikon -ninja -nissan -nissay -nl -no -nokia -norton -now -nowruz -nowtv -np -nr -nra -nrw -ntt -nu -nyc -nz -obi -observer -office -okinawa -olayan -olayangroup -ollo -om -omega -one -ong -onl -online -ooo -open -oracle -orange -org -organic -origins -osaka -otsuka -ott -ovh -pa -page -panasonic -paris -pars -partners -parts -party -pay -pccw -pe -pet -pf -pfizer -pg -ph -pharmacy -phd -philips -phone -photo -photography -photos -physio -pics -pictet -pictures -pid -pin -ping -pink -pioneer -pizza -pk -pl -place -play -playstation -plumbing -plus -pm -pn -pnc -pohl -poker -politie -porn -post -pr -praxi -press -prime -pro -prod -productions -prof -progressive -promo -properties -property -protection -pru -prudential -ps -pt -pub -pw -pwc -py -qa -qpon -quebec -quest -racing -radio -re -read -realestate -realtor -realty -recipes -red -redumbrella -rehab -reise -reisen -reit -reliance -ren -rent -rentals -repair -report -republican -rest -restaurant -review -reviews -rexroth -rich -richardli -ricoh -ril -rio -rip -ro -rocks -rodeo -rogers -room -rs -rsvp -ru -rugby -ruhr -run -rw -rwe -ryukyu -sa -saarland -safe -safety -sakura -sale -salon -samsclub -samsung -sandvik -sandvikcoromant -sanofi -sap -sarl -sas -save -saxo -sb -sbi -sbs -sc -scb -schaeffler -schmidt -scholarships -school -schule -schwarz -science -scot -sd -se -search -seat -secure -security -seek -select -sener -services -seven -sew -sex -sexy -sfr -sg -sh -shangrila -sharp -shell -shia -shiksha -shoes -shop -shopping -shouji -show -si -silk -sina -singles -site -sj -sk -ski -skin -sky -skype -sl -sling -sm -smart -smile -sn -sncf -so -soccer -social -softbank -software -sohu -solar -solutions -song -sony -soy -spa -space -sport -spot -sr -srl -ss -st -stada -staples -star -statebank -statefarm -stc -stcgroup -stockholm -storage -store -stream -studio -study -style -su -sucks -supplies -supply -support -surf -surgery -suzuki -sv -swatch -swiss -sx -sy -sydney -systems -sz -tab -taipei -talk -taobao -target -tatamotors -tatar -tattoo -tax -taxi -tc -tci -td -tdk -team -tech -technology -tel -temasek -tennis -teva -tf -tg -th -thd -theater -theatre -tiaa -tickets -tienda -tips -tires -tirol -tj -tjmaxx -tjx -tk -tkmaxx -tl -tm -tmall -tn -to -today -tokyo -tools -top -toray -toshiba -total -tours -town -toyota -toys -tr -trade -trading -training -travel -travelers -travelersinsurance -trust -trv -tt -tube -tui -tunes -tushu -tv -tvs -tw -tz -ua -ubank -ubs -ug -uk -unicom -university -uno -uol -ups -us -uy -uz -va -vacations -vana -vanguard -vc -ve -vegas -ventures -verisign -versicherung -vet -vg -vi -viajes -video -vig -viking -villas -vin -vip -virgin -visa -vision -viva -vivo -vlaanderen -vn -vodka -volvo -vote -voting -voto -voyage -vu -wales -walmart -walter -wang -wanggou -watch -watches -weather -weatherchannel -webcam -weber -website -wed -wedding -weibo -weir -wf -whoswho -wien -wiki -williamhill -win -windows -wine -winners -wme -woodside -work -works -world -wow -ws -wtc -wtf -xbox -xerox -xihuan -xin -xxx -xyz -yachts -yahoo -yamaxun -yandex -ye -yodobashi -yoga -yokohama -you -youtube -yt -yun -za -zappos -zara -zero -zip -zm -zone -zuerich -zw diff --git a/src/data/tld.txt b/src/data/tld.txt new file mode 100644 index 0000000..b6c1f6d --- /dev/null +++ b/src/data/tld.txt @@ -0,0 +1,2598 @@ +abogado +abudhabi +ac +academy +accountant +accountants +actor +ad +adult +ae +ac.ae +co.ae +gov.ae +mil.ae +net.ae +org.ae +sch.ae +aero +cargo.aero +charter.aero +af +com.af +edu.af +gov.af +net.af +org.af +africa +ag +co.ag +com.ag +net.ag +nom.ag +org.ag +agency +ai +com.ai +net.ai +off.ai +org.ai +airforce +al +com.al +edu.al +net.al +org.al +alsace +am +co.am +com.am +net.am +north.am +org.am +radio.am +south.am +amsterdam +ao +co.ao +edu.ao +it.ao +org.ao +apartments +app +aq +ar +com.ar +int.ar +net.ar +org.ar +archi +army +art +as +asia +associates +at +co.at +or.at +attorney +au +asn.au +com.au +id.au +info.au +net.au +org.au +auction +audio +auto +autos +aw +com.aw +ax +az +biz.az +co.az +com.az +edu.az +gov.az +info.az +int.az +mil.az +name.az +net.az +org.az +pp.az +pro.az +ba +co.ba +com.ba +baby +band +bank +bar +barcelona +bargains +basketball +bayern +bb +co.bb +com.bb +net.bb +org.bb +bd +ac.bd +com.bd +net.bd +org.bd +be +beauty +beer +berlin +best +bet +bf +bg +bh +biz.bh +cc.bh +com.bh +edu.bh +me.bh +name.bh +net.bh +org.bh +bi +co.bi +com.bi +edu.bi +info.bi +mo.bi +net.bi +or.bi +org.bi +bible +bid +bike +bingo +bio +biz +auz.biz +bj +com.bj +black +blackfriday +blog +blue +bm +com.bm +net.bm +org.bm +bn +com.bn +net.bn +org.bn +bo +com.bo +net.bo +org.bo +tv.bo +boats +bond +boo +boston +bot +boutique +abc.br +adm.br +adv.br +agr.br +am.br +aparecida.br +app.br +arq.br +art.br +ato.br +belem.br +bhz.br +bib.br +bio.br +blog.br +bmd.br +boavista.br +bsb.br +campinas.br +caxias.br +cim.br +cng.br +cnt.br +com.br +coop.br +curitiba.br +des.br +det.br +dev.br +ecn.br +eco.br +edu.br +emp.br +enf.br +eng.br +esp.br +etc.br +eti.br +far.br +flog.br +floripa.br +fm.br +fnd.br +fortal.br +fot.br +foz.br +fst.br +g12.br +geo.br +ggf.br +gov.br +gru.br +imb.br +ind.br +inf.br +jampa.br +jor.br +lel.br +log.br +macapa.br +maceio.br +manaus.br +mat.br +med.br +mil.br +mus.br +natal.br +net.br +nom.br +not.br +ntr.br +odo.br +org.br +palmas.br +poa.br +ppg.br +pro.br +psc.br +psi.br +qsl.br +radio.br +rec.br +recife.br +rep.br +rio.br +salvador.br +seg.br +sjc.br +slg.br +srv.br +taxi.br +tec.br +teo.br +tmp.br +trd.br +tur.br +tv.br +vet.br +vix.br +vlog.br +wiki.br +zlg.br +broker +brussels +bs +com.bs +net.bs +org.bs +bt +com.bt +org.bt +build +builders +business +buzz +bw +ac.bw +co.bw +net.bw +org.bw +by +com.by +minsk.by +net.by +bz +co.bz +com.bz +net.bz +org.bz +za.bz +bzh +ca +cab +cafe +cam +camera +camp +capetown +capital +car +cards +care +career +careers +cars +casa +case +cash +casino +cat +catering +cc +cd +com.cd +net.cd +org.cd +center +ceo +cf +cfd +cg +ch +channel +charity +chat +cheap +christmas +church +ci +ac.ci +co.ci +com.ci +ed.ci +edu.ci +go.ci +in.ci +int.ci +net.ci +nom.ci +or.ci +org.ci +city +biz.ck +co.ck +edu.ck +gen.ck +gov.ck +info.ck +net.ck +org.ck +cl +claims +cleaning +click +clinic +clothing +cloud +club +cm +co.cm +com.cm +net.cm +cn +ac.cn +ah.cn +bj.cn +com.cn +cq.cn +fj.cn +gd.cn +gs.cn +gx.cn +gz.cn +ha.cn +hb.cn +he.cn +hi.cn +hk.cn +hl.cn +hn.cn +jl.cn +js.cn +jx.cn +ln.cn +mo.cn +net.cn +nm.cn +nx.cn +org.cn +qh.cn +sc.cn +sd.cn +sh.cn +sn.cn +sx.cn +tj.cn +tw.cn +xj.cn +xz.cn +yn.cn +zj.cn +co +com.co +net.co +nom.co +coach +codes +coffee +college +cologne +com +ae.com +africa.com +br.com +cn.com +co.com +de.com +eu.com +gr.com +hk.com +hu.com +it.com +jpn.com +kr.com +mex.com +no.com +nv.com +qc.com +ru.com +sa.com +se.com +uk.com +us.com +za.com +community +company +compare +computer +condos +construction +consulting +contact +contractors +cooking +cool +coop +corsica +country +coupons +courses +cr +co.cr +ed.cr +fi.cr +go.cr +or.cr +sa.cr +credit +creditcard +creditunion +cricket +cruises +cu +com.cu +cv +com.cv +edu.cv +int.cv +net.cv +nome.cv +org.cv +publ.cv +cw +com.cw +net.cw +cx +cy +ac.cy +biz.cy +com.cy +ekloges.cy +ltd.cy +name.cy +net.cy +org.cy +parliament.cy +press.cy +pro.cy +tm.cy +cymru +cyou +cz +co.cz +dad +dance +date +dating +day +de +co.de +com.de +deal +dealer +deals +degree +delivery +democrat +dental +dentist +desi +design +dev +diamonds +diet +digital +direct +directory +discount +diy +dj +dk +biz.dk +co.dk +dm +co.dm +com.dm +net.dm +org.dm +do +art.do +com.do +net.do +org.do +sld.do +web.do +doctor +dog +domains +download +durban +dz +com.dz +earth +ec +com.ec +fin.ec +info.ec +med.ec +net.ec +org.ec +pro.ec +eco +edu +education +ee +co.ee +com.ee +fie.ee +med.ee +pri.ee +eg +com.eg +edu.eg +eun.eg +gov.eg +info.eg +name.eg +net.eg +org.eg +tv.eg +email +energy +engineer +engineering +enterprises +equipment +es +com.es +edu.es +gob.es +nom.es +org.es +esq +estate +et +biz.et +com.et +info.et +name.et +net.et +org.et +eu +eus +events +exchange +expert +exposed +express +fail +faith +family +fan +fans +farm +fashion +fast +feedback +fi +film +finance +financial +fish +fishing +fit +fitness +fj +ac.fj +biz.fj +com.fj +info.fj +name.fj +net.fj +org.fj +pro.fj +co.fk +flights +florist +flowers +fm +radio.fm +fo +foo +food +football +forex +forsale +forum +foundation +fr +aeroport.fr +asso.fr +avocat.fr +chambagri.fr +com.fr +gouv.fr +medecin.fr +nom.fr +notaires.fr +pharmacien.fr +port.fr +prd.fr +presse.fr +tm.fr +veterinaire.fr +free +frl +fun +fund +furniture +futbol +fyi +ga +gal +gallery +game +games +garden +gay +gd +gdn +ge +com.ge +edu.ge +gov.ge +mil.ge +net.ge +org.ge +pvt.ge +gent +gf +gg +co.gg +net.gg +org.gg +gh +com.gh +edu.gh +org.gh +gi +com.gi +gov.gi +ltd.gi +org.gi +gift +gifts +gives +giving +gl +co.gl +com.gl +edu.gl +net.gl +org.gl +glass +global +gm +gmbh +gn +com.gn +gov.gn +net.gn +org.gn +gold +golf +gop +gp +com.gp +mobi.gp +net.gp +org.gp +gq +gr +com.gr +edu.gr +net.gr +org.gr +graphics +gratis +green +gripe +group +gs +gt +com.gt +ind.gt +net.gt +org.gt +gu +com.gu +guide +guitars +guru +gw +gy +co.gy +com.gy +net.gy +hair +hamburg +haus +health +healthcare +help +hiphop +hiv +hk +com.hk +edu.hk +gov.hk +idv.hk +inc.hk +ltd.hk +net.hk +org.hk +hm +hn +com.hn +edu.hn +net.hn +org.hn +hockey +holdings +holiday +homes +horse +hospital +host +hosting +hot +house +how +hr +com.hr +ht +adult.ht +art.ht +asso.ht +com.ht +edu.ht +firm.ht +info.ht +net.ht +org.ht +perso.ht +pol.ht +pro.ht +rel.ht +shop.ht +hu +2000.hu +agrar.hu +bolt.hu +casino.hu +city.hu +co.hu +erotica.hu +erotika.hu +film.hu +forum.hu +games.hu +hotel.hu +info.hu +ingatlan.hu +jogasz.hu +konyvelo.hu +lakas.hu +media.hu +news.hu +org.hu +priv.hu +reklam.hu +sex.hu +shop.hu +sport.hu +suli.hu +szex.hu +tm.hu +tozsde.hu +utazas.hu +video.hu +icu +id +biz.id +co.id +my.id +or.id +web.id +ie +ac.il +co.il +muni.il +net.il +org.il +im +ac.im +co.im +com.im +ltd.co.im +net.im +org.im +plc.co.im +immo +immobilien +in +5g.in +6g.in +ahmdabad.in +ai.in +am.in +bihar.in +biz.in +business.in +ca.in +cn.in +co.in +com.in +coop.in +cs.in +delhi.in +dr.in +er.in +firm.in +gen.in +gujarat.in +ind.in +info.in +int.in +internet.in +io.in +me.in +net.in +org.in +pg.in +post.in +pro.in +travel.in +tv.in +uk.in +up.in +us.in +inc +industries +info +auz.info +ing +ink +institute +insurance +insure +international +investments +io +iq +com.iq +ir +co.ir +irish +is +ist +istanbul +it +abr.it +abruzzo.it +ag.it +agrigento.it +al.it +alessandria.it +altoadige.it +an.it +ancona.it +andriabarlettatrani.it +andriatranibarletta.it +ao.it +aosta.it +aoste.it +ap.it +aq.it +aquila.it +ar.it +arezzo.it +ascolipiceno.it +asti.it +at.it +av.it +avellino.it +ba.it +balsan.it +bari.it +barlettatraniandria.it +bas.it +basilicata.it +belluno.it +benevento.it +bergamo.it +bg.it +bi.it +biella.it +bl.it +bn.it +bo.it +bologna.it +bolzano.it +bozen.it +br.it +brescia.it +brindisi.it +bs.it +bt.it +bz.it +ca.it +cagliari.it +cal.it +calabria.it +caltanissetta.it +cam.it +campania.it +campidanomedio.it +campobasso.it +carboniaiglesias.it +carraramassa.it +caserta.it +catania.it +catanzaro.it +cb.it +ce.it +cesenaforli.it +ch.it +chieti.it +ci.it +cl.it +cn.it +co.it +como.it +cosenza.it +cr.it +cremona.it +crotone.it +cs.it +ct.it +cuneo.it +cz.it +dellogliastra.it +emiliaromagna.it +emr.it +en.it +enna.it +fc.it +fe.it +fermo.it +ferrara.it +fg.it +fi.it +firenze.it +florence.it +fm.it +foggia.it +forlicesena.it +fr.it +friulivegiulia.it +friuliveneziagiulia.it +friulivgiulia.it +frosinone.it +fvg.it +ge.it +genoa.it +genova.it +go.it +gorizia.it +gr.it +grosseto.it +iglesiascarbonia.it +im.it +imperia.it +is.it +isernia.it +kr.it +laquila.it +laspezia.it +latina.it +laz.it +lazio.it +lc.it +le.it +lecce.it +lecco.it +li.it +lig.it +liguria.it +livorno.it +lo.it +lodi.it +lom.it +lombardia.it +lombardy.it +lt.it +lu.it +lucania.it +lucca.it +macerata.it +mantova.it +mar.it +marche.it +massacarrara.it +matera.it +mb.it +mc.it +me.it +mediocampidano.it +messina.it +mi.it +milan.it +milano.it +mn.it +mo.it +modena.it +mol.it +molise.it +monza.it +monzabrianza.it +monzaebrianza.it +monzaedellabrianza.it +ms.it +mt.it +na.it +naples.it +napoli.it +no.it +novara.it +nu.it +nuoro.it +og.it +ogliastra.it +olbiatempio.it +or.it +oristano.it +ot.it +pa.it +padova.it +padua.it +palermo.it +parma.it +pavia.it +pc.it +pd.it +pe.it +perugia.it +pesarourbino.it +pescara.it +pg.it +pi.it +piacenza.it +piedmont.it +piemonte.it +pisa.it +pistoia.it +pmn.it +pn.it +po.it +pordenone.it +potenza.it +pr.it +prato.it +pt.it +pu.it +pug.it +puglia.it +pv.it +pz.it +ra.it +ragusa.it +ravenna.it +rc.it +re.it +reggiocalabria.it +reggioemilia.it +rg.it +ri.it +rieti.it +rimini.it +rm.it +rn.it +ro.it +roma.it +rome.it +rovigo.it +sa.it +salerno.it +sar.it +sardegna.it +sardinia.it +sassari.it +savona.it +si.it +sic.it +sicilia.it +sicily.it +siena.it +siracusa.it +so.it +sondrio.it +sp.it +sr.it +ss.it +suedtirol.it +sv.it +ta.it +taa.it +taranto.it +te.it +tempioolbia.it +teramo.it +terni.it +tn.it +to.it +torino.it +tos.it +toscana.it +tp.it +tr.it +traniandriabarletta.it +tranibarlettaandria.it +trapani.it +trentino.it +trentinoaadige.it +trentinoaltoadige.it +trentinosudtirol.it +trentinosuedtirol.it +trento.it +treviso.it +trieste.it +ts.it +turin.it +tuscany.it +tv.it +ud.it +udine.it +umb.it +umbria.it +urbinopesaro.it +va.it +valdaosta.it +valledaosta.it +vao.it +varese.it +vb.it +vc.it +vda.it +ve.it +ven.it +veneto.it +venezia.it +venice.it +verbania.it +vercelli.it +verona.it +vi.it +vibovalentia.it +vicenza.it +viterbo.it +vr.it +vs.it +vt.it +vv.it +je +co.je +net.je +org.je +jetzt +jewelry +jm +com.jm +net.jm +org.jm +jo +com.jo +name.jo +net.jo +org.jo +sch.jo +jobs +joburg +jp +akita.jp +co.jp +gr.jp +kyoto.jp +ne.jp +or.jp +osaka.jp +saga.jp +tokyo.jp +juegos +kaufen +ke +ac.ke +co.ke +go.ke +info.ke +me.ke +mobi.ke +ne.ke +or.ke +sc.ke +kg +com.kg +net.kg +org.kg +kh +com.kh +edu.kh +net.kh +org.kh +ki +biz.ki +com.ki +edu.ki +gov.ki +info.ki +mobi.ki +net.ki +org.ki +phone.ki +tel.ki +kids +kim +kitchen +kiwi +km +com.km +nom.km +org.km +tm.km +kn +com.kn +edu.kn +gov.kn +koeln +kr +co.kr +go.kr +ms.kr +ne.kr +or.kr +pe.kr +re.kr +seoul.kr +krd +kw +com.kw +edu.kw +net.kw +org.kw +ky +com.ky +net.ky +org.ky +kyoto +kz +com.kz +org.kz +la +land +lat +latino +law +lawyer +com.lb +edu.lb +net.lb +org.lb +lc +co.lc +com.lc +l.lc +net.lc +org.lc +p.lc +lease +legal +lgbt +li +life +lifestyle +lighting +limited +limo +link +live +living +lk +assn.lk +com.lk +edu.lk +grp.lk +hotel.lk +ltd.lk +ngo.lk +org.lk +soc.lk +web.lk +llc +loan +loans +locker +lol +london +lotto +love +lr +com.lr +org.lr +ls +co.ls +net.ls +org.ls +lt +ltd +ltda +lu +luxe +luxury +lv +asn.lv +com.lv +conf.lv +edu.lv +id.lv +mil.lv +net.lv +org.lv +ly +com.ly +id.ly +med.ly +net.ly +org.ly +plc.ly +sch.ly +ma +ac.ma +co.ma +net.ma +org.ma +press.ma +madrid +maison +makeup +management +market +marketing +markets +mba +mc +asso.mc +tm.mc +md +me +med +media +melbourne +meme +memorial +men +menu +mg +co.mg +com.mg +mil.mg +net.mg +nom.mg +org.mg +prd.mg +tm.mg +miami +mk +com.mk +edu.mk +inf.mk +net.mk +org.mk +ml +com.ml +info.ml +net.ml +org.ml +mm +biz.mm +com.mm +net.mm +org.mm +per.mm +mn +mo +com.mo +net.mo +org.mo +mobi +mobile +moda +moe +moi +mom +money +monster +mortgage +moscow +motorcycles +mov +movie +mp +mq +mr +edu.mr +org.mr +perso.mr +ms +co.ms +com.ms +org.ms +mt +com.mt +edu.mt +net.mt +org.mt +mu +ac.mu +co.mu +com.mu +edu.mu +net.mu +nom.mu +or.mu +org.mu +museum +music +mv +com.mv +mw +ac.mw +biz.mw +co.mw +com.mw +coop.mw +edu.mw +int.mw +net.mw +org.mw +mx +com.mx +net.mx +org.mx +my +com.my +edu.my +gov.my +mil.my +name.my +net.my +org.my +mz +co.mz +edu.mz +net.mz +org.mz +na +alt.na +cc.na +co.na +com.na +edu.na +info.na +net.na +org.na +school.na +nagoya +name +navy +nc +ne +com.ne +info.ne +int.ne +org.ne +perso.ne +net +auz.net +gb.net +hu.net +in.net +jp.net +ru.net +se.net +uk.net +network +new +news +nexus +nf +arts.nf +com.nf +firm.nf +info.nf +net.nf +org.nf +other.nf +per.nf +rec.nf +store.nf +web.nf +ng +com.ng +edu.ng +gov.ng +i.ng +lg.gov.ng +mobi.ng +name.ng +net.ng +org.ng +sch.ng +ngo +ni +ac.ni +biz.ni +co.ni +com.ni +edu.ni +gob.ni +in.ni +info.ni +int.ni +mil.ni +net.ni +nom.ni +org.ni +web.ni +ninja +nl +co.nl +com.nl +net.nl +no +co.no +fhs.no +folkebibl.no +fylkesbibl.no +gs.no +idrett.no +museum.no +priv.no +uenorge.no +vgs.no +now +nowruz +np +aero.np +asia.np +biz.np +com.np +coop.np +info.np +mil.np +mobi.np +museum.np +name.np +net.np +org.np +pro.np +travel.np +nr +biz.nr +com.nr +info.nr +net.nr +org.nr +nrw +nu +co.nu +nyc +nz +ac.nz +co.net.nz +co.nz +geek.nz +gen.nz +health.nz +iwi.nz +kiwi.nz +maori.nz +net.nz +org.nz +school.nz +observer +okinawa +om +biz.om +co.om +com.om +edu.om +gov.om +med.om +mil.om +museum.om +net.om +org.om +pro.om +sch.om +one +ong +onl +online +ooo +org +ae.org +hk.org +us.org +organic +osaka +ovh +pa +abo.pa +com.pa +edu.pa +gob.pa +ing.pa +med.pa +net.pa +nom.pa +org.pa +sld.pa +page +paris +partners +parts +party +pay +pe +com.pe +edu.pe +gob.pe +mil.pe +net.pe +nom.pe +org.pe +pet +pf +asso.pf +com.pf +edu.pf +gov.pf +org.pf +pg +com.pg +net.pg +org.pg +ph +com.ph +net.ph +org.ph +pharmacy +phd +photo +photography +photos +physio +pics +pictures +pink +pizza +pk +biz.pk +com.pk +net.pk +org.pk +web.pk +pl +agro.pl +aid.pl +atm.pl +augustow.pl +auto.pl +bedzin.pl +beskidy.pl +bialowieza.pl +bialystok.pl +bielawa.pl +bieszczady.pl +biz.pl +boleslawiec.pl +bydgoszcz.pl +bytom.pl +cieszyn.pl +com.pl +czeladz.pl +czest.pl +dlugoleka.pl +edu.pl +elblag.pl +elk.pl +glogow.pl +gmina.pl +gniezno.pl +gorlice.pl +grajewo.pl +gsm.pl +ilawa.pl +info.pl +jaworzno.pl +jgora.pl +kalisz.pl +karpacz.pl +kartuzy.pl +kaszuby.pl +katowice.pl +kepno.pl +ketrzyn.pl +klodzko.pl +kobierzyce.pl +kolobrzeg.pl +konin.pl +konskowola.pl +kutno.pl +lapy.pl +lebork.pl +legnica.pl +lezajsk.pl +limanowa.pl +lomza.pl +lowicz.pl +lubin.pl +lukow.pl +mail.pl +malbork.pl +malopolska.pl +mazowsze.pl +mazury.pl +media.pl +miasta.pl +mielec.pl +mielno.pl +mil.pl +mragowo.pl +naklo.pl +net.pl +nieruchomosci.pl +nom.pl +nowaruda.pl +nysa.pl +olawa.pl +olecko.pl +olkusz.pl +olsztyn.pl +opoczno.pl +opole.pl +org.pl +ostroda.pl +ostroleka.pl +ostrowiec.pl +ostrowwlkp.pl +pc.pl +pila.pl +pisz.pl +podhale.pl +podlasie.pl +polkowice.pl +pomorskie.pl +pomorze.pl +powiat.pl +priv.pl +prochowice.pl +pruszkow.pl +przeworsk.pl +pulawy.pl +radom.pl +realestate.pl +rel.pl +rybnik.pl +rzeszow.pl +sanok.pl +sejny.pl +sex.pl +shop.pl +sklep.pl +skoczow.pl +slask.pl +slupsk.pl +sos.pl +sosnowiec.pl +starachowice.pl +stargard.pl +suwalki.pl +swidnica.pl +swiebodzin.pl +swinoujscie.pl +szczecin.pl +szczytno.pl +szkola.pl +targi.pl +tarnobrzeg.pl +tgory.pl +tm.pl +tourism.pl +travel.pl +turek.pl +turystyka.pl +tychy.pl +ustka.pl +walbrzych.pl +warmia.pl +warszawa.pl +waw.pl +wegrow.pl +wielun.pl +wlocl.pl +wloclawek.pl +wodzislaw.pl +wolomin.pl +wroclaw.pl +zachpomor.pl +zagan.pl +zarow.pl +zgora.pl +zgorzelec.pl +place +plumbing +plus +pm +pn +co.pn +net.pn +org.pn +poker +porn +post +com.post +edu.post +org.post +pr +at.pr +biz.pr +ch.pr +com.pr +de.pr +eu.pr +fr.pr +info.pr +isla.pr +it.pr +name.pr +net.pr +nl.pr +org.pr +pro.pr +uk.pr +press +pro +aaa.pro +aca.pro +acct.pro +arc.pro +avocat.pro +bar.pro +bus.pro +chi.pro +chiro.pro +cpa.pro +den.pro +dent.pro +eng.pro +jur.pro +law.pro +med.pro +min.pro +nur.pro +nurse.pro +pharma.pro +prof.pro +prx.pro +recht.pro +rel.pro +teach.pro +vet.pro +productions +prof +promo +properties +property +protection +ps +com.ps +net.ps +org.ps +pt +co.pt +com.pt +org.pt +pub +pw +com.py +coop.py +edu.py +net.py +org.py +qa +com.qa +edu.qa +mil.qa +name.qa +net.qa +org.qa +sch.qa +qpon +quebec +quest +racing +radio +re +realestate +realty +recipes +red +rehab +reise +reisen +reit +ren +rent +rentals +repair +report +republican +rest +restaurant +review +reviews +rich +rio +rip +ro +arts.ro +co.ro +com.ro +firm.ro +info.ro +ne.ro +nom.ro +nt.ro +or.ro +org.ro +rec.ro +sa.ro +srl.ro +store.ro +tm.ro +www.ro +rocks +rodeo +rs +co.rs +edu.rs +in.rs +org.rs +rsvp +ru +adygeya.ru +bashkiria.ru +bir.ru +cbg.ru +com.ru +dagestan.ru +grozny.ru +kalmykia.ru +kustanai.ru +marine.ru +mordovia.ru +msk.ru +mytis.ru +nalchik.ru +net.ru +nov.ru +org.ru +pp.ru +pyatigorsk.ru +spb.ru +vladikavkaz.ru +vladimir.ru +rugby +ruhr +run +rw +ac.rw +co.rw +net.rw +org.rw +ryukyu +sa +com.sa +edu.sa +med.sa +net.sa +org.sa +pub.sa +sch.sa +saarland +sale +salon +sarl +sb +com.sb +net.sb +org.sb +sbs +sc +com.sc +net.sc +org.sc +school +schule +science +scot +sd +com.sd +info.sd +net.sd +se +com.se +security +select +services +sex +sexy +sg +com.sg +edu.sg +net.sg +org.sg +sh +shiksha +shoes +shop +shopping +show +si +ae.si +at.si +cn.si +co.si +de.si +uk.si +us.si +singles +site +sk +org.sk +ski +skin +sl +com.sl +edu.sl +net.sl +org.sl +sm +sn +art.sn +com.sn +edu.sn +org.sn +perso.sn +univ.sn +so +com.so +net.so +org.so +soccer +social +software +solar +solutions +soy +spa +space +sport +spot +spreadbetting +sr +srl +ss +biz.ss +co.ss +com.ss +me.ss +net.ss +st +storage +store +stream +studio +study +style +su +abkhazia.su +adygeya.su +aktyubinsk.su +arkhangelsk.su +armenia.su +ashgabad.su +azerbaijan.su +balashov.su +bashkiria.su +bryansk.su +bukhara.su +chimkent.su +dagestan.su +exnet.su +georgia.su +grozny.su +ivanovo.su +jambyl.su +kalmykia.su +kaluga.su +karacol.su +karaganda.su +karelia.su +khakassia.su +krasnodar.su +kurgan.su +kustanai.su +lenug.su +mangyshlak.su +mordovia.su +msk.su +murmansk.su +nalchik.su +navoi.su +nov.su +obninsk.su +penza.su +pokrovsk.su +sochi.su +spb.su +tashkent.su +termez.su +togliatti.su +troitsk.su +tselinograd.su +tula.su +tuva.su +vladikavkaz.su +vladimir.su +vologda.su +sucks +supplies +supply +support +surf +surgery +sv +com.sv +edu.sv +gob.sv +org.sv +swiss +sx +sy +com.sy +sydney +systems +ac.sz +co.sz +org.sz +taipei +talk +tatar +tattoo +tax +taxi +tc +com.tc +net.tc +org.tc +pro.tc +td +com.td +info.td +net.td +org.td +tourism.td +team +tech +technology +tel +tennis +tf +tg +th +ac.th +co.th +in.th +net.th +or.th +theater +theatre +tickets +tienda +tips +tires +tirol +tj +ac.tj +aero.tj +biz.tj +co.tj +com.tj +coop.tj +dyn.tj +go.tj +info.tj +int.tj +mil.tj +museum.tj +my.tj +name.tj +net.tj +org.tj +per.tj +pro.tj +web.tj +tk +tl +com.tl +net.tl +org.tl +tm +tn +agrinet.tn +com.tn +defense.tn +edunet.tn +ens.tn +fin.tn +ind.tn +info.tn +intl.tn +nat.tn +net.tn +org.tn +perso.tn +rnrt.tn +rns.tn +rnu.tn +tourism.tn +to +today +tokyo +tools +top +tours +town +toys +av.tr +bbs.tr +biz.tr +com.tr +dr.tr +gen.tr +info.tr +name.tr +net.tr +org.tr +tel.tr +tv.tr +web.tr +trade +trading +training +travel +trust +tt +biz.tt +co.tt +com.tt +info.tt +jobs.tt +mobi.tt +name.tt +net.tt +org.tt +pro.tt +tube +tv +tw +club.tw +com.tw +ebiz.tw +game.tw +idv.tw +mil.tw +net.tw +org.tw +tz +ac.tz +co.tz +go.tz +hotel.tz +info.tz +me.tz +mil.tz +mobi.tz +ne.tz +or.tz +sc.tz +tv.tz +ua +biz.ua +cherkassy.ua +cherkasy.ua +chernigov.ua +chernivtsi.ua +chernovtsy.ua +ck.ua +cn.ua +co.ua +com.ua +crimea.ua +cv.ua +dn.ua +dnepropetrovsk.ua +dnipropetrovsk.ua +donetsk.ua +dp.ua +edu.ua +gov.ua +if.ua +in.ua +kh.ua +kharkiv.ua +kharkov.ua +kherson.ua +khmelnitskiy.ua +kiev.ua +kirovograd.ua +km.ua +kr.ua +ks.ua +kyiv.ua +lg.ua +lt.ua +lugansk.ua +lutsk.ua +lviv.ua +mk.ua +net.ua +nikolaev.ua +od.ua +odesa.ua +odessa.ua +org.ua +pl.ua +poltava.ua +pp.ua +rivne.ua +rovno.ua +rv.ua +sebastopol.ua +sm.ua +sumy.ua +te.ua +ternopil.ua +uz.ua +uzhgorod.ua +vinnica.ua +vn.ua +volyn.ua +yalta.ua +zaporizhzhe.ua +zhitomir.ua +zp.ua +zt.ua +ug +ac.ug +co.ug +com.ug +go.ug +ne.ug +or.ug +org.ug +sc.ug +uk +ac.uk +barnet.sch.uk +barnsley.sch.uk +bathnes.sch.uk +beds.sch.uk +bexley.sch.uk +bham.sch.uk +blackburn.sch.uk +blackpool.sch.uk +bolton.sch.uk +bournemouth.sch.uk +bradford.sch.uk +brent.sch.uk +co.uk +doncaster.sch.uk +gov.uk +ltd.uk +me.uk +net.uk +org.uk +plc.uk +sch.uk +university +uno +us +uy +com.uy +edu.uy +net.uy +org.uy +uz +biz.uz +co.uz +com.uz +net.uz +org.uz +vacations +vana +vc +com.vc +net.vc +org.vc +ve +co.ve +com.ve +info.ve +net.ve +org.ve +web.ve +vegas +ventures +versicherung +vet +vg +vi +co.vi +com.vi +net.vi +org.vi +viajes +video +villas +vin +vip +vision +vlaanderen +vn +ac.vn +biz.vn +com.vn +edu.vn +gov.vn +health.vn +info.vn +int.vn +name.vn +net.vn +org.vn +pro.vn +vodka +vote +voting +voto +voyage +vu +com.vu +net.vu +org.vu +vuelos +wales +wang +watch +watches +webcam +website +wedding +wf +whoswho +wien +wiki +win +wine +work +works +world +ws +com.ws +net.ws +org.ws +wtf +xin +xxx +xyz +yachts +ye +com.ye +net.ye +org.ye +yoga +yokohama +you +yt +co.za +net.za +org.za +web.za +zip +zm +co.zm +com.zm +org.zm +zone +zuerich +co.zw +org.zw diff --git a/src/lib/factory.ts b/src/lib/factory.ts index 1380f2b..bcda41d 100644 --- a/src/lib/factory.ts +++ b/src/lib/factory.ts @@ -1,22 +1,16 @@ -import { getTLDList } from "./tld"; +import rawTldList from "@/data/tld.txt?raw"; import englishWords from "@/data/english.txt?raw"; import frenchWords from "@/data/french.txt?raw"; import { randomElement, shuffled } from "./random"; +const TLD_LIST: string[] = rawTldList.trim().split("\n"); + export class DomainFactory { - tldList: string[] = []; error: string | null = null; words: Record = {}; generated: string[] = []; - async init() { - try { - this.tldList = await getTLDList(); - } catch (e) { - this.error = "Could not load TLD list"; - throw e; - } - + init() { this.words.french = this.initWords(frenchWords); this.words.english = this.initWords(englishWords); } @@ -48,7 +42,7 @@ export class DomainFactory { randomDomain(lang: string): string | null { const word = this.randomWord(lang); - for (const tld of shuffled(this.tldList.slice())) { + for (const tld of shuffled(TLD_LIST.slice())) { const tldEscaped: string = tld.replace(".", ""); if (word.endsWith(tldEscaped) && word.length > tldEscaped.length + 2) { const domain = `${word.substring(0, word.length - tldEscaped.length)}.${tld}`; diff --git a/src/lib/tld.ts b/src/lib/tld.ts deleted file mode 100644 index 9149b96..0000000 --- a/src/lib/tld.ts +++ /dev/null @@ -1,26 +0,0 @@ -import raw_blacklist from "@/data/blacklist.txt"; - -const BLACKLIST = raw_blacklist.split("\n"); - -export async function getTLDList(): Promise { - const response = await fetch( - "https://cors.klemek.fr/https://data.iana.org/TLD/tlds-alpha-by-domain.txt", - ); - const content = await response.text(); - const tldList: string[] = []; - content.split("\n").forEach((line) => { - line = line.trim().toLowerCase(); - if ( - line.length && - !line.startsWith("//") && - !line.startsWith("*") && - !line.startsWith("#") && - !line.startsWith("xn--") && - line.replace(/[^\x20-\x7F]/g, "") === line && - !BLACKLIST.includes(line) - ) { - tldList.push(line); - } - }); - return tldList; -}