I wouldn't bother doing that from Rails. That'd be easier to set up either at the firewall or web server level.
Would use a lot less resources.

Simon

On Sun, 09 Jan 2011 19:35:23 +0800, Fritz Trapper <[email protected]> wrote:

I guess, I simply should send a 404.

Since my server needs to be accessable from a quite small region and I'm
uninterested in getting it indexed by search engines, it would be
possible to reject any request, that comes from outside the region.

How to programmaticaly get the origin of an IP address?



--
Using Opera's revolutionary email client: http://www.opera.com/mail/

--
You received this message because you are subscribed to the Google Groups "Ruby on 
Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to