-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
165 lines (130 loc) · 5.64 KB
/
index.php
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<?php
$get = $_GET['id'];
$result = file_get_contents('https://hadi-api.herokuapp.com/api/iplookup?ip='.$get);
$data = json_decode($result);
$country = $data->result->country;
$code = $data->result->countryCode;
$city = $data->result->city;
$region = $data->result->regionName;
$zip = $data->result->zip;
$name =$data->result->org;
$isp = $data->result->isp;
?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<!-- MyCSS -->
<link rel="stylesheet" href="style.css">
<!-- font -->
<link href="https://fonts.googleapis.com/css2?family=Viga&display=swap" rel="stylesheet">
<title>Free Domain and IP Lookup</title>
</head>
<body>
<!-- Style -->
<style type="text/css">
html, body {
overflow: hidden;
}
</style>
<!-- End Style -->
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-dark bg-success fixed-top">
<div class="container">
<a class="navbar-brand" href="/">Welcome</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<div class="navbar-nav ml-auto">
<a class="nav-item nav-link active" href="#">Home <span class="sr-only">(current)</span></a>
<a class="nav-item nav-link" href="https://info-ogya.blogspot.com">Blog</a>
<a class="nav-item nav-link" href="https://github.com/adytm404">Github</a>
<a class="nav-item nav-link" href="https://instagram.com/ogya_adytm">Instagram</a>
</div>
</div>
</div>
</nav>
<!-- end navbar -->
<!-- search box -->
<div class="cotainer">
<div class="row justify-content-center search-box">
<div class="col-lg-9">
<h4>IP Lookup</h4>
<div class="input-group mb-3">
<input type="text" class="form-control" placeholder="Search your ip here..." id="search-input">
<div class="input-ip">
<button class="btn btn-success" type="button" id="search-button" >Search</button>
</div>
</div>
</div>
</div>
</div>
<hr>
<!-- end search box -->
<!-- alert -->
<div class="container">
<div class="row alert justify-content-center">
<div class="col-lg-8">
<h4><?=$get?></h4>
</div>
</div>
</div>
<!-- end alert -->
<!-- container -->
<div class="container">
<div class="row justify-content-center">
<div class="col-10 main-box">
<div class="row">
<div class="col">
<div class="card bg-white justify-content-center d-flex">
<div class="card-body">
<h5 class="card-text organitation">Name: <?=$name?></h5>
<p class="card-text isp">ISP Provider: <?=$isp?></p>
</div>
<div class="card-header country-name">
Country: <?=$country?>
</div>
<div class="card-header country-code">
Code: <?=$code?>
</div>
<div class="card-header city">
City: <?=$city?>
</div>
<div class="card-header region">
Region: <?=$region?>
</div>
<div class="card-header zip">
Zip Code: <?=$zip?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- end container -->
<div class="container">
<!-- footer -->
<div class="footer fixed-bottom">
<div class="row">
<div class="col">
<h4>2021 All Right Reserved by Ogya Adyatma Putra</h4>
</div>
</div>
</div>
<!-- end footer -->
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<script src="script.js"></script>
</body>
</html>