README.md 2.65 KB
Newer Older
wtfismyip's avatar
wtfismyip committed
1
2
# wtfismyip

wtfismyip's avatar
wtfismyip committed
3
1. This is the fucking source code for https://wtfismyip.com/. There isn't much to it.
wtfismyip's avatar
wtfismyip committed
4
2. This is now a fucking community project. Send a pull request to make it better.
wtfismyip's avatar
wtfismyip committed
5
3. Backend is also accessible on https://myip.wtf/ because typing sucks.
DigitalCyan's avatar
DigitalCyan committed
6
7
8

# Main fucking endpoints

DigitalCyan's avatar
DigitalCyan committed
9
10
`/headers`

DigitalCyan's avatar
DigitalCyan committed
11
12
This one tells you what fucking data you're giving when connecting to a server.

DigitalCyan's avatar
DigitalCyan committed
13
14
`/json`

DigitalCyan's avatar
DigitalCyan committed
15
16
Gives you exactly what the main endpoint does except it gives it in raw fucking [JSON](https://www.json.org/json-en.html).

DigitalCyan's avatar
DigitalCyan committed
17
18
`/xml`

DigitalCyan's avatar
DigitalCyan committed
19
20
Just like /json but fucking worse (read about it [here](https://en.wikipedia.org/wiki/XML)).

DigitalCyan's avatar
DigitalCyan committed
21
22
`/text`

DigitalCyan's avatar
DigitalCyan committed
23
24
Gives you just your IP in plain fucking text.

wtfismyip's avatar
wtfismyip committed
25
26
27
28
`/yaml`

YAML, because why the fuck not?

DigitalCyan's avatar
DigitalCyan committed
29
30
`/why`

DigitalCyan's avatar
DigitalCyan committed
31
32
Tells you why the fuck we do what we do.

DigitalCyan's avatar
DigitalCyan committed
33
34
`/automation`

DigitalCyan's avatar
DigitalCyan committed
35
36
Tells you what you can and can not do with the hosted instance of the fucking service.

DigitalCyan's avatar
DigitalCyan committed
37
38
`/privacy`

DigitalCyan's avatar
DigitalCyan committed
39
40
Tells you exactly how much we respect your fucking privacy.

DigitalCyan's avatar
DigitalCyan committed
41
42
`/donate`

DigitalCyan's avatar
DigitalCyan committed
43
44
Makes our fucking services run.

DigitalCyan's avatar
DigitalCyan committed
45
46
`/traffic`

DigitalCyan's avatar
DigitalCyan committed
47
48
Shows you the traffic from fuckers around the world that came to fuck with us.

wtfismyip's avatar
wtfismyip committed
49
50
`/clean`

wtfismyip's avatar
wtfismyip committed
51
Use this at church, motherfucker.
wtfismyip's avatar
wtfismyip committed
52

53
54
55
56
57
58
59
# Dual-stack hostname endpoints

*wtfismyip.com is dual-stack. Operating system defaults and network connectivity will determine whether you get an IPv4 or IPv6 address. That can be really fucking annoying, so we also have IPv4/IPv6-only endpoints as documented below.*

- `https://text.myip.wtf/`
- `https://json.myip.wtf`
- `https://xml.myip.wtf`
wtfismyip's avatar
wtfismyip committed
60
61
62
- `https://text.wtfismyip.com/` 
- `https://json.wtfismyip.com/`
- `https://xml.wtfismyip.com/`
63
64
65

# IPv4 hostname endpoints

wtfismyip's avatar
wtfismyip committed
66
67
*Useful for automation, curl, terminal usage*

68
69
70
71
72
73
- `https://text.ipv4.myip.wtf/`
- `https://ipv4.text.myip.wtf/`
- `https://json.ipv4.myip.wtf/`
- `https://ipv4.json.myip.wtf/`
- `https://xml.ipv4.myip.wtf/`
- `https://ipv4.xml.myip.wtf/`
wtfismyip's avatar
wtfismyip committed
74
75
76
77
78
79
- `https://text.ipv4.wtfismyip.com/`
- `https://ipv4.text.wtfismyip.com/`
- `https://json.ipv4.wtfismyip.com`
- `https://ipv4.json.wtfismyip.com/`
- `https://xml.ipv4.wtfismyip.com/`
- `https://ipv4.xml.wtfismyip.com/`
80

wtfismyip's avatar
wtfismyip committed
81
82
83
84
85
*Or if you're stuck in a browser*

- `https://ipv4.wtfismyip.com`
- `https://ipv4.myip.wtf`

86
87
# IPv6 hostname endpoints

wtfismyip's avatar
wtfismyip committed
88
89
*Useful for automation, curl, terminal usage*

90
91
92
93
94
95
- `https://text.ipv6.myip.wtf/`
- `https://ipv6.text.myip.wtf/`
- `https://json.ipv6.myip.wtf/`
- `https://ipv6.json.myip.wtf/`
- `https://xml.ipv6.myip.wtf/`
- `https://ipv6.xml.myip.wtf/`
wtfismyip's avatar
wtfismyip committed
96
97
98
99
100
101
- `https://text.ipv6.wtfismyip.com/`
- `https://ipv6.text.wtfismyip.com/`
- `https://json.ipv6.wtfismyip.com`
- `https://ipv6.json.wtfismyip.com/`
- `https://xml.ipv6.wtfismyip.com/`
- `https://ipv6.xml.wtfismyip.com/`
wtfismyip's avatar
wtfismyip committed
102
103
104
105
106

*Or if you're stuck in a browser*

- `https://ipv6.wtfismyip.com`
- `https://ipv6.myip.wtf`