| | #1 |
| New Warrior Member Join Date: 2007 Location: , , .
Posts: 20
Thanks: 3
Thanked 1 Time in 1 Post
|
Hello Forum! I apologize if this has already been asked and answered here. How do I code my web site so that I can sniff out the IP address of the person visiting the site? I want to then redirect the user according to their IP address. Specifically, if the user is coming from an Arabic or Farsi country state, I want to redirect them to a different page (then if they specifically request to see the content in English, I will remember this by a cookie). |
| |
| | #2 |
| PHP ninja War Room Member Join Date: 2011 Location: Denver
Posts: 124
Thanks: 13
Thanked 27 Times in 25 Posts
| |
|
The best path to prosperity is free market capitalism!
| |
| |
| | #3 |
| Warrior Member Join Date: 2015 Location: Panama
Posts: 0
Thanks: 0
Thanked 0 Times in 0 Posts
|
Do you know what the backend technology is? PHP is most common around here, especially with WordPress. Assuming you're using PHP - Use this: echo $_SERVER['REMOTE_ADDR']; PHP: $_SERVER - Manual |
| |
| | #4 |
| Warrior Member Join Date: 2014
Posts: 18
Thanks: 2
Thanked 0 Times in 0 Posts
|
If you are using php this is easily achievable. Just check geoip or better yet contact me and I will give you an example of a site I created that shoes the country you are coming from, ip and other stuffs |
| |
|
| Bookmarks |
| Tags |
| address, sniffing |
| |