I need to block access to my Django app from a certain country. AFAIK, mod_geoip is the best option, but not available. Support have directed me to build the module from scratch and pointing me to generic help files (I know virtually nothing about UNIX and the make process). These direct me to run Can anyone please advise what the most painless route to getting geoip based blocking going on a Webfaction django site might be ? Thank you very much. asked 28 Jul '11, 11:04 rich |
If you want painless, then you can forgo using To do that, first add
Then, set a variable ('blocked' for example, but you can call it anything you want):
Finally, allow access based on the variable:
If you want to go the painful route and use
You can find some instructions for building Apache and We also have instructions for building GeoIP. You can skip the steps for installing the Python binding if you don't need that. Instructions for building and configuring Hope that helps! Please let us know if you have any further questions. answered 28 Jul '11, 11:45 seanf Seanf - thank you very much - plenty to work with there. r.
(28 Jul '11, 11:57)
rich
You're very welcome!
(28 Jul '11, 12:06)
seanf
|
UPDATE: Sean (web faction support) emailed me directly and could not have been more helpful. All fixed up and blocking happily. answered 30 Jul '11, 07:22 rich |