In the Router arris TG2482, to block some mac addresses from having access to internet connection, you have to do several manual steps.
1 Login to the router
2 Go to 2.4 GHZ section
3 Go to Mac Address Control Section
4 Add the Mac Address to one list
5 Apply the Block option
The script automates those steps except step 4, and it uses Selenium to do so.
For example, if you want to block a specific mac address at a specific time, all you have to do is to have the list of mac addresses and schedule the execution of the script with cron.