Miles' Blog

Welcome 2 My Planet

Available categories: [/] [working on downwap.] [trouble shooting] [working on Yup Mailman]

Get Ip Addr. From The HttpServletRequest Wrapped By The "iisforward" ISAPI Extension In Weblogic | 通过iisforward isapi ext访问weblogic的取ip问题 [Permalink]

Sun Oct 02 12:46:42 CST 2005

在IIS+Weblogic整合系统中,像移动网关一样,iisforward这个ISAPI过滤器也会对request对象进行再包装,附加一些WLS要用的头信息。这种情况下,直接用request.getRemoteAddr()是无法取到真正的客户IP的。

实际的iisforward附加头如下:

WL-Proxy-Client-IP=211.161.1.239
Proxy-Client-IP=211.161.1.239
X-Forwarded-For=211.161.1.239
WL-Proxy-Client-Keysize=
WL-Proxy-Client-Secretkeysize=
X-WebLogic-Request-ClusterInfo=true
X-WebLogic-KeepAliveSecs=30
X-WebLogic-Force-JVMID=-327089098
WL-Proxy-SSL=false
综上,正确作法如下:
public String getIpAddr(HttpServletRequest request) {
    String ip=request.getHeader("X-Forwarded-For");
    if(ip == null || ip.length() == 0) {
        ip=request.getHeader("Proxy-Client-IP");
    }
    if(ip == null || ip.length() == 0) {
        ip=request.getHeader("WL-Proxy-Client-IP");
    }
    if(ip == null || ip.length() == 0) {
        ip=request.getRemoteAddr();
    }
    return ip;
}
如此一来,就可适应各种情况,包括通过移动网关访问(会附加X-Forwarded-For)。通过这个简单例子可以看出封装和抽象的重要性。

Posted by: miles

Comments on this entry


Comment by: gas -
Left on: Wed May 30 21:01:20 CST 2007

