{"id":22015,"date":"2013-03-23T12:58:11","date_gmt":"2013-03-23T18:58:11","guid":{"rendered":"http:\/\/rankexploits.com\/musings\/?p=22015"},"modified":"2013-03-23T12:58:11","modified_gmt":"2013-03-23T18:58:11","slug":"got-blocked-workaround","status":"publish","type":"post","link":"https:\/\/rankexploits.com\/musings\/2013\/got-blocked-workaround\/","title":{"rendered":"Got blocked? Workaround."},"content":{"rendered":"<p>Over the past few months, I&#8217;ve received a few emails from honest-to-goodness people blocked because they are connecting form China. I&#8217;ve always gotten emails from people whos IPs were &#8212; through no fault of their own&#8211; listed in &#8220;StopForumSpams&#8221; spammers list. I&#8217;ve generally given people advice, and when necessary tweaked the bot-blocking software to create single case exceptions. However, there are enough single-IP exception that I decided I need a broader &#8220;workaround&#8221;.  I have currently devised the following workaround which works to get around a few specific &#8216;rules&#8217; in the blocking software. The work around is this:<\/p>\n<p>Spoof your user agent to read &#8220;Lucia Special user agent for The Blackboard&#8221;.  It must read <I>exactly<\/i> that but you need only spoof when visiting The Blackboard.  Use of this user agent will:<\/p>\n<ol>\n<li>Permit those Cloudflare identifies as being from China but who Cloudflare does not yet block to pass through ZBBlock.  <\/li>\n<li>Permit IPs that make it through Cloudflare but who are are listed at <a href=\"http:\/\/www.stopforumspam.com\/\">Stop Forum Spam<\/a> to comment without getting banned.  <\/li>\n<\/ol>\n<p>The description of what it does may sound convoluted. The path is you->Cloudflare->ZBblock->the joy of reading The Blackboard.  <\/p>\n<p>The special user agent will <i>only<\/i> help at ZBblock which has a rule to bounce you if you come from &#8220;CN&#8221;. These people are presented a message telling people to contact me if they wish to be whitelisted. I have about a dozen Chinese IP ranges whitelisted).  The difficulty for people in China is that <i>many<\/i> Chinese IPs have been permanently banned owing to the numerous hack, spam or scrape attempts form Chinese ranges. So, if you happen to know someone who mentions they were banned, then possibly they can learn about the issue and contact me.  A similar difficulty happens with IP&#8217;s listed on Stop Forum Spam. For example: a fairly frequent visitor signed on to a <i>new<\/i> ISP service, obtained a static IP and found himself blocked. The difficulty is that quite likely a spammer previously used that IP.  While this can probably be sorted out, in the meantime, he would like to comment. So, spoofing the user agent trick will work.<\/p>\n<p><b>How can you spoof<\/b><br \/>\nIf you use Firefox it is very easy to spoof agents. Visit <a href=\"https:\/\/addons.mozilla.org\/en-US\/firefox\/addon\/user-agent-switcher\/\">useragent switcher<\/a>, install and start switching. For reasons of privacy and functionality of other web sites, you will probably want to adjust the setting to switch <I>only<\/I> when you are at &#8220;http:\/\/rankexploits.com&#8221; and turn off user agent switching otherwise. Turning the spoofing switch on and off is a bit of a pain in the neck, but it&#8217;s somewhat more convenient than getting banned, writing me, having me code a workaround for your IP and then visiting again. So if your IP is listed on StopForumSpam or you are in China, this should be a convenience. <\/p>\n<p>You can test the effectiveness of your switching by testing the switch for &#8220;http:\/\/whatsmyuseragent.com\/&#8221; and afterwards seeing if that worked. <\/p>\n<p>Owing to the possibility that bots operated by actual humans might wish to spam my comments, the special useragent may change from time to time. For now this should work like a (somewhat cumbersome) charm.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Over the past few months, I&#8217;ve received a few emails from honest-to-goodness people blocked because they are connecting form China. I&#8217;ve always gotten emails from people whos IPs were &#8212; through no fault of their own&#8211; listed in &#8220;StopForumSpams&#8221; spammers list. I&#8217;ve generally given people advice, and when necessary tweaked the bot-blocking software to create &hellip; <a href=\"https:\/\/rankexploits.com\/musings\/2013\/got-blocked-workaround\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Got blocked? Workaround.<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[382],"tags":[],"class_list":["post-22015","post","type-post","status-publish","format-standard","hentry","category-spam"],"_links":{"self":[{"href":"https:\/\/rankexploits.com\/musings\/wp-json\/wp\/v2\/posts\/22015","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rankexploits.com\/musings\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rankexploits.com\/musings\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rankexploits.com\/musings\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/rankexploits.com\/musings\/wp-json\/wp\/v2\/comments?post=22015"}],"version-history":[{"count":0,"href":"https:\/\/rankexploits.com\/musings\/wp-json\/wp\/v2\/posts\/22015\/revisions"}],"wp:attachment":[{"href":"https:\/\/rankexploits.com\/musings\/wp-json\/wp\/v2\/media?parent=22015"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rankexploits.com\/musings\/wp-json\/wp\/v2\/categories?post=22015"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rankexploits.com\/musings\/wp-json\/wp\/v2\/tags?post=22015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}