A sofa that slides usually needs more friction at the floor or better support under its feet, not permanent fastening. The solution depends on flooring, weight, and leg type; any pad should protect the finish and keep the furniture stable when people sit down.
Clean the floor and feet before adding pads
Dust, wax, and grime reduce grip. Clean both surfaces with compatible products and make sure all legs contact the floor evenly.
Use compatible nonslip pads
Rubber or high-friction pads under each foot often work on wood, tile, or laminate, but some compounds can stain finishes. Choose a product rated for the flooring and large enough to spread the load.
A rug needs a nonslip underlay if it moves with the sofa
Putting the front legs on a rug can stabilize the sofa, but if the rug itself slides the problem just moves. Use a compatible nonslip underlay and avoid edges that create trip hazards.
Check for loose or uneven legs
If a leg turns, is shorter, or the frame rocks, pads will not properly solve instability. Tighten hardware as designed and repair structural damage before relying on added friction.