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

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]


Let's keep local content local. Thanx to all who helped, and the guy with a 
VSAT pulling 1GB+ from my server in the last week. Guess you wont be doing 
that a second time, kiddo!





On Friday 16 November 2007 17:33:20 Reinier Battenberg wrote:
> Hi,
> 
> we offer some downloads on our local server, which is much faster for most 
> people in Uganda. As long as your ISP is connected to the UIXP.
> 
> I posted a link on the i-network list, and noted that it was for 'people in 
> uganda'. So someone with a VSAT decided to download a file of 350 MB using a 
> downloader. 
> 

> At a few occasions he had so many sessions open to our server, apache became 
> irresponsive. ping, ssh, mail all was fine, but apache could not take it 
> anymore.
> 
> I got 2 questions:
> 
> - Is there a setting in the apache2.conf with which you can limit the amount 
> of seesions per IP? Wouldnt the default protected me from this behaviour?
> 
> - I now limited the download back to the subnet that the server is in. I 
would 
> much more like to allow everyone in uganda to be able to download. How do i 
> get a list of all Ugandan subnets in use that i can use in my .htaccess 
> files?
> 
> -- 
> rgds,
> 
> Reinier Battenberg
> Director
> Mountbatten Ltd.
> +256 782 801 749
> www.mountbatten.net
> _______________________________________________
> 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.
> ---------------------------------------
> 
> 



-- 
rgds,

Reinier Battenberg
Director
Mountbatten Ltd.
+256 782 801 749
www.mountbatten.net
_______________________________________________
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