I think indiscriminate attacks are illegal (Geneva 1977), plus targeting civilians. not carpet bombing per se. (like cluster bombing, it's not illegal if done only on combatants)
Unguided bombing died as soon as we could make it die since in 1944 it had a precision of roughly 1-2 kilometers. There are famous examples of hundreds of bombs dropped to try to destroy a single bridge, and only one hitting.
Seems to still be in use quite a bit today from what I can tell: https://edition.cnn.com/2023/12/13/politics/intelligence-ass...