You can anyway stop publishing in journals that would put your paper behind a paywall. Failing that, require that the journal not put your paper behind a paywall (which you usually can do). Failing that, refuse to sign copyright over to the journal (which you can always do, whatever the journal hints at). And, anyway, post a copy to a free site like Arxiv under the same DOI.