This simply prevents water creating source blocks outside of river, ocean, or deep ocean type biomes.
To configure it, simply add or remove biomes to/from to the finitewater:is_infinite_water_biome biome tag. by default that tag inherits biomes from the minecraft:is_river, minecraft:is_ocean, and minecraft:is_deep_ocean biome tags. Also the config provides a boolean that allows you to turn the infinite water biome tag from a whitelist to a blacklist, by default it's a whitelist.
I have not tested, but this mod can probably be used on server side only.
Also this mod has jars for both fabric and forge.