phentermine buy phentermine cheap phentermine online phentermine phentermine online phentermine diet pill diet phentermine pill buy phentermine online buy online phentermine order phentermine phentermine prescription phentermine no prescription no phentermine prescription order phentermine online pharmacy phentermine phentermine pharmacy phentermine adipex adipex phentermine phentermine cheap discount discount phentermine phentermine pill purchase phentermine cash delivery phentermine phentermine cash on delivery cash delivery phentermine poll phentermine 37.5 37.5 phentermine xenical hgh phentermine quit smoking detox phentermine diet diet phentermine 37.5 mg phentermine 37,5 mg phentermine herbal phentermine phentermine on line online pharmacy phentermine phentermine online pharmacy 37.5mg phentermine hcl phentermine phentermine hcl drug buy no phentermine prescription prescription buy phentermine no prescription buy no phentermine prescription online phentermine prescription phentermine prescription online adipex medication phentermine phentermine cheap no prescription cheap no phentermine prescription no prescription needed phentermine needed no phentermine prescription custom health hrt phentermine phentermine by consolidation debt phentermine popl powere adipex fastin p phentermine where to buy phentermine buy phentermine where where to buy phentermine online adipex ionamin phentermine online pharmacy phentermine cod cod online pharmacy phentermine phentermine for sale online phentermine sale phentermine sale type of phentermine phentermine weight loss result loss phentermine weight phentermine weight loss cheap phentermine online cheap online phentermine phentermine review how does phentermine work does phentermine work hycrococone phentermine phentermine online purchase online phentermine purchase blog herbal hoodia phentermine herbal hoodia phentermine 37.5 cheap no phentermine prescription phentermine 37.5 no prescription 37.5 no phentermine prescription buy 30mg phentermine adipex drug phentermine vs adipex phentermine vs celexa phentermine buy line phentermine buy phentermine on line 37 5mg cheap phentermine phentermine online diet pill direct order phentermine direct phentermine phentermine picture pill phentermine 37.5mg tablet cheapest online phentermine cheapest phentermine online phentermine sales buying phentermine phentermine buying buying phentermine online diet drug phentermine pill search phentermine adipex search phentermine phentermine search obtain online phentermine prescription lowest phentermine price purchase buy phentermine diet pill online buy phentermine diet pill lowest phentermine price phentermine phentermine buy phentermine utc wiki buy phentermine wiki phentermine online pharmacy canada canada online pharmacy phentermine buy phentermine 37.5 37.5 90 phentermine phentermine online doctor 1 30mg buy phentermine blog buy phentermine phentermine prescription line does herbal phentermine work phentermine legal online canadian pharmacy phentermine online order phentermine prescription meridia cheap meridia buy meridia meridia online meridia weight loss discount meridia generic meridia meridia online pharmacy phentermine xenical meridia diet pill order meridia online meridia attorney meridia coupon coupon meridia loss meridia review weight meridia success story euclid hospital meridia how does meridia work meridia diet drug meridia weight loss drug buy meridia online buy cheap meridia meridia order meridia ups meridia pill cheapest meridia adipex hoodia meridia phentermine meridia diet meridia information meridia 10mg buy free low meridia price shipping meridia prescription adipex meridia phentermine xenical meridia effectiveness meridia testimonials order meridia cheap meridia phentermine meridia wellbutrin coupon discount meridia meridia success meridia prozac loss medication meridia weight sibutramine generic meridia dose effects meridia side alabama legal meridia florida legal meridia purchase meridia online low cost meridia meridia cod buy meridia mg california legal meridia arizona legal meridia adipex vs meridia effects meridia sibutramine side side effects diet pill meridia diet effects meridia pill side cheap meridia paris meridia vs xenical breckenridge lawyer meridia adipex buy meridia book booker cheap com guest site tramadol book boyd cheap com guest site tramadol book brain buy guest ru site tramadol book britney cheap com guest site tramadol book burning buy by gold optionen powered tramadol book burt buy com guest site tramadol book burt cheap com guest site tramadol book buy ca discount guest site tramadol book buy celeste com guest site tramadol book buy ch discount guest site tramadol book buy cheap guest site tramadol book buy cheri com guest site tramadol book buy christian guest ru site tramadol book buy christie com guest site tramadol book buy clarence com guest site tramadol book buy clement com guest site tramadol book buy clifford com guest site tramadol book buy cn discount guest site tramadol book buy com cristina guest site tramadol book buy com dale guest site tramadol book buy com derrick guest site tramadol book buy com desmond guest site tramadol book buy com discount guest site tramadol book buy com dorian guest site tramadol book buy com dwight guest site tramadol book buy com ebony guest site tramadol book buy com eldon guest site tramadol book buy com elisa guest site tramadol book buy com emery guest site tramadol book buy com emile guest site tramadol book buy com emory guest site tramadol book buy com esmeralda guest site tramadol book buy com esther guest site tramadol book buy com faith guest site tramadol book buy com fidel guest site tramadol book buy com frederic guest site tramadol book buy com gale guest site tramadol book buy com guest guy site tramadol book buy com guest heather site tramadol book buy com guest isaiah site tramadol book buy com guest karina site tramadol book buy com guest kris site tramadol book buy com guest lacey site tramadol book buy com guest leila site tramadol book buy com guest minerva site tramadol book buy com guest myron site tramadol book buy com guest rena site tramadol book buy com guest rick site tramadol book buy com guest saul site tramadol book buy com guest scot site tramadol book buy com guest site sylvester tramadol book buy de discount guest site tramadol book buy discount dk guest site tramadol book buy discount guest info site tramadol book buy discount guest it site tramadol book buy discount guest net site tramadol book buy discount guest nl site tramadol book buy discount guest org site tramadol book buy discount guest pl site tramadol book buy discount guest ru site tramadol book buy discount guest site tramadol book buy discount guest site tramadol tw book buy guest now site tramadol book buy guest online php tramadol view book buy guest online purple tramadol yin book buy guest online sign tramadol book buy guest online tramadol view book buy guest php tramadol view book buy guest purple tramadol yin book buy guest sign tramadol book buy guest tramadol view book carmen cheap com guest site tramadol book carmen com guest site tramadol book cecil cheap com guest site tramadol book cheap christian com guest site tramadol book cheap christie com guest site tramadol book cheap clare com guest site tramadol book cheap clarence com guest site tramadol book cheap com cristina guest site tramadol book cheap com dale guest site tramadol book cheap com dorian guest site tramadol book cheap com eddy guest site tramadol book cheap com eduardo guest site tramadol book cheap com elias guest site tramadol book cheap com emmett guest site tramadol book cheap com ernie guest site tramadol book cheap com erwin guest site tramadol book cheap com ester guest site tramadol book cheap com esther guest site tramadol book cheap com felicia guest site tramadol book cheap com guest helene site tramadol book cheap com guest hubert site tramadol book cheap com guest iva site tramadol book cheap com guest jarvis site tramadol book cheap com guest javier site tramadol book cheap com guest jimmie site tramadol book cheap com guest jo site tramadol book cheap com guest jodi site tramadol book cheap com guest juanita site tramadol book cheap com guest jules site tramadol book cheap com guest katy site tramadol book cheap com guest kelsey site tramadol book cheap com guest lacy site tramadol book cheap com guest lilly site tramadol book cheap com guest lina site tramadol book cheap com guest lonnie site tramadol book cheap com guest madeline site tramadol book cheap com guest marquis site tramadol book cheap com guest merlin site tramadol book cheap com guest merrill site tramadol book cheap com guest micah site tramadol book cheap com guest myron site tramadol book cheap com guest nestor site tramadol book cheap com guest nolan site tramadol book cheap com guest patsy site tramadol book cheap com guest quincy site tramadol book cheap com guest quinton site tramadol book cheap com guest ramona site tramadol book cheap com guest rosemary site tramadol book cheap com guest salvatore site tramadol book cheap com guest saul site tramadol book cheap com guest site tramadol trina book cheap guest john ru site tramadol buy cheap tramadol hydrochloride ultram buy here tramadol cheap cod fre tramadol cod pay tramadol cod pharmacy tramadol drug hydrochloride risk tramadol drug information keyword tramadol drug information medline plus tramadol drug interactions tramadol elavil drug testing and tramadol drug tramadol price list hcl mg tramadol hydrochloride tablet tramadol hydrocodone mexican pharmacy what is tramadol ic tramadol hcl purchase tramadol hydrochloride tramadol hcl aceaminophen tramadol hcl effects tramadol hydrochloride ac tramadol hydrochloride cod tramadol hydrochloride description tramadol hydrochloride dose tramadol hydrochloride effects tramadol hydrochloride overdose tramadol hydrochloride uk tramadol is tramadol is a tramadol medicine online tramadol online tramadol online medication tramadol order by 3 00 pm online adipex phentermine prescriptions online consultation phentermine online consultations and prescriptions phentermine online order phentermine online order phentermine price online page phentermine online pharmacies phentermine xenical meridia online pharmacy and phentermine online phentermine physician online phentermine prescription online phentermine rx online phentermine rx withou online phentermine store bontril phentermine book buy com guest ida online phentermine site book buy com guest kerry phentermine site book buy com guest lora online phentermine site book buy com guest minerva online phentermine site book buy com guest number online phentermine site book buy com guest online patsy phentermine site book buy com guest online phentermine site tasha book buy com guest online phentermine shari site book buy com guest online phentermine site willa book buy com guest phentermine prozac site book buy com guest phentermine rochelle site book buy com guest phentermine sherri site phentermine and soma online pharmacy
Comment by: gas -
Left on: Tue Jun 05 17:13:01 CST 2007

