{"id":1474,"date":"2010-02-05T01:05:00","date_gmt":"2010-02-05T07:05:00","guid":{"rendered":"http:\/\/gregsowell.com\/?p=1474"},"modified":"2010-01-31T18:08:04","modified_gmt":"2010-02-01T00:08:04","slug":"pop-quiz-friday-redirect-users-web-traffic-going-out","status":"publish","type":"post","link":"https:\/\/gregsowell.com\/?p=1474","title":{"rendered":"Pop Quiz Friday &#8211; Redirect Users Web Traffic Going Out"},"content":{"rendered":"<p>This will be the maiden flight of my pop quiz series.  I&#8217;m going to try and do them at least every other Friday, if not every Friday.  I&#8217;ll give you until the following Thursday to put your answer in the comments section.  Without further delay, here&#8217;s today&#8217;s quiz.<\/p>\n<a href=\"http:\/\/gregsowell.com\/wp-content\/uploads\/2010\/01\/http-redirect3.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/gregsowell.com\/wp-content\/uploads\/2010\/01\/http-redirect3.png\" alt=\"\" title=\"http redirect\" width=\"569\" height=\"205\" class=\"size-full wp-image-1478\" srcset=\"https:\/\/gregsowell.com\/wp-content\/uploads\/2010\/01\/http-redirect3.png 569w, https:\/\/gregsowell.com\/wp-content\/uploads\/2010\/01\/http-redirect3-300x108.png 300w\" sizes=\"auto, (max-width: 569px) 100vw, 569px\" \/><\/a>\n<p>You have decided that you don&#8217;t want users going to GregSowell.com anymore&#8230;how unfortunate hehe.  Instead of blocking GregSowell.com you want to redirect the users to an internal webserver at IP 192.168.2.2.  The internal server will host a page that says something to the affect of &#8220;You are not allowed to view this page.&#8221;  You are using public DNS, so no DNS query trickery \ud83d\ude09  Also, no squid or other proxy services.<\/p>\n<p>I can quickly think of a couple of ways to accomplish this:<br \/>\nOne way takes only a single command, but is the most basic.<br \/>\nThe second takes 3, but is a little more clever in design.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This will be the maiden flight of my pop quiz series. I&#8217;m going to try and do them at least every other Friday, if\u2026<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,30],"tags":[],"class_list":["post-1474","post","type-post","status-publish","format-standard","hentry","category-mikrotik","category-pop-quiz"],"_links":{"self":[{"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/posts\/1474","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/gregsowell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1474"}],"version-history":[{"count":5,"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/posts\/1474\/revisions"}],"predecessor-version":[{"id":1481,"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/posts\/1474\/revisions\/1481"}],"wp:attachment":[{"href":"https:\/\/gregsowell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gregsowell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gregsowell.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}