get client location by client ip

This commit is contained in:
Bangara Raju Kottedi 2024-02-09 11:41:06 +05:30
parent 5b44a4c64e
commit 349efbe2b5
3 changed files with 6 additions and 5 deletions

View File

@ -2,7 +2,7 @@
title: Future Post
date: 2023-07-23 0:00:00 +0530
tags: [test, self-hosted]
---
# Future Post Modified

View File

@ -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>

View File

@ -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