1 | static S getClientIP() { |
2 | ifclass MyHTTPD { |
3 | SS headers = MyHTTPD_headers!; |
4 | if (headers != null) |
5 | ret getClientIPFromHeaders(headers); |
6 | } endif |
7 | ifclass WebSocketHTTPD { |
8 | SS headers = WebSocketHTTPD_headers!; |
9 | if (headers != null) |
10 | ret getClientIPFromHeaders(headers); |
11 | } endif |
12 | ret getClientIP_subBot(); |
13 | } |
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: | 681 / 646 |
Version history: | 5 change(s) |
Referenced in: | [show references] |