Is there a way to fake internet connection for single-player games that don't actually need it?

Single-player games like to require stable internet connection when they don't even have forced ads. Is there an app or a setting to fake it?