Handy

163
reputation
8

... as there are about 5 question/answers on SO that all have different variants? This is an information over load question. If someone can consolidate all the information into a single function that would be great.

A quick Google Search pulls up these top 5.

The last post seems to have the most information. However all seem to contain:

$_SERVER['REMOTE_ADDR'] 

as the most basic way to do it?