I’ve Rails apps, that record an IP-address from every request to specific URL, but in my IP database i’ve found facebook blok IP like 66.220.15.* and Google IP (i suggest it come from bot). Is there any formula to determine an IP from request was made by a robot or search engine spider ? Thanks
I’ve Rails apps, that record an IP-address from every request to specific URL, but
Share
Robots are required (by common sense / courtesy more than any kind of law) to send along a User-Agent with their request. You can check for this using
request.env["HTTP_USER_AGENT"]and filter as you please.