PHP Classes

Notable PHP package: PHP Cloudflare IP GEO

Recommend this page to a friend!
  Blog PHP Classes blog   RSS 1.0 feed RSS 2.0 feed   Blog Notable PHP package: ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)  

Author:

Viewers: 104

Last month viewers: 3

Categories: Notable Packages

Cloudflare is a popular proxy service that can help many sites to handle requests for their pages faster by serving those pages from servers spread around the world that cache the contents of the pages.

When a browser is used to access a site that is handled by Cloudflare, the actual site server does not see the IP address of the computer that runs the browser in the same way that happens when a site is not using Cloudflare to serve its pages.

The actual IP address that the user computer uses is passed to your site by Cloudflare using specific request variables.

This package can get the user IP address passed by Cloudflare, as well the country where the user is located.

Read this article to learn more details about how this notable PHP package works.




Loaded Article
The package PHP Cloudflare IP GEO is one of the few PHP packages that was considered notable recently because it does something that is worth paying attention.

The basic purpose is: Get the IP of a user of a site that uses Cloudfare

Here follows in more detail what it does:

This class can get the IP of a user of a site that uses Cloudfare.

It takes the current user IP address from the HTTP headers that were sent to the server.

If the current site accesses are handled by Cloudflare, it checks specific headers set by Cloudflare servers that pass the current user computer IP address as well the two letter code of the country associated to that IP address.

The class can also return the name of the country associated to the current user country code.

Notable PHP packages can be often considered innovative. If this package is also innovative, it can be nominated to the PHP Innovation Award and the author may win prizes and recognition for sharing innovative packages.

If you also developed your own notable or innovative packages consider sharing them, so you can also earn more visibility for your package.



You need to be a registered user or login to post a comment

Login Immediately with your account on:



Comments:

No comments were submitted yet.



  Blog PHP Classes blog   RSS 1.0 feed RSS 2.0 feed   Blog Notable PHP package: ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)