Thing with Zatanna in the comic books is that she can simply erase anyone's memory she wants.  She's also one of the most powerful characters in the DC universe so it's unlikely she has to worry about the run-of-the-mill villain.  Any villain strong enough to face her is likely also powerful/resourceful enough to figure out who she is.