{"id":692,"date":"2015-10-25T00:55:36","date_gmt":"2015-10-25T08:55:36","guid":{"rendered":"http:\/\/www.tranzoa.net\/~alex\/blog\/?p=692"},"modified":"2015-10-25T00:55:36","modified_gmt":"2015-10-25T08:55:36","slug":"sending-ad-requests-to-the-bit-bucket","status":"publish","type":"post","link":"https:\/\/www.tranzoa.net\/~alex\/blog\/?p=692","title":{"rendered":"Sending ad requests to the bit bucket"},"content":{"rendered":"<p>To send ad requests from your browser to the bit bucket, a common trick is to use the <code>hosts<\/code> file to send ad farm HTTP requests to a non-existent server.<\/p>\n<p>A non-existent server can make the browser wait too long for gobs of HTTP requests.<\/p>\n<p>So, give a machine running Apache an interface for an IP address that isn&#8217;t used on your local network. <code>192.168.99.99<\/code>, for instance. Or <code>10.252.252.252<\/code>.<\/p>\n<p>Then add this sort of thing to your \/etc\/apache2\/sites-enabled\/200-vhosts file:<\/p>\n<pre>&lt;VirtualHost 10.252.252.252&gt;\r\n  ServerName    helload\r\n  DocumentRoot  \/var\/www\/spam_ad_dir\/\r\n  ErrorLog      \/var\/log\/apache2\/spam_ad_error.log\r\n  CustomLog     \/var\/log\/apache2\/spam_ad_access.log combined\r\n  RedirectMatch 403 \/* \r\n&lt;\/VirtualHost&gt;\r\n<\/pre>\n<p>Change the IP address as appropriate. And, you can make an empty directory at <code>\/var\/www\/spam_ad_dir\/<\/code><\/p>\n<p>For amusement, read the <code>spam_ad_access.log<\/code>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To send ad requests from your browser to the bit bucket, a common trick is to use the hosts file to send ad farm HTTP requests to a non-existent server. A non-existent server can make the browser wait too long &hellip; <a href=\"https:\/\/www.tranzoa.net\/~alex\/blog\/?p=692\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,16],"tags":[15],"class_list":["post-692","post","type-post","status-publish","format-standard","hentry","category-bloggy-things","category-tips","tag-tips"],"_links":{"self":[{"href":"https:\/\/www.tranzoa.net\/~alex\/blog\/index.php?rest_route=\/wp\/v2\/posts\/692","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tranzoa.net\/~alex\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tranzoa.net\/~alex\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tranzoa.net\/~alex\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tranzoa.net\/~alex\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=692"}],"version-history":[{"count":6,"href":"https:\/\/www.tranzoa.net\/~alex\/blog\/index.php?rest_route=\/wp\/v2\/posts\/692\/revisions"}],"predecessor-version":[{"id":698,"href":"https:\/\/www.tranzoa.net\/~alex\/blog\/index.php?rest_route=\/wp\/v2\/posts\/692\/revisions\/698"}],"wp:attachment":[{"href":"https:\/\/www.tranzoa.net\/~alex\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=692"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tranzoa.net\/~alex\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=692"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tranzoa.net\/~alex\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}