LoL uses an automated ban system that is then investigated afterwards by humans. If X people report you for AFK/DC it will ban you automatically for a day. The interval of ban increases with frequency from my understanding, so the more you do it the longer you get banned.
Quite simply you shouldn't play these types of games on flaky internet connections. What causes your net to be so bad?