For different settings of a control parameter, a chaotic system can go from a region with two separate stable attractors (generalized bistability) to a crisis where a chaotic attractor expands, colliding with an unstable orbit. In the bistable regime jumps between independent attractors are mediated by external perturbations; above the crisis, the dynamics includes visits to regions formerly belonging to the unstable orbits and this appears as random bursts of amplitude jumps. We introduce a control method which suppresses the jumps in both cases by filtering the specific frequency content of one of the two dynamical objects. The method is tested both in a model and in a real experiment with a CO2 laser.