buy soma buy soma online cheap soma soma online soma carisoprodol order soma generic soma buy cheap soma buy soma carisoprodol watson soma prescription soma soma drug purchase soma online information on soma soma sonic discount soma cheap soma online meatholes soma soma 350mg soma fm purchase soma soma seed order soma online cruises soma soma cod soma bay soma sd soma com picture of soma soma effects soma bike soma apartment soma network buy phentermine order phentermine hoodia and phentermine purchase phentermine 37.5mg phentermine boom phentermine phentermine hcl cheapest phentermine 37 5mg phentermine phentermine weight loss phentermine forum phentermine prescription online phentermine for sale buy phentermine no prescription phentermine hydrochloride phentermine yellow 37 5 consultation phentermine phentermine online buy phentermine online effects evra ortho side evra ortho recall sprint ringtone download free ringtone cingular ringtone verizon ringtone free nokia ringtone free sprint ringtone motorola ringtone download ringtone free cell phone ringtone mosquito ringtone nextel ringtone free cingular cell phone ringtone polyphonic ringtone download free verizon ringtone new ringtone cell phone ringtone free cingular ringtone mp3 ringtone t mobile ringtone nokia ringtone free mp3 ringtone free verizon ringtone free t mobile ringtone free alltel ringtone free nextel ringtone verizon wireless ringtone free motorola ringtone 24 ringtone free virgin mobile ringtone alltel ringtone samsung ringtone download free ringtone t mobile ringtone maker download cingular ringtone nickelback ringtone music ringtone real music ringtone ringtone free polyphonic ringtone real music ringtone 100 free ringtone free tracfone ringtone hotlink caller ringtone ringtone com free us cellular ringtone free metro pcs ringtone madonna ringtone us cellular ringtone free cricket ringtone cricket ringtone free samsung ringtone funny ringtone real ringtone free real music ringtone sprint yahoo ringtone free mobile ringtone lg ringtone metro pcs ringtone tracfone ringtone virgin mobile ringtone buy tramadol buy tramadol online buy tramadol twinpharm buying tramadol online cheap tramadol cheap tramadol buy online cheap tramadol online cheapest tramadol cod pharmacy tramadol com link online splinder tramadol cod tramadol money orders cod pay tramadol cod overnight tramadol order prescription tramadol order tramadol order tramadol online order valium buy now tramadol overnight tramadol picture of tramadol online tramadol tramadol 100 mg no prescription tramadol 3f tramadol 50mg tramadol 50 mg tablet tramadol 50mg capsules tramadol abuse tramadol acet tramadol canada tramadol cheap tramadol cheap online tramadol cod tramadol cod accepted tramadol drug tramadol drug info tramadol erowid tramadol hcl cause pain tramadol hcl vs darvocet tramadol high tramadol hydrochloride cod tramadol hydrochloride overdose tramadol hydrocloride tramadol hydrocodone buy viagra online buy viagra order viagra cheap viagra online viagra viagra online generic viagra buy online viagra order viagra online herbal viagra discount viagra viagra pill viagra pharmacy viagra alternative viagra prescription viagra sale purchase viagra purchase viagra online alternative blood flow natural viagra viagra price cialis levitra viagra viagra cialis levitra cheap viagra online buy viagra on line viagra cost cost viagra cialis generic viagra buy viagra cheap buying viagra buy cheap viagra cialis comparison levitra viagra cialis comparison levitra study viagra viagra sales online viagra sales where to buy viagra pfizer viagra official pfizer viagra advice viagra hardcore anime milf hardcore hardcore sex video amateur hardcore hardcore pussy free hardcore fucking movie hardcore lesbian sex jenna jameson hardcore black hardcore american hardcore hardcore toons hardcore porn movie cartoon hardcore hardcore blow job hardcore sex picture hardcore asian anal hardcore interracial porn japanese hardcore free hardcore pic free hardcore sex video hardcore group sex hardcore anal sex hardcore gang bang hardcore sex photo hardcore movie forum hardcore facial hardcore gay sex extreme hardcore porn hardcore boob hardcore picture sex hardcore fuck hardcore comic hardcore gallery young teen hardcore teen hardcore pic hardcore bondage hardcore porn star free hardcore sex picture hardcore fucking gallery asian teen hardcore hardcore anal fucking blonde hardcore hardcore day and soft core night video post hardcore hardcore sex series free hardcore movie hardcore com hardcore video sample plumper hardcore hardcore mom free hardcore fucking interracial hardcore free hardcore porn video hardcore sex party hardcore sex movie cumming shemale anime shemale latina shemale beautiful shemale clip shemale huge shemale free gallery shemale list shemale big shemale tit cute shemale shemale yum shemale surprise mature shemale big shemale hard shemale jerking shemale hose pantie shemale cartoon shemale demon shemale shemale xxx female shemale shemale vids shemale thai shemale shemale fucking guy shemale horny shemale masturbating shemale fat shemale shemale slut chat shemale screen shemale shemale us shemale thumb shemale vanity club shemale comic shemale group shemale masturbation shemale busty shemale shemale story barbarian shemale bang gang shemale porn shemale star guy shemale shemale woman latin shemale nude shemale pretty shemale shemale threesome dating shemale dildo shemale phentermine buy phentermine cheap phentermine phentermine online phentermine diet pill phentermine prescription buy phentermine online order phentermine hoodia and phentermine purchase phentermine discount phentermine phentermine pill phentermine 37.5 37.5mg phentermine by consolidation debt phentermine popl powere phentermine on line phentermine pharmacy phentermine online pharmacy boom phentermine xenical hgh phentermine quit smoking detox cheapest phentermine 37,5 mg phentermine phentermine weight loss phentermine cheap discount cheap phentermine free shipping custom hrt phentermine phentermine forum phentermine prescription online generic phentermine phenterminegeneric.com phentermine worldwice buy phentermine no prescription phentermine information discount phentermine online phentermine yellow buy phentermine online with pay pal buy link online.blogspot.com phentermine phentermine canada line night over phentermine prescription service buy 30mg phentermine adipex effects p phentermine side 37 effects phentermine side phentermine side effects danger adipex medication phentermine phentermine 37 5mg no prescription generic phentermine phentermine lortab online blue phentermine 30 mg herbal phentermine ingredient phentermine review buy phentermine diet pill buy cialis online buy cialis online cialis cialis online cialis order order cialis cialis levitra cialis generic cheap cialis cialis levitra viagra viagra cialis levitra cialis tadalafil cialis generic viagra cialis 20mg cialis drug cialis comparison levitra study viagra cialis comparison levitra viagra cialis sale cialis purchase buy cheap cialis cheapest cialis viagra cialis cialis viagra cialis online pharmacy cialis uk cialis levitra vs generic cialis tadalafil cialis generic tadalafil cialis prescription cialis prescription online cialis levitra sales viagra buy cialis now buying generic cialis cialis soft tab discount cialis cheapest cialis generic cialis levitra viagra vs vs cheap cialis generic cheap generic cialis cialis compare levitra viagra buy tadalafil cialis generic cialis price buy cialis generic buy cialis generic online cialis pill order cialis online cialis vs viagra cialis pharmacy cialis price discount generic cialis buy cialis internet line which cialis generic levitra viagra order generic cialis buy cheap cialis cialis online cheap cialis online generic cialis online cialis generic online
Comment by: gur -
Left on: Wed Jun 13 18:33:32 CST 2007

