This can happen if the water pressure is too high, or if there is a faulty valve which is vibrating under the pressure.
Usually, you can improve matters by reducing the pressure by closing the main cock slightly. However, a more permanent solution would be checking if the correct pressure reducers have been installed for your toilet or any other appliances that cause the banging.
I had this problem suddenly develop with my Toilet. I bodged it by reducing the pressure, but I cured it by taking the fill valve in the toilet apart and cleaning out some grit. Once reassembled, the pipes were perfect.
Usually, you can improve matters by reducing the pressure by closing the main cock slightly. However, a more permanent solution would be checking if the correct pressure reducers have been installed for your toilet or any other appliances that cause the banging.
I had this problem suddenly develop with my Toilet. I bodged it by reducing the pressure, but I cured it by taking the fill valve in the toilet apart and cleaning out some grit. Once reassembled, the pipes were perfect.