How can we disable raid farms?

Hello everyone

Does anyone know how to disable raid farms and stop them from working? They are very very op and players can afk for infinite items andf totems.

Is this possible with paper?

Thank you for your help

Just disable raids with the gamerule. I forgot what the gamerule is, but it is there.

Thanks for the reply, but i would like to keep raids for normal players