Is it possible to determine proxy based comments?

It’s possible, but it’s unlikely that you succeed for comment spammers (and how do you separate them from legitimate proxy users?):

$proxy = $_SERVER['HTTP_X_FORWARDED_FOR'];

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)