Hi Reiner,


> This thread is now about very interesting subjects, except not about my
> original problem anymore, so replying to self, here is the ultimate
>
> is-the-visitor-coming-from-uganda-and-if-not-redirect-to-elsewhere-.htaccess
> file


Mark did give you one of the best ways to get this done... The UIXP. It is
your only hope to get this done. I believe you connect to the IXP via a link
from MTN, the easiest thing is to request a list of IP addresses advertised
by peers at the IXP and compile a list from this. Your list below does miss
IP addresses from about two (or may be three ISP's). I do not see AFOL's and
some of UTL's IP addresses there!!


>
>
> RewriteEngine On
> RewriteCond %{REMOTE_HOST}
> !^41\.220\.([0-9]|[0-1][0-5])\.([0-9]|[0-9][0-9]|1
> [0-9][0-9]|2[0-5][0-5]) [NC]
> RewriteCond %{REMOTE_ADDR}
> !^41\.210\.1(2[8-9]|[3-9][0-9])\.([0-9]|[0-9][0-9]|
> 1[0-9][0-9]|2[0-5][0-5]) [NC]
> RewriteCond %{REMOTE_ADDR} !^41.220.([0-9]|1[0-5]).* [NC]
> RewriteCond %{REMOTE_ADDR} !^41.221.(8[0-9]|9[0-5]).* [NC]
> RewriteCond %{REMOTE_ADDR} !^41.222.[0-7].* [NC]
> RewriteCond %{REMOTE_ADDR} !^41.223.8[4-7].* [NC]
> RewriteCond %{REMOTE_ADDR} !^193.108.214.* [NC]
> RewriteCond %{REMOTE_ADDR} !^193.108.25[2-5].* [NC]
> RewriteCond %{REMOTE_ADDR} !^196.0.* [NC]
> RewriteCond %{REMOTE_ADDR} !^212.88.96.([0-9]|[1-2][0-9]|3[0-1]) [NC]
> RewriteCond %{REMOTE_ADDR} !^41.220.2(0[8-9]|1[0-9]|2[0-3]).*
> RewriteRule /* http://hosting.mountbatten.net/youarenotinuganda.html [R,L]
>
>


-- 
Mike

Of course, you might discount this possibility, but remember that one in
a million chances happen 99% of the time.
------------------------------------------------------------
_______________________________________________
LUG mailing list
[email protected]
http://kym.net/mailman/listinfo/lug
%LUG is generously hosted by INFOCOM http://www.infocom.co.ug/

The above comments and data are owned by whoever posted them (including 
attachments if any). The List's Host is not responsible for them in any way.
---------------------------------------

Reply via email to