Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

13
LINES

< > BotCompany Repo | #1008750 // IP & Country Web Bot

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (1671L/12K/40K).

!7

html {
  S ip = params.get("ip");
  if (nempty(ip)) {
    S country = ipToCountry(ip);
    ret "IP: " + ip + "<br>Country: " + or(country, "?");
  } else {
    ip = directClientIP();
    S country = ipToCountry(ip);
    ret "Your IP: " + ip + "<br>Your country: " + or(country, "?");
  }
}

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: #1008750
Snippet name: IP & Country Web Bot
Eternal ID of this version: #1008750/8
Text MD5: 74990e705c54f53e3ac2b1b11aabff4b
Transpilation MD5: 20087892da3506763b156322e73dac26
Author: stefan
Category: javax / html
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-07-17 00:26:52
Source code size: 305 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 716 / 9809
Version history: 7 change(s)
Referenced in: #1018598 - eleu_ipToCountry (defunct)