get client location by client ip
This commit is contained in:
parent
5b44a4c64e
commit
349efbe2b5
@ -2,7 +2,7 @@
|
||||
|
||||
title: Future Post
|
||||
date: 2023-07-23 0:00:00 +0530
|
||||
|
||||
tags: [test, self-hosted]
|
||||
---
|
||||
|
||||
# Future Post Modified
|
||||
@ -42,9 +42,9 @@
|
||||
}
|
||||
});
|
||||
|
||||
var apiUrl = serviceUrl + "/GetHeaderData";
|
||||
var apiUrl = serviceUrl + "/GetMyLocation";
|
||||
ajax(apiUrl)
|
||||
.then(function (result) {
|
||||
console.log("Client Ip: " + result);
|
||||
console.log(result);
|
||||
})
|
||||
</script>
|
||||
@ -4,11 +4,12 @@
|
||||
|
||||
CREATE USER blog_admin@'%' IDENTIFIED BY 'pass@1234';
|
||||
|
||||
GRANT ALL PRIVILEGES ON blogDB.* TO blog_admin@'%';
|
||||
GRANT ALL PRIVILEGES ON blogDB.* TO blog_admin@'192.168.0.%';
|
||||
GRANT ALL PRIVILEGES ON blogDB.* TO blog_admin@'10.1.0.%';
|
||||
|
||||
SHOW GRANTS FOR blog_admin@'%';
|
||||
|
||||
FLUSH PRIVILEGES
|
||||
FLUSH PRIVILEGES;
|
||||
|
||||
-- Create Counter Table
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user