Is legal?

Well Where Are u from? Each Country has Their own Laws about internet Data protection .. in Most, it is not but The Judge Might see it as Impersonation...