sipping soma sleep soma soma soma 350mg soma 5513 soma abuse soma alcohol soma and soma and alcohol soma and beverly soma and drug testing soma and drug tests soma and hydrocodone soma and pregnancy soma and psyche soma apartment soma apartments soma arts soma aryan soma bay soma bay eygpt soma bay hotels soma beverly soma beverly ma soma beverly mass soma beverly restaurant soma bicycle soma bicycle frame soma bicycle frames soma bicycles soma bike soma bikes soma biswas soma biswas esoterix soma by watson soma ca soma cafe soma cafe phoenix soma cafe vancouver soma california soma canada soma carisoprodol soma center soma center nj soma chair soma chairs soma cheap soma club soma clubs soma cod soma com soma comfort soma communications soma company soma compund soma computers soma concert soma concerts soma cruz soma cube buy soma cycle soma cycles soma design soma diet soma double cross soma erowid soma finance soma financial soma fit soma fit dc soma fit spa soma fit washington soma fitness soma fm soma fm drone zone soma furniture soma gallery bristol soma gallery philadelphia soma gallery salon soma gallery salon philadelphia soma generic soma generic name soma getting soma grand soma half soma health soma health insurance soma healthcare soma holiday soma holidays soma hotel soma hotels soma houseboats soma info soma institute seattle soma institute washington soma life soma life ghp soma line soma massage vancouver soma massage ottawa soma massage rochester soma mattress soma mattresses soma medical soma medicine soma mestizo soma mexico soma model soma music soma net soma networks soma nyc soma nyc diesel soma online soma online pharmacy soma pain soma model soma pake soma parking soma pharmacy soma philadelphia soma philippines soma pregnancy soma psyche soma puzzle soma puzzle solution soma puzzles soma quarterman soma radio soma raju soma record soma recording soma recording chicago soma recordings soma records soma records glasgow soma records story soma residence soma residences soma restaurant soma restaurant beverly soma restaurant in beverly soma restaurant ma soma restaurant phoenix soma restaurants soma riba soma salon soma san soma san diegoca soma sd soma seed soma seed bank soma seeds soma sekhar soma sf soma sf radio soma sleep soma solution for body builders online soma sonic soma spa soma spa boston soma spa ma soma spa massachusetts soma spa philadelphia soma spas soma studio soma studio denver soma studio vancouver soma studio yoga soma studios soma studios vancouver soma systems soma taki soma technologies soma technology soma temp soma tempe soma therapy soma therapy ed soma thero soma tri soma triathalon soma used soma used for soma watson soma with codeine soma with prednisone soma xanax soma yaki soma yoga soma yoga ithaca soma yoga newport soma yoga seattle soma yoga studio soma yoga studio utah soma yoga utah bay soma bay soma publishing bessie book buy com guest site soma bicycle soma bike soma buy carisoprodol soma buy cheap discounted soma buy cheap mow soma buy cheap soma buy comment post soma buy line soma buy online soma buy online soma tramadol buy soma buy soma cheap buy soma line buy soma online buy soma statistics usage buy somacid cheap buy somas online buy watson soma cheap by soma watson cafe soma canada soma carisoma carisoprodol carisoprodol 350mg soma carisoprodol comment leave soma carisoprodol comment post soma carisoprodol doctor soma carisoprodol drug soma carisoprodol genericforsoma carisoprodol soma cheap comment post soma cheap generic soma cheap online order soma cheap online soma cheap order soma cheap soma cheap soma and fioricet cheap soma medication cheap soma order online club soma cod pay soma com soma comment online post soma cruz soma cruises soma cruise soma cubo soma discount soma doublecross soma drug info soma drug information soma drug medication soma dwi soma drug soma test drug soma testing erowid soma finance soma financial soma generic soma generic soma cheap generic soma online generic soma overnight hatsuharu soma homatropine hydrocodone buy soma i soma info soma information on soma latina maids soma legend of soma life soma line soma louis soma manna and soma meatholes soma medicine soma mestizo soma mexican soma mexico soma mitsuko soma model soma momiji soma mp58 soma music soma nyc soma online order soma online pharmacy to order soma the medication order soma order soma online phentermine soma phoenix soma phoenix soma game phoenix soma server picture of soma picture soma pro soma radio soma raged soma ragezone soma rapid prompting method soma record soma recording soma refunds soma sd soma seed soma sex drug soma american soma american soma island abu soma abu soma hotel abu soma weather add carisoprodol comment soma buy tramadol tramadol online order tramadol tramadol prescription buy tramadol online purchase tramadol tramadol ultram tramadol overdose overnight tramadol description tramadol cheap tramadol buy drug tramadol 50 mg tramadol tramadol hcl tramadol 180 generic tramadol desk prescription tramadol order tramadol online tramadol hydrochloride discount tramadol online pharmacy tramadol tramadol 50mg image of tramadol image tramadol tramadol picture tramadol 50mg picture tramadol used for 2dir tramadol drug tramadol 100mg er hcl tramadol ultram order20 tramadol cheap tramadol online 50 dose mg tramadol archive blog buy inurl tramadol tramadol without prescription pregnancy tramadol forex trading tramadol tramadol cod tramadol tablet tramadol line buy cheap tramadol drug information keyword tramadol drug testing and tramadol 120 tramadol cod drug more tramadol use 180 cod tramadol buy phentermine cheap phentermine online phentermine phentermine online cheap online phentermine order phentermine phentermine prescription phentermine no prescription adipex phentermine purchase phentermine phentermine 37.5 37.5 phentermine phentermine 37.5 mg xenical hgh phentermine quit smoking detox by consolidation debt phentermine popl powere buy cheap phentermine online phentermine prescription phentermine prescription online where to buy phentermine buy phentermine where phentermine worldwice cheap phentermine cheap phentermine 37 cheap phentermine 37.5mg cheap phentermine and xanax cheap phentermine canada cheap phentermine com cheap prices phentermine cheapest buy phentermine phentermine online cheap phentermine online check phentermine online cod phentermine online com phentermine online no prescription phentermine online ordering phentermine online overnight phentermine online pay with mastercard phentermine online prescription phentermine online prescriptions phentermine online purchase phentermine online site compared phentermine online stores



Author (*):
Verify Code (*):8 9 7 9
E-mail:
URL:
Comment (*):
Remember me?

Available categories: [/] [working on downwap.] [trouble shooting] [working on Yup Mailman]

Powered By blojsom   RSS Feed  RSS2 Feed  RDF Feed