Anderson was 25-for-38 for the Thundering Herd (4-3, 3-1 Conference USA), finishing a yard short of his career-high 316 set in the season-opening win over Southern Illinois.
Darius Marshall added 133 yards on 32 carries with a 1-yard touchdown for his fifth 100-yard game of the season.
Anderson completed a 30-yard scoring pass to Cody Slate with 12:30 left in the second quarter, then hit Chuck Walker with a 15-yard pass to give Marshall a 17-0 lead with 1:43 left in the first half.
The Blazers' Joe Webb threw a 12-yard scoring pass to Mark Ferrell with 26 seconds left in the half to make it 17-7.
Webb was 16-for-27 for 200 yards passing and rushed for 129 yards on 18 carries for UAB (2-5, 2-2).