Support ⇒ Security ⇒ Possible to Search IP Addresses? ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexSecurity

Possible to Search IP Addresses? Reply to topic


Is there a way to search if an IP address has ever posted on my site? I tried reformatting the Look Up IP Address link a few ways, but without the topic and post ID, it doesn't want to work. I could simply look in the SQL db if I knew how to convert an IP address into the format used in there.

Thanks

My Little Pony Arena

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Redhat Enterprise 4/Apache 2.2/MySQL 4.1.22/PHP 5/CPG 9.1.2.1


?<php
# first of all convert 32bit into binary
$ip = inet_pton('aaa.bbb.ccc.ddd');

# then search the database using
$ip = $db->binary_safe($ip);

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS

All times are UTC


Jump to: