Detection System IP address display user information-php Tutorial

Source: Internet
Author: User
Tags what sql
Check that the IP address of the system displays user information
 
 
 Detect operating system and browser types
 
 
 
Organization Department IP address User


I do not know where it is wrong. I do not display the information now.


Reply to discussion (solution)

Do you want to obtain the visitor's ip address?

Yes. obtain the visitor's IP address and display the Query Database. if there is IP address information, the user information is displayed. if not, the user information is not displayed.

You can echo $ query_ip_dir; to see what SQL is. There should be no such record.

Because both HTTP_CLIENT_IP and HTTP_X_FORWARDED_FOR can be forged
Your program has no practical significance.

SELECT * FROM ip_manag WHERE address = '-1'

?????

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.