Hi Chris, I want to control the public to do query inside my website, so that bad guy can not do database harvest. For example, each IP can only do query 10 times per day. The IP I do not want to limit is my own IP. So it's simple to recognize the IP range. Please let me know your opinion. Thanks, Yanxin -- Posted via http://www.ruby-forum.com/.