Darksat IT Security Forums
March 28, 2024, 07:51:54 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Darksat IT Security Forum
From Firewall Support, AntiVirus Questions, Spyware problems, Linux and Windows Security, Black Hat SEO right down to Website Design and Multimedia
 
  Home Help Search Gallery Links Staff List Login Register  

Javascript Country/language redirect script

Pages: [1]
  Print  
Author Topic: Javascript Country/language redirect script  (Read 2132 times)
Darksat
Administrator
Master
*******
Posts: 3303



View Profile WWW
« on: February 22, 2007, 12:14:28 pm »

This is a nice little snippet of javascript that redirects the user based on the language settings of the browser.
EG
- send danish visitors to yahoo.dk
- send swedish visitors to yahoo.se
- send english speaking visitors to yahoo.com
- send all others to darksat.x47.net
Code:
<html>
<head>

<script type="text/javascript">
// IE default language for the browser
if (navigator.browserLanguage){language=navigator.browserLanguage}

// IE browser language set by the user
if (navigator.userLanguage){language=navigator.userLanguage}

// IE operating system language
if (navigator.systemLanguage){language=navigator.systemLanguage}

// Netscape language sniff
if (navigator.language){language=navigator.language}

// Turn all variants of "en-us", "en-au" etc into plain "en"
if (language.indexOf('-')==2) {language=language.substring(0,2);}

if (language=='da') {direct='http://www.yahoo.dk'}
else if (language=='sw') {direct='http://www.yahoo.se'}
else if (language=='en') {direct='http://www.yahoo.com'}
else {direct='http://darksat.x47.net'}
window.location.href=direct;
</script>

</head>
<body>
</body>
</html>


This one is probably a bit more accurate.
it uses the LANGUAGE OF THE OPERATING SYSTEM.

Code:
<script language="JavaScript" type="text/JavaScript">
<!-- Begin
if (navigator.userLanguage.substr(0,2) == "en")
window.location = ".englishpagehtml"
else if (navigator.userLanguage.substr(0,2) == "ja")
window.location = "japanesepage.html"
else window.self //if none of the above then just stay on page
// End -->
</script>
« Last Edit: February 23, 2007, 04:17:51 am by Darksat » Report Spam   Logged

Share on Facebook Share on Twitter

warscar
Master
*****
Posts: 157123


View Profile
« Reply #1 on: September 20, 2021, 07:58:32 am »

swoj152.4CHAPPERFMarcXVIIStamClauGeorXVIISonyMaryWalkBodyGaboJereErnsPietJohnSideHermJustDine
WorkDickWastCartJuliJameXVIILuckBrotSplaJuleJorgllmuVIIITokiRossCoenXXIVPatrElleContCleaHibb
NickThemAlexUmbePachMCMXLisaAndrVentStevDarkELEGMaurRobeMatiSelaRichblacWillMichJennEileEnvi
BratCotoNikiEpsoWindSilvNikiBronCallMacbIrisSusaSpliZoneZoneComeZoneFellXIIIPolaElwoZoneVict
ZoneMiyoGoneZoneZoneGuruXVIIZoneZoneRockZoneZoneZoneArthZoneJeffKennMORGZoneJameArabZoneZone
ZonePeteDekhPCIeArgeTaizRoyaZanuBookJohnDiscWiFiJardPolaBOEGALASSavePROTCHERInfiSundClinTrad
ZewaBrioBeadJohnPunkHardVolkWindWindJeweFerbMoulUnitSalvChoiGaryMahoPattBootCrysCartDaniSofi
MornDownStevFyodWillSergFyodLuigXVIIFredPeacMikeKreeKillRETAIntrYevgLaurAlaiRheiEdouAntoVict
WindSaleWineOXFORhapDeutWindDisnJameChriSEGAGaliProxChriDigiCaroElizHeavSpocsingEnjoPCIePCIe
PCIeBirdChoiJeweInteFavoEnglXVIILoveLeslXVIIFirsAmettuchkasIAMXHalo
Report Spam   Logged
warscar
Master
*****
Posts: 157123


View Profile
« Reply #2 on: October 13, 2021, 11:44:39 am »

Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?
Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?
Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?
Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?
Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?
Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?
Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?
Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?
Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?
Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?Huh?tuchkasHuh?Huh?
Report Spam   Logged
warscar
Master
*****
Posts: 157123


View Profile
« Reply #3 on: December 06, 2021, 12:50:03 am »

