Its against most search engines TOS, so technically yes it is illegal. And it CAN get you banned if you abuse such tactics.
no it's not illegal.
and i think I'm going to compile a list of threads where the OPs can't figure out grammar... from today.