This module provides the ability for a reverse DNS lookup on incoming requests: https://github.com/flant/nginx-http-rdns It would be a good combination with testcookie to minimise potential issues with search engine indexers. PS. Thank you for your work!