What is the distinction between act and rule utilitarianism, and how might it help with free-riders?

What is the distinction between act and rule utilitarianism, and how might it help with free-riders?