Bird feeder and rats

Hi I'm new here, so forgive me if this has been asked before. I've been feeding the birds for years but recently the feeder is attracting rats. I'm feeding sunflower hearts and trying to keep the ground underneath clean because the finches seem to spit some out. I don't want to use posion and I'd hate to stop feeding the birds but I might have to. Any advice greatly appreciated.