Nginx ( in server{} block for server_name your.domain.co.nz; )... if ($http_user_agent ~* NLNZ_IAHarvester2015 ) { return 301 http://tinyurl.com/NLNZ-IAHarvester2015; } ( good to see rickrolling is alive and well... lol ) On Wed, 2014-12-24 at 02:33 +0000, emma h wrote:
for those wishing to block, the apache rewrite rule is;
RewriteEngine on RewriteRule ^(.*)$ http:/your.domain.co.nz [R=301,L] RewriteCond %{HTTP_USER_AGENT} ^(.*)NLNZ_IAHarvester2015(.*)$ RewriteRule ^(.*)$ http://tinyurl.com/NLNZ-IAHarvester2015
merry festivus.
--
em
_______________________________________________ NZNOG mailing list NZNOG(a)list.waikato.ac.nz http://list.waikato.ac.nz/mailman/listinfo/nznog
-- Steve Holdoway BSc(Hons) MIITP http://www.greengecko.co.nz Linkedin: http://www.linkedin.com/in/steveholdoway Skype: sholdowa