Results 1 to 11 of 11

Thread: web design

  1. #1

    web design

    How we get IP address of client, previous reference page etc ?
      0 Not allowed!

  2. #2
    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 Not allowed!

  3. #3
    Join Date
    Jun 2016
    Posts
    91
    Your question isn't clear. What outcome are you wanting to achieve?
      0 Not allowed!

  4. #4
    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 Not allowed!

  5. #5
    Join Date
    Aug 2015
    Posts
    182
    Quote Originally Posted by vidhyaa View Post
    How we get IP address of client, previous reference page etc ?
    Please explain your question.
      0 Not allowed!

  6. #6
    Join Date
    Oct 2002
    Location
    /roof/ledge
    Posts
    28,088
    It sounds as if he's trying to capture the IP address and referrer of visitors.
    Your one stop shop for decentralization
      0 Not allowed!

  7. #7
    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 | Upgrades
      0 Not allowed!

  8. #8
    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 Not allowed!

  9. #9
    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 Not allowed!

  10. #10
    You need to use javascript to fetch customer login address.
      0 Not allowed!

  11. #11
    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($clientFILTER_VALIDATE_IP))
        {
            
    $ip $client;
        }
        elseif(
    filter_var($forwardFILTER_VALIDATE_IP))
        {
            
    $ip $forward;
        }
        else
        {
            
    $ip $remote;
        }

        return 
    $ip;
    }


    $user_ip getUserIP();

    echo 
    $user_ip// Output IP address [Ex: 177.87.193.134]


    ?>
      0 Not allowed!

Similar Threads

  1. Web design service available
    By ankita in forum Shared Hosting Offers
    Replies: 0
    Last Post: 10-09-2000, 01:28 PM
  2. Web Design
    By troutster in forum Shared Hosting Offers
    Replies: 0
    Last Post: 09-26-2000, 05:51 PM
  3. Web design and development
    By lubo in forum Running a Web Hosting Business
    Replies: 4
    Last Post: 09-11-2000, 12:39 PM
  4. Simple Elegant Web Design
    By ODE in forum Shared Hosting Offers
    Replies: 0
    Last Post: 08-28-2000, 12:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •