Welcome to WebmasterWorld Guest from 54.166.112.74

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Setting security for login

   
3:50 pm on Aug 11, 2012 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



I like to set security by PHP and the following information:
Operating System: WinXP
Browser: IE 8
Location

How to set professional detection in the correct way and all compatible?
Is there some reference or article?
10:47 pm on Aug 15, 2012 (gmt 0)

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Location would be marginal at best, as you often see with Google or other sites that note your IP address and try to GEO IP target you by looking up your IP address in known ranges for Internet Service Providers (ISP). Search for "ip location" or "ip geolocation" for further reading.

As far as OS and browser go, about all you can do is see if the user has opted to allow their user agent to be sent along with their request to your server and parse it for known patterns. The PHP superglobal $_SERVER['HTTP_USER_AGENT'] will be the value you will be targeting.