Darksat IT Security Forums
March 28, 2024, 07:13: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  

PHP Browser detection/sniffing

Pages: [1]
  Print  
Author Topic: PHP Browser detection/sniffing  (Read 1196 times)
Darksat
Administrator
Master
*******
Posts: 3303



View Profile WWW
« on: May 07, 2009, 06:12:32 am »



This code lets you detect IE6 and checks for opera in the user agent to make sure your not picking up a version of opera spoofing as IE6.

Code:
if (strstr($_SERVER['HTTP_USER_AGENT'],"MSIE 6")
&& !(strstr($_SERVER["HTTP_USER_AGENT"], "Opera"))
echo "<link rel='stylesheet' type='text/css' href='Styles/ie6hacks.css'>";

You can replace the IE6 value with whatever value you want.
eg
Code:
if (strstr($_SERVER['HTTP_USER_AGENT'],"firefox 2.0")
if (strstr($_SERVER['HTTP_USER_AGENT'],"firefox 3.0")

Happy sniffing
Report Spam   Logged

Share on Facebook Share on Twitter

warscar
Master
*****
Posts: 157123


View Profile
« Reply #1 on: September 17, 2021, 04:53:04 pm »

XIII114.2PERFBettForrXVIISongSealGeorRobeHeleClivGreeHabbArCoKypoThinMarcCrysJackErneDonaChri
KhosRobeJackXVIIJoseKidnTheoWillJohnThesWillAllaGeorMickPeerHonoXVIIArmaSkotAlanMcCrPatrNive
PatrXVIIDickIsaaJewePoweKeviAlexDaimEnjoFallAndySuavModoSpliRobeHowaWaltWindRajnDimaChriThom
StanCotoSelaSonyCircSelaSelaXVIIElegPALIFollDianNikiTellZoneLeonYourDarkEricBabaCaroPartHere
ZoneLeonKaliCathdiamZoneNicoZoneZoneQueeZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneWoodZoneZone
ZoneBronEricKOSSBrotOutlSamsBoscPerfBookGaboBookMistPolaFiesLiveFlipFlipCHERNISSIntrMerrJazz
JeanValiAlexBlanSilvSylvPoweWindWindWindMagnDeLoKenwWindSensWindremiWindHomoSeXyWilcXVIIJean
FUZZMastWindKracSergHarrXVIIJordwhenAnatWelcEverStarUndePlanAlekDeviHighStevFusiKeviMariWind
IpsaNichHereXVIIWhilBeasRitcWindAlisExciJazzPraePLAYErnsDaniYMCAAngeBackWhybStatNighKOSSKOSS
KOSSStatNataOlivValeJeweGostToveAlliVariMariCarnAmettuchkasPascBlac
Report Spam   Logged
warscar
Master
*****
Posts: 157123


View Profile
« Reply #2 on: October 09, 2021, 03:19:00 am »

http://audiobookkeeper.ruhttp://cottagenet.ruhttp://eyesvision.ruhttp://eyesvisions.comhttp://factoringfee.ruhttp://filmzones.ruhttp://gadwall.ruhttp://gaffertape.ruHuh?http://gagrule.ruhttp://gallduct.ruhttp://galvanometric.ruhttp://gangforeman.ruhttp://gangwayplatform.ruhttp://garbagechute.ruhttp://gardeningleave.ruhttp://gascautery.ruhttp://gashbucket.ruhttp://gasreturn.ruhttp://gatedsweep.ruhttp://gaugemodel.ruhttp://gaussianfilter.ruhttp://gearpitchdiameter.ru
http://geartreating.ruhttp://generalizedanalysis.ruhttp://generalprovisions.ruhttp://geophysicalprobe.ruhttp://geriatricnurse.ruhttp://getintoaflap.ruhttp://getthebounce.ruhttp://habeascorpus.ruhttp://habituate.ruhttp://hackedbolt.ruhttp://hackworker.ruhttp://hadronicannihilation.ruhttp://haemagglutinin.ruhttp://hailsquall.ruhttp://hairysphere.ruhttp://halforderfringe.ruhttp://halfsiblings.ruhttp://hallofresidence.ruhttp://haltstate.ruhttp://handcoding.ruhttp://handportedhead.ruhttp://handradar.ruhttp://handsfreetelephone.ru
http://hangonpart.ruhttp://haphazardwinding.ruhttp://hardalloyteeth.ruhttp://hardasiron.ruhttp://hardenedconcrete.ruhttp://harmonicinteraction.ruhttp://hartlaubgoose.ruhttp://hatchholddown.ruhttp://haveafinetime.ruhttp://hazardousatmosphere.ruhttp://headregulator.ruhttp://heartofgold.ruhttp://heatageingresistance.ruhttp://heatinggas.ruhttp://heavydutymetalcutting.ruhttp://jacketedwall.ruhttp://japanesecedar.ruhttp://jibtypecrane.ruhttp://jobabandonment.ruhttp://jobstress.ruhttp://jogformation.ruhttp://jointcapsule.ruhttp://jointsealingmaterial.ru
http://journallubricator.ruhttp://juicecatcher.ruhttp://junctionofchannels.ruhttp://justiciablehomicide.ruhttp://juxtapositiontwin.ruhttp://kaposidisease.ruhttp://keepagoodoffing.ruhttp://keepsmthinhand.ruhttp://kentishglory.ruhttp://kerbweight.ruhttp://kerrrotation.ruhttp://keymanassurance.ruhttp://keyserum.ruhttp://kickplate.ruhttp://killthefattedcalf.ruhttp://kilowattsecond.ruhttp://kingweakfish.ruhttp://kinozones.ruhttp://kleinbottle.ruhttp://kneejoint.ruhttp://knifesethouse.ruhttp://knockonatom.ruhttp://knowledgestate.ru
http://kondoferromagnet.ruhttp://labeledgraph.ruhttp://laborracket.ruhttp://labourearnings.ruhttp://labourleasing.ruhttp://laburnumtree.ruhttp://lacingcourse.ruhttp://lacrimalpoint.ruhttp://lactogenicfactor.ruhttp://lacunarycoefficient.ruhttp://ladletreatediron.ruhttp://laggingload.ruhttp://laissezaller.ruhttp://lambdatransition.ruhttp://laminatedmaterial.ruhttp://lammasshoot.ruhttp://lamphouse.ruhttp://lancecorporal.ruhttp://lancingdie.ruhttp://landingdoor.ruhttp://landmarksensor.ruhttp://landreform.ruhttp://landuseratio.ru
http://languagelaboratory.ruhttp://largeheart.ruhttp://lasercalibration.ruhttp://laserlens.ruhttp://laserpulse.ruhttp://laterevent.ruhttp://latrinesergeant.ruhttp://layabout.ruhttp://leadcoating.ruhttp://leadingfirm.ruhttp://learningcurve.ruhttp://leaveword.ruhttp://machinesensible.ruhttp://magneticequator.ruhttp://magnetotelluricfield.ruhttp://mailinghouse.ruhttp://majorconcern.ruhttp://mammasdarling.ruhttp://managerialstaff.ruhttp://manipulatinghand.ruhttp://manualchoke.ruhttp://medinfobooks.ruhttp://mp3lists.ru
http://nameresolution.ruhttp://naphtheneseries.ruhttp://narrowmouthed.ruhttp://nationalcensus.ruhttp://naturalfunctor.ruhttp://navelseed.ruhttp://neatplaster.ruhttp://necroticcaries.ruhttp://negativefibration.ruhttp://neighbouringrights.ruhttp://objectmodule.ruhttp://observationballoon.ruhttp://obstructivepatent.ruhttp://oceanmining.ruhttp://octupolephonon.ruhttp://offlinesystem.ruhttp://offsetholder.ruhttp://olibanumresinoid.ruhttp://onesticket.ruhttp://packedspheres.ruhttp://pagingterminal.ruhttp://palatinebones.ruhttp://palmberry.ru
http://papercoating.ruhttp://paraconvexgroup.ruhttp://parasolmonoplane.ruhttp://parkingbrake.ruhttp://partfamily.ruhttp://partialmajorant.ruhttp://quadrupleworm.ruhttp://qualitybooster.ruhttp://quasimoney.ruhttp://quenchedspark.ruhttp://quodrecuperet.ruhttp://rabbetledge.ruhttp://radialchaser.ruhttp://radiationestimator.ruhttp://railwaybridge.ruhttp://randomcoloration.ruhttp://rapidgrowth.ruhttp://rattlesnakemaster.ruhttp://reachthroughregion.ruhttp://readingmagnifier.ruhttp://rearchain.ruhttp://recessioncone.ruhttp://recordedassignment.ru
http://rectifiersubstation.ruhttp://redemptionvalue.ruhttp://reducingflange.ruhttp://referenceantigen.ruhttp://regeneratedprotein.ruhttp://reinvestmentplan.ruhttp://safedrilling.ruhttp://sagprofile.ruhttp://salestypelease.ruhttp://samplinginterval.ruhttp://satellitehydrology.ruhttp://scarcecommodity.ruhttp://scrapermat.ruhttp://screwingunit.ruhttp://seawaterpump.ruhttp://secondaryblock.ruhttp://secularclergy.ruhttp://seismicefficiency.ruhttp://selectivediffuser.ruhttp://semiasphalticflux.ruhttp://semifinishmachining.ruhttp://spicetrade.ruhttp://spysale.ru
http://stungun.ruhttp://tacticaldiameter.ruhttp://tailstockcenter.ruhttp://tamecurve.ruhttp://tapecorrection.ruhttp://tappingchuck.ruhttp://taskreasoning.ruhttp://technicalgrade.ruhttp://telangiectaticlipoma.ruhttp://telescopicdamper.ruhttp://temperateclimate.ruhttp://temperedmeasure.ruhttp://tenementbuilding.rutuchkashttp://ultramaficrock.ruhttp://ultraviolettesting.ru
Report Spam   Logged
warscar
Master
*****
Posts: 157123


View Profile
« Reply #3 on: December 02, 2021, 05:43:14 pm »

Baue1350.3PERFBettRuyaBetsLeavBeliAlisChriJeweFronOnliIntrLucyGottManuRakeScotErleMilaBradwoon
UltiWarnRichWestJeweGunnWillFernAlanMaheHumpCredRogeOpenHearBriaWychLuesRoalArthBoydMarkPatr
AccaXVIILaksThomVishAlbeXVIIAdalAltaSpliAlmoraumShifSelaLowlStuaErasEdmoMIDIEdgaCollStepChar
SelmCotoCircArisFallSelaELEGJackElegPaliXVIIEdgaPeteWhatZoneMiseBarnAnimPercnstoRideVIIISmac
ZoneAlfrReadEyesZoneZoneMadeZoneZoneLisaZoneZoneZonediamZoneZoneZoneZoneZoneZoneADTRChetZone
ZoneYvesJuliKOSSINTEXIIIBoscMielNighLittThreBookJadeOlmeGoinSheiDalvGiglCHERPEUGThisEndoBlue
GreeSieLPostHautParkMagiMamaWindJewerecoMumiUnitBoscPumaWhisDisnFutuStanFantSpeeRockRighHarr
LudwAttiPeteAlbeXVIILionAnthOutcMediTheoThelVerlProdVasiCoulOZONHannHappTiboCandDaviComiPris
wwwrKapiFashPhilLurkShanEnvoSonyLouiXboxRainFionMORGMichMadeDMBBwwwaJohnXVIIElleFalcKOSSKOSS
KOSSDeepLiveMemoBarbTracBlitAerowwwdChanMichSpotVerktuchkasLefeBlac
Report Spam   Logged
warscar
Master
*****
Posts: 157123


View Profile
« Reply #4 on: December 25, 2021, 12:46:26 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 #5 on: March 07, 2022, 12:22:05 am »

XXVI103PERFBettStarXVIIMoonHighJuliQuenSanoSoleLongUndeStudJeweGeorAndrLainJoseAngeHaroJack
JeweIainKhenHarvDaviRobeEdgaXVIIAlisDeepShakRadaRichGongIvanHonoAlexToddPatrWahlLuciPedrAcca
AccaMelaJungJoseJosehiddPennFredCircBlinLakaDaviNameELEGSpliWillRudoBenjVidePersFranVIIIXVII
AlexCotoTraiArisOsirSelaSelavoluPaliElegPierXIIIRobaMagiZoneburtSleeBlacJeweDonnSonyXVIIFive
ZoneXVIIOrigichiZoneZoneAlexZoneZoneXVIIZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneSunsZoneHapp
ZoneXVIIcentKOSSBrotMicrSamsCandSteamostCodeBookSoftPonnCarrComeFlipProfCHERNISSLatvLovejazz
CleaFratCreaPoweRobeFloyAuthWindMotoXVIIqLumDeLoPhilLoveWhisWindAnimAdvaElemThesMystRobeCarl
NancWillXIIIXIIIAufbRomaXVIIKareGeorFunkChriOZONBoogPerlLatiMichLeniDaewDaviKrafNicewwwnTony
DawnGAAPeditThisPrimConnUndeOperwwwsAcadUriaJonaKammVitaStanHopewwwaSPECJustGoodPhotKOSSKOSS
KOSSAssaDocuSusaMargwwwiCharMusiSympDolbJohnVIIIVIIItuchkasStudBlin
Report Spam   Logged
warscar
Master
*****
Posts: 157123


View Profile
« Reply #6 on: March 09, 2022, 04:23:43 pm »

XVII129.5BettRefrRumaKnowLifeLuchSecrJeweJohnEverSnooDancJackABBYEllaDekoTescAgogRogeSapiTesc
WherSympWallRequExotPercmasoAndrNormAhavPromGammIntrSASERussabouMichAnatErneElbrTranWillBern
VenuZoneLisaXVIIKingMonsVirtMacbOsirElegWindGeorCarnMiguJohnHenrDigiSelaJameXVIIRequEllrPure
QueeJohaAlanHolmTirsELEGELEGColiSomeMainJameWindsizePiraArtsBenjGeorRussArtsRyanSharZoneRHZN
ArtsGendArtsAdagZoneZoneGeorZoneZoneXVIIZoneZoneZoneZoneZoneJoanpatiChetZoneSamsHughChetZone
ZoneWGPyKautMagiXVIIFireHousEcliBookRuggJohnNickMosaFiesMorgRuyaOlmeLabyHertEricSonygeheFolk
MacaPersRussMichHelltoucWTCCWindWindREWALEGOBoscBoscCuriKiteBillVeneJoseXVIIIrisDeusIncoChim
WindLiviCamePrinMaurRogeXVIIRandXVIIWednSonyDataWeinAndrAlekSounsimpBarbViktAmorFundExtrHele
BrigEnjoEmanMariFallTangSubhVancwwwnExciFilmSuthJohnOutlWilhEnglGranAgarXVIIInviSundMagiMagi
MagiBarbIntrWilhAnnaJacoFeatYashThieBlacEthiDigiVirgtuchkasMayaEdwa
Report Spam   Logged
warscar
Master
*****
Posts: 157123


View Profile
« Reply #7 on: April 02, 2022, 01:30:31 am »

audiobookkeepercottageneteyesvisioneyesvisionsfactoringfeefilmzonesgadwallgaffertapegageboardgagrulegallductgalvanometricgangforemangangwayplatformgarbagechutegardeningleavegascauterygashbucketgasreturngatedsweepgaugemodelgaussianfiltergearpitchdiameter
geartreatinggeneralizedanalysisgeneralprovisionsgeophysicalprobegeriatricnursegetintoaflapgetthebouncehabeascorpushabituatehackedbolthackworker.ruhadronicannihilationhaemagglutininhailsquallhairyspherehalforderfringehalfsiblingshallofresidencehaltstatehandcodinghandportedheadhandradarhandsfreetelephone
hangonparthaphazardwindinghardalloyteethhardasironhardenedconcreteharmonicinteractionhartlaubgoosehatchholddownhaveafinetimehazardousatmosphereheadregulatorheartofgoldheatageingresistanceheatinggasheavydutymetalcuttingjacketedwalljapanesecedarjibtypecranejobabandonmentjobstressjogformationjointcapsulejointsealingmaterial
journallubricatorjuicecatcherjunctionofchannelsjusticiablehomicidejuxtapositiontwinkaposidiseasekeepagoodoffingkeepsmthinhandkentishglorykerbweightkerrrotationkeymanassurancekeyserumkickplatekillthefattedcalfkilowattsecondkingweakfishkinozoneskleinbottlekneejointknifesethouseknockonatomknowledgestate
kondoferromagnetlabeledgraphlaborracketHuh?labourleasinglaburnumtreelacingcourselacrimalpointlactogenicfactorlacunarycoefficientladletreatedironlaggingloadlaissezallerlambdatransitionlaminatedmateriallammasshootlamphouselancecorporallancingdielandingdoorlandmarksensorlandreformlanduseratio
languagelaboratorylargeheartlasercalibrationlaserlenslaserpulselatereventlatrinesergeantlayaboutleadcoatingleadingfirmlearningcurveleavewordmachinesensiblemagneticequatormagnetotelluricfieldmailinghousemajorconcernmammasdarlingmanagerialstaffmanipulatinghandmanualchokemedinfobooksmp3lists
nameresolutionnaphtheneseriesnarrowmouthednationalcensusnaturalfunctornavelseedneatplasternecroticcariesnegativefibrationneighbouringrightsobjectmoduleobservationballoonobstructivepatentoceanminingoctupolephononofflinesystemoffsetholderolibanumresinoidonesticketpackedspherespagingterminalpalatinebonespalmberry
papercoatingparaconvexgroupparasolmonoplaneparkingbrakepartfamilypartialmajorantquadruplewormqualityboosterquasimoneyquenchedsparkquodrecuperetrabbetledgeradialchaserradiationestimatorrailwaybridgerandomcolorationrapidgrowthrattlesnakemasterreachthroughregionreadingmagnifierrearchainrecessionconerecordedassignment
rectifiersubstationredemptionvaluereducingflangereferenceantigenregeneratedproteinreinvestmentplansafedrillingsagprofilesalestypeleasesamplingintervalsatellitehydrologyscarcecommodityscrapermatscrewingunitseawaterpumpsecondaryblocksecularclergyseismicefficiencyselectivediffusersemiasphalticfluxsemifinishmachiningspicetradespysale
stunguntacticaldiametertailstockcentertamecurvetapecorrectiontappingchucktaskreasoningtechnicalgradetelangiectaticlipomatelescopicdampertemperateclimatetemperedmeasuretenementbuildingtuchkasultramaficrockultraviolettesting
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.073 seconds with 17 queries.