can you guys give me a little push on how to not write out multiple NOT LIKE statements in order to filter out robots? I can use an array instead can’t I? I know there are databases on 3rd party websites that keep known bot ip addresses, but this website does get the level of traffic to warrant API code to query those DBs. Here’s a sample of what I have currently to save the owner some sanity:
$sql = mysqli_query($conn, "SELECT ip
, host
, page
, DATE_FORMAT(date, '%m/%d/%y') as date
, TIME_FORMAT(time, '%T') as time
FROM tblTraffic
WHERE ip NOT LIKE '%googleusercontent%' AND
ip NOT LIKE '%spider%' AND
ip NOT LIKE '%googlebot%'
ORDER BY date DESC, time DESC");