It is legal in every home of the US. It is legal in many states' public schools. We were spanked in Houston public schools through the 90s. And it was a lot milder than what my cousins in Calcutta got. Good stuff.
If I recall correctly, it was illegal by the 90s in the UK. That didn't stop the odd occasion of it happening. The cane remained on the wall as a relic, but there was always a handy slipper around.