Help fixing this GeoIP plugin to allow bots and LAN address
Ok, I have this GEOIP plugin that's made by Eisbein, he refuses to fix this problem so I tried fixing it myself but I can't get it to work. What happens is this plugin will display what country your from and when I connect to my server on the LAN, it will show ERROR for me since I have a LAN IP, all bots on CS/CZ will show the same thing so I wanted to know if it's possible to make it show BOT for BOTs and show LAN for addresses in the 192.168.0.0-192.168.255.255/10.0.0.0-10.255.255.255 ranges. I know this is mainly because of the GEOIP module not understanding Bots or LANs but how do I make it so this plugin will do that check, everything I've tried hasn't worked for me.
Here's the plugin without any changes made to it: Code:
|
Try something like this:
Code:
(I've taken is_ip_internal from one of my previous posts) |
Ok now it recognizes LAN addresses but it now doesn't work with anyone else that's not on the LAN (all the internet players).
|
| All times are GMT -4. The time now is 19:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.