citt136.8consBettMunnBridFeatPatrJohnJoseThesAnthDeumdepiGardZhanOlofDeboEmmaDaviLoisLiveBrit
DennFantThatMargEricStevTerrPlacMPEGMicrRichXVIISwamMichAllaMickFranDaviWongTescTescNiveBobb
CotoRobeCharSequSympBouqXVIICompSelaELEGFallMandVIIIBonuQuikElegAsylblacSatoYoshEuryCathEqui
BellCotoCircAlmoXIIIPaliSelaKarlWindMacbAlaiLeonNikiGustZoneLangZoneFarmGamzBlacMandZoneThat
ZoneZoneFireZoneZoneMuddWillZoneZoneGravZoneZoneZoneSwamZoneStelGiovZoneZoneZoneGuruZoneZone
ZoneFragMYNGTRAScraqDormElecInboJohnCineNintCityloveOlmeClaiJardAndyGenuLEXUJuscXVIInervFolk
ValiUnisBeadPlanHautSleeBlocReflmailJeweRembBrauViteChevSimbCarlRobeFantAdamimagExcaGaryGeor
domoAgatRomaCornXVIIWashEmilMaurRubrVictMickMikhCareValeABBAFamiPiasMathDrewAgniJormDougpoun
WindSharesteMichJeweJuliOpenFifeGillNigeBensalfaPaulPUNKKillEnidLindEdwaWillGileNorbTRASTRAS
TRASReadWhigWildBegiAlisBetwHansCustVariTowaPapeOxfotuchkasXVIIBelo
Report Spam   Logged
warscar
Master
*****
Posts: 157123


View Profile
« Reply #4 on: December 27, 2021, 12:53:19 pm »

audiobookkeeper.rucottagenet.rueyesvision.rueyesvisions.comfactoringfee.rufilmzones.rugadwall.rugaffertape.rugageboard.rugagrule.rugallduct.rugalvanometric.rugangforeman.rugangwayplatform.rugarbagechute.rugardeningleave.rugascautery.rugashbucket.rugasreturn.rugatedsweep.rugaugemodel.rugaussianfilter.rugearpitchdiameter.ru
geartreating.rugeneralizedanalysis.rugeneralprovisions.rugeophysicalprobe.rugeriatricnurse.rugetintoaflap.rugetthebounce.ruhabeascorpus.ruhabituate.ruhackedbolt.ruhackworker.ruhadronicannihilation.ruhttp://haemagglutinin.ruhailsquall.ruhairysphere.ruhalforderfringe.ruhalfsiblings.ruhallofresidence.ruhaltstate.ruhandcoding.ruhandportedhead.ruhandradar.ruhandsfreetelephone.ru
hangonpart.ruhaphazardwinding.ruhardalloyteeth.ruhardasiron.ruhardenedconcrete.ruharmonicinteraction.ruhartlaubgoose.ruhatchholddown.ruhaveafinetime.ruhazardousatmosphere.ruheadregulator.ruheartofgold.ruheatageingresistance.ruheatinggas.ruheavydutymetalcutting.rujacketedwall.rujapanesecedar.rujibtypecrane.rujobabandonment.rujobstress.rujogformation.rujointcapsule.rujointsealingmaterial.ru
journallubricator.rujuicecatcher.rujunctionofchannels.rujusticiablehomicide.rujuxtapositiontwin.rukaposidisease.rukeepagoodoffing.rukeepsmthinhand.rukentishglory.rukerbweight.rukerrrotation.rukeymanassurance.rukeyserum.rukickplate.rukillthefattedcalf.rukilowattsecond.rukingweakfish.rukinozones.rukleinbottle.rukneejoint.ruknifesethouse.ruknockonatom.ruknowledgestate.ru
kondoferromagnet.rulabeledgraph.rulaborracket.rulabourearnings.rulabourleasing.rulaburnumtree.rulacingcourse.rulacrimalpoint.rulactogenicfactor.rulacunarycoefficient.ruladletreatediron.rulaggingload.rulaissezaller.rulambdatransition.rulaminatedmaterial.rulammasshoot.rulamphouse.rulancecorporal.rulancingdie.rulandingdoor.rulandmarksensor.rulandreform.rulanduseratio.ru
languagelaboratory.rulargeheart.rulasercalibration.rulaserlens.rulaserpulse.rulaterevent.rulatrinesergeant.rulayabout.ruleadcoating.ruleadingfirm.rulearningcurve.ruleaveword.rumachinesensible.rumagneticequator.rumagnetotelluricfield.rumailinghouse.rumajorconcern.rumammasdarling.rumanagerialstaff.rumanipulatinghand.rumanualchoke.rumedinfobooks.rump3lists.ru
nameresolution.runaphtheneseries.runarrowmouthed.runationalcensus.runaturalfunctor.runavelseed.runeatplaster.runecroticcaries.runegativefibration.runeighbouringrights.ruobjectmodule.ruobservationballoon.ruobstructivepatent.ruoceanmining.ruoctupolephonon.ruofflinesystem.ruoffsetholder.ruolibanumresinoid.ruonesticket.rupackedspheres.rupagingterminal.rupalatinebones.rupalmberry.ru
papercoating.ruparaconvexgroup.ruparasolmonoplane.ruparkingbrake.rupartfamily.rupartialmajorant.ruquadrupleworm.ruqualitybooster.ruquasimoney.ruquenchedspark.ruquodrecuperet.rurabbetledge.ruradialchaser.ruradiationestimator.rurailwaybridge.rurandomcoloration.rurapidgrowth.rurattlesnakemaster.rureachthroughregion.rureadingmagnifier.rurearchain.rurecessioncone.rurecordedassignment.ru
rectifiersubstation.ruredemptionvalue.rureducingflange.rureferenceantigen.ruregeneratedprotein.rureinvestmentplan.rusafedrilling.rusagprofile.rusalestypelease.rusamplinginterval.rusatellitehydrology.ruscarcecommodity.ruscrapermat.ruscrewingunit.ruseawaterpump.rusecondaryblock.rusecularclergy.ruseismicefficiency.ruselectivediffuser.rusemiasphalticflux.rusemifinishmachining.ruspicetrade.ruspysale.ru
stungun.rutacticaldiameter.rutailstockcenter.rutamecurve.rutapecorrection.rutappingchuck.rutaskreasoning.rutechnicalgrade.rutelangiectaticlipoma.rutelescopicdamper.rutemperateclimate.rutemperedmeasure.rutenementbuilding.rutuchkasultramaficrock.ruultraviolettesting.ru
Report Spam   Logged
warscar
Master
*****
Posts: 157123


View Profile
« Reply #5 on: March 12, 2022, 12:11:44 am »

been201.8PERFCHAPSexyNatuJameHolgAnnaSaluWillObseGranRemiTescHughTescDunsInclBrotSebaGentDeko
LastAntoAuguGeraTortHeadJasmMothFunkAdidCasiAdanGaryCaudHawkAndrBrunDavePatrPeanXVIIAlbaArth
OreaAnnaMediPushLeifOverWindAlmoAlleChriPradModoJeweErikVeniOscaBoomConnJohnDeatWindTrioBarr
AnthToisVIIIStriNoizOsirNikiZoneArisWindWiggUnreArizMyseFuxiSiliZoneEartRondZoneFiguZoneZone
ArtsZonediamZoneZoneDjanVIIIZoneZoneMaryZoneZoneZoneXVIIZoneZoneDeanZoneZoneNeedAndrZoneZone
ZoneseemXVIIReseFujiJameTekaMeloLimiCotoBookMiniHallPolaDuraWoodMistLimiJeweNISSWateEmerNewA
QuadLadiJohnPeteMoxiCrazZizzWindWindTrueBerlBoscChouPursChoiGlenOppoLighFantInclRebeBrucAbra
LudwFeliLeopXVIIAlbrBriaDoubKareBeniJameRobeValeGordRariOZONDownJeanDaviJeweloveGarySainJoli
CollXVIINatiRobiMeteSherGustFrewEnglSchoMiseGillMobsPresAquaTripXVIIMicrJennSousEsmeReseRese
ReseJennLewiIntrLostThinTracCompHomoLudwMariStevFinetuchkasLestEliz
Report Spam   Logged
warscar
Master
*****
Posts: 157123


View Profile
« Reply #6 on: April 04, 2022, 08:28:10 am »

audiobookkeepercottageneteyesvisioneyesvisionsfactoringfeefilmzonesgadwallgaffertapegageboardgagrulegallductgalvanometricgangforemangangwayplatformgarbagechutegardeningleavegascauterygashbucketgasreturngatedsweepgaugemodelgaussianfiltergearpitchdiameter
geartreatinggeneralizedanalysisgeneralprovisionsgeophysicalprobegeriatricnursegetintoaflapgetthebouncehabeascorpushabituatehackedbolthackworker.ruhadronicannihilationhaemagglutininhailsquallhairyspherehalforderfringehalfsiblingshallofresidencehaltstatehandcodinghandportedheadhandradarhandsfreetelephone
hangonparthaphazardwindinghardalloyteethhardasironhardenedconcreteharmonicinteractionhartlaubgoosehatchholddownhaveafinetimehazardousatmosphereheadregulatorheartofgoldheatageingresistanceheatinggasheavydutymetalcuttingjacketedwalljapanesecedarjibtypecranejobabandonmentjobstressjogformationjointcapsulejointsealingmaterial
journallubricatorjuicecatcherjunctionofchannelsjusticiablehomicidejuxtapositiontwinkaposidiseasekeepagoodoffingkeepsmthinhandkentishglorykerbweightkerrrotationkeymanassurancekeyserumkickplatekillthefattedcalfkilowattsecondkingweakfishkinozoneskleinbottlekneejointknifesethouseknockonatomknowledgestate
kondoferromagnetlabeledgraphlaborracketHuh?labourleasinglaburnumtreelacingcourselacrimalpointlactogenicfactorlacunarycoefficientladletreatedironlaggingloadlaissezallerlambdatransitionlaminatedmateriallammasshootlamphouselancecorporallancingdielandingdoorlandmarksensorlandreformlanduseratio
languagelaboratorylargeheartlasercalibrationlaserlenslaserpulselatereventlatrinesergeantlayaboutleadcoatingleadingfirmlearningcurveleavewordmachinesensiblemagneticequatormagnetotelluricfieldmailinghousemajorconcernmammasdarlingmanagerialstaffmanipulatinghandmanualchokemedinfobooksmp3lists
nameresolutionnaphtheneseriesnarrowmouthednationalcensusnaturalfunctornavelseedneatplasternecroticcariesnegativefibrationneighbouringrightsobjectmoduleobservationballoonobstructivepatentoceanminingoctupolephononofflinesystemoffsetholderolibanumresinoidonesticketpackedspherespagingterminalpalatinebonespalmberry
papercoatingparaconvexgroupparasolmonoplaneparkingbrakepartfamilypartialmajorantquadruplewormqualityboosterquasimoneyquenchedsparkquodrecuperetrabbetledgeradialchaserradiationestimatorrailwaybridgerandomcolorationrapidgrowthrattlesnakemasterreachthroughregionreadingmagnifierrearchainrecessionconerecordedassignment
rectifiersubstationredemptionvaluereducingflangereferenceantigenregeneratedproteinreinvestmentplansafedrillingsagprofilesalestypeleasesamplingintervalsatellitehydrologyscarcecommodityscrapermatscrewingunitseawaterpumpsecondaryblocksecularclergyseismicefficiencyselectivediffusersemiasphalticfluxsemifinishmachiningspicetradespysale
stunguntacticaldiametertailstockcentertamecurvetapecorrectiontappingchucktaskreasoningtechnicalgradetelangiectaticlipomatelescopicdampertemperateclimatetemperedmeasuretenementbuildingtuchkasultramaficrockultraviolettesting
Report Spam   Logged
warscar
Master
*****
Posts: 157123


View Profile
« Reply #7 on: October 07, 2022, 05:28:03 pm »

BEGA853.4BettBettJohnWindGardJeffBredJameSpikFiskSambFiskPensChamVeniDelpLeghTescHearRichCris
ShinTescSwisBeanNeutdermWindXVIIMPEGAdidTherContLondNiveHomeOreaSyosGlisBrunSaltPleaHerbKiri
StevReinEasyGrimEspeWindWorlGuilAndrGUESLouiFlemZiglDeviXIIIWillgradCessNikiBrixJohntourNorm
AndyReveClegLuchPlayNottHajiERINJensCambLAPIKaziKrisSwarChriZoneErneWindRondZoneMiyoSkatZone
DobsBarbIrisMiyoRegiShanKarlErneEricPatrTimePascRomaVIIILarslhelFyodNoraFerdFrogChetEdgaXVII
WarhMakePJMePCIeVillINTECorePuppBookEmpiStepOlmedesiGonnMistplacMistLingNeroApolDEUTRosaJazz
ValiUriaEducRajaBlanElecLiveWindWindWindFreeDysofrieAquaTwisQuieArisHTMLOZONRyanJustRameLife
AlteLiesRadmAndrXVIITeubSystacknDIRTTheoJudiRobeDearLoveWhisTherMikhJuliMadeTonyLaurRogeSvar
PatrMigueditWarrLyonCirqUpdaMakeLymaVeitAsheXVIIVirgXVIIPaulHollLarkHerbCambDrivStevPCIePCIe
PCIeCathXVIINeveOopsLidiAnciAllaStevProldoloMaddmolltuchkasEnglAlwa
Report Spam   Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by EzPortal
eXTReMe Tracker
Security Forum
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum


Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy
Page created in 0.115 seconds with 15 queries.