static S getClientIP() { ifclass MyHTTPD { SS headers = MyHTTPD_headers!; if (headers != null) ret getClientIPFromHeaders(headers); } endif ifclass WebSocketHTTPD { SS headers = WebSocketHTTPD_headers!; if (headers != null) ret getClientIPFromHeaders(headers); } endif ret getClientIP_subBot(); }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1002945 | 
| Snippet name: | getClientIP - for web bots, may return two addresses separated by comma (second one is x-forwarded-for) | 
| Eternal ID of this version: | #1002945/6 | 
| Text MD5: | d1646db5ab91793b82d92797f598e81a | 
| Author: | stefan | 
| Category: | eleu / javax | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2018-01-03 02:51:07 | 
| Source code size: | 346 bytes / 13 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 921 / 895 | 
| Version history: | 5 change(s) | 
| Referenced in: | [show references] |