Blocking Chinese IP
-
Hi,
I’d like to show different widgets to people in and outside of China. Basically because a widget will have some google elements that wont load in China and I don’t want a non-functional widget there.
Unfortunately, China does not have a neat range of IP addresses, it is a list of 2000 ranges, or about 700 ranges if I leave out the blocks with smaller numbers of IPs.Questions are:
1. Will this create a heap of CPU load if the plugin needs to check against a fairly big list of IPs on every visit?
2. Does it matter at all if I put ranges on one line or individual lines? I.e.,:
1.24.0.0/13
1.48.0.0/15
or
1.24.0.0/13, 1.48.0.0/15
3. Will things break if I put 2000 ranges on a single line?
- The topic ‘Blocking Chinese IP’ is closed to new replies.