This concept could be applied to any filesharing program but i thought i'd start with an Azurues plugin. Not because i particularly like Azurues (i'm a uTorrent man myself) but because it's popular and it's open source and, erm, it supports plugins

I don't know anything about developing AZ plugins but i do know Java (although i'm better at C++).
So i'm gonna throw down some ideas here and see what people think before I do some research myself (i won't have time until the weekend).
Who to block?
It's been a while since i used AZ, but if i remember right it already tells you what country the other peers are from. So hopefully it's possible to use this feature to block specific countries. This raises a few questions:
1) Is this accessable from a plugin?
2) How does it determine what country the peer is from?
3) How reliable is it?
Another option is to use GeoIP (is this what AZ uses?) which claims 97% accuracy.
Impact on the network
What affect is blocking uploads to a whole country going to have to a swarm? Well if your in the USA your gonna be blocking a hell of a lot of people. But if the swarms big enough and has enough international peers to max your download then you won't notice a thing. Torrents with not many peers or a torrent that might be of interest to only one country could suffer quite heavily if every one did this.
Maybe it would be best to do this on per torrent basis, so if you want to allow uploads to fellow countrymen on a particular torrent you can (possible with a plugin?).
Abuse
What if someone decides to use this to block uploads to everyone? maybe it should only allow you to block one country? Any legit reason why someone would want to block more than one country?
Built in IP filter.
Azurues has a built in IP filter (i believe?) which could be utilised. Does this block connections in both directions? Do we want that? or just uploads? can it be made to block just uploads?
I'm sure there's more I need to consider but that's all i think of right now.
Anyone know of any AZ plugin developement tutorials or documentation?
Anyone already familiar with developing AZ plugins? I don't mind if you take this idea and code it youself, I'm sure i can find something else to do at the weekend other than learn how to make plugins

So, anyone have any thoughts on this? Thinks it's a good idea? Thinks it's a dumb idea? Let me know
