Zend - The PHP Company




Code Gallery: studio24


Check IP address matches or is in range  

Type: code fragment
Added by: studio24
Entered: 02/07/2003
Last modified: 07/12/2002
Rating: - (fewer than 3 votes)
Views: 9784
If you need to check if the current user's IP address is either within a set range or matches a given IP use this function. Possible uses include additional security for an authentication script. IP range needs to be in form 12.34.56.78-12.34.67.89




Search