Skip to content
Advertisement

Ban IP Ranges php

I found this code:

JavaScript

This code is completely functional and working, the thing is that I want to add more than one range so I did this:

JavaScript

But this one didn’t work , it goes throught the two parts of the conditional and it shows :

JavaScript

Any way of fixxing it?

Advertisement

Answer

Use a flag, toggle it when you find a match, evaluate it after the loop.

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement