Paul White scored twice as promotion-chasing Keighley closed in on a top-two finish in Kingstone Press League One with a comprehensive victory.
The Cougars were relegated in heartbreaking fashion but look set for a play-off showdown with Oldham.
Paul March’s side led early on when Paul Handforth’s grubber to the corner was collected and touched down by White.
But the All Golds hit back when Phil Cowburn found room down the right wing to send Ryan Pywell over and then former Keighley player Lee Mapals raced clear from distance.
Handforth put Brendon Rawlins in from a short pass and then White grabbed his second before former Bradford junior Liam Darville went over.
The hosts replied through Courtney Davies and Handforth was sinbinned for dissent appeared to unsettle the visitors before Emmerson Whittel – another Bulls old boy – touched down.
Andy Gabriel’s recent fine try-scoring form continued as he scored again when Alex Davidson raced 20 metres to score behind the sticks.
The gap between the sides was back up to 12 points as Handforth’s kick ended up back in his hands and he outstretched an arm to score. Mapals was then sent to the bin for striking and, from the resulting penalty, James Feather scored, before Tyler Dickinson wrapped things up three minutes from time.
Gloucestershire All Golds: Murphy, Mapals, Mulkeen, Cowburn, Pywell, Poulton, Bradley, Purslow, Parry, Davidson, Reece, Adams, McClean. Substitutes: Davies, Okanga-Ajwang, Walter, O’Keeffe.
Keighley: Guzdek, Gabriel, Lawton, R. Sheriffe, White, Darville, Handforth, Law, Feather, Tahraoui, D. March, Rawlins, Dickinson. Substitutes: Lee, Pursglove, Bailey, Cherryholme.
Referee: A Sweet (RFL).