Results 1 to 11 of 11
Thread: web design
-
06-28-2016, 12:25 AM #1New Member
- Join Date
- Jun 2016
- Posts
- 1
web design
How we get IP address of client, previous reference page etc ?
0
-
06-28-2016, 12:27 AM #2The Linux Specialist
- Join Date
- Mar 2003
- Location
- /root
- Posts
- 23,991
What do you mean?
Specially 4 U
Reseller Hosting: Boost Your Websites | Fully Managed KVM VPS: 3.20 - 5.00 Ghz, Pure Dedicated Power
JoneSolutions.Com is on the net 24/7 providing stable and reliable web hosting solutions, server management and services since 2001
Debian|Ubuntu|cPanel|DirectAdmin|Enhance|Webuzo|Acronis|Estela|BitNinja|Nginx
0
-
06-28-2016, 06:04 AM #3Junior Guru Wannabe
- Join Date
- Jun 2016
- Posts
- 91
Your question isn't clear. What outcome are you wanting to achieve?
0
-
06-28-2016, 07:31 AM #4Junior Guru Wannabe
- Join Date
- Jun 2016
- Posts
- 77
In what language? From what I know you can get the those from HTTP headers by using different methods such as using javascript to use an external resource ( I don't know if js has libraries for things like this )
Or you can just google "detect client ip address in php".
Might I suggest that you be a bit more specific?0
-
06-28-2016, 07:37 AM #5Junior Guru
- Join Date
- Aug 2015
- Posts
- 182
0
-
06-28-2016, 07:40 AM #6
It sounds as if he's trying to capture the IP address and referrer of visitors.
Your one stop shop for decentralization
0
-
06-29-2016, 06:27 PM #7Web Template Master
- Join Date
- May 2009
- Location
- United Kingdom
- Posts
- 1,695
Hello,
You could use a PHP script to catch the users IP address and determine their location. With this information you could do a lot of things such as rediect the user to a page targeting their country.█ Zomex ~ Templates & services for web hosting resellers since 2009!
█ #1 Web Hosting Templates for WHMCS Templates | WordPress | HTML | Blesta | Clientexec
█ Professional WHMCS Services | Installation | Configuration | Integration | Upgrades0
-
07-12-2016, 06:35 AM #8New Member
- Join Date
- Jul 2016
- Posts
- 1
You can get IP address of client with help of $_SERVER['REMOTE_ADDR'], $_['HTTP_REFERER'] etc.
<<snipped>>Last edited by bear; 07-12-2016 at 07:16 AM.
0
-
07-13-2016, 02:38 AM #9Web Hosting Master
- Join Date
- Oct 2014
- Location
- Philippines
- Posts
- 730
@vidhyaa kindly rephrase your thread and be specific on your post so that we can clearly understand then the members can deliver helpful information to you.
0
-
07-13-2016, 03:31 PM #10WHT Addict
- Join Date
- May 2014
- Location
- CA
- Posts
- 156
You need to use javascript to fetch customer login address.
0
-
08-04-2016, 10:05 AM #11Disabled
- Join Date
- Jul 2016
- Posts
- 1
If you mean "How to get guest ip address."
I use this code for do that.
PHP Code:<?PHP
function getUserIP()
{
$client = @$_SERVER['HTTP_CLIENT_IP'];
$forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];
$remote = $_SERVER['REMOTE_ADDR'];
if(filter_var($client, FILTER_VALIDATE_IP))
{
$ip = $client;
}
elseif(filter_var($forward, FILTER_VALIDATE_IP))
{
$ip = $forward;
}
else
{
$ip = $remote;
}
return $ip;
}
$user_ip = getUserIP();
echo $user_ip; // Output IP address [Ex: 177.87.193.134]
?>0
Similar Threads
-
Web design service available
By ankita in forum Shared Hosting OffersReplies: 0Last Post: 10-09-2000, 01:28 PM -
Web Design
By troutster in forum Shared Hosting OffersReplies: 0Last Post: 09-26-2000, 05:51 PM -
Web design and development
By lubo in forum Running a Web Hosting BusinessReplies: 4Last Post: 09-11-2000, 12:39 PM -
Simple Elegant Web Design
By ODE in forum Shared Hosting OffersReplies: 0Last Post: 08-28-2000, 12:32 AM