forked from CovidVaccine19qr/pentesterhelper.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi.html
More file actions
28 lines (24 loc) · 672 Bytes
/
api.html
File metadata and controls
28 lines (24 loc) · 672 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>
<html>
<head>
<title>Get IP Address</title>
<!-- Include jQuery library -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
</head>
<body>
<div>
<h1>IP Address: <span id="ipAddress"></span></h1>
</div>
<!-- JavaScript function to get IP Address -->
<script>
function getIp(ApiKey) {
$.getJSON("https://api.ipregistry.co/?key=" + ApiKey, function (data) {
$("#ipAddress").text(data.ip);
});
}
// Call the function with your API key
const apiKey = "05pd1dc541okwh48";
getIp(apiKey);
</script>
</body>
</html>