weirdest requirement ever but .... not hard if T.accepted_language in ('ru-RU', ....): raise HTTP(404)
On Friday, June 12, 2015 at 7:31:41 PM UTC+2, lucas wrote: > > hey everyone, > > via google analytics, i am getting an inordinate amount of traffic from > russia. my site would not be of interest to russians. i have a list of > IPs and net masks for dropping that traffic using iptables but for some > reason i am still getting some russian traffic. > > how can i also detect the ru language and then tell web2py to drop or > cancel the sending of any subsequent page or view? i guess i want web2py > to act as a backup filter to iptables. > > ok, thank in advance, lucas > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.