You can not deny section 8 or any other LEGAL source of income, but you CAN set standards as long as you apply them to ALL applicants. Minimum 780 credit score, for example. That eliminates 99.9% of section 8s right up front.
My understanding is that no landlord can be forced to sign up for the Section 8 program, so the income discrimination ordinances are moot if you never sign up for the program as a landlord.
The only issue is that once you agree to ever qualify for Section 8 as a landlord, you can’t refuse it.