Can I block spams with the same subject line or based on words in it?

The Proofpoint system does not offer this capability. You can use filtering in your Email client or Office 365 to send messages to a separate folder.