{"id":327,"date":"2009-09-02T17:19:19","date_gmt":"2009-09-02T22:19:19","guid":{"rendered":"http:\/\/it.thelibrarie.com\/weblog\/?p=327"},"modified":"2009-09-02T17:19:19","modified_gmt":"2009-09-02T22:19:19","slug":"htaccess-deny-range-of-ips","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2009\/09\/htaccess-deny-range-of-ips\/","title":{"rendered":"htaccess deny range of IPs"},"content":{"rendered":"<p>I was recently fired from my old job.  It wasn&#8217;t a good firing &#8211; no reason behind it, and they&#8217;re being jackasses to me afterwards.  So, 4 weeks later I notice that someone is still accessing my site, my personal help site, from one of their IP addresses.  That can&#8217;t be.  I can&#8217;t allow a company to fire me without a reason and then just let them use all of my work.  Screw that.<\/p>\n<p>So I did what anyone would do to prohibit these cretins from stealing my work:<br \/>\nedit the htaccess file to disallow their entire subnet.<\/p>\n<p>SSH into your site<br \/>\n<code>nano .htaccess<\/code> &#8211; this will create the file if you don&#8217;t already have it<br \/>\nadd the following:<\/p>\n<blockquote><p>order allow,deny<br \/>\ndeny from 69.213.173.0\/24<br \/>\n#deny from 69.213.173.144<br \/>\nallow from all<br \/>\nErrorDocument 403 http:\/\/it.thelibrarie.com\/errors\/forbid.html<\/p><\/blockquote>\n<p>69.213.173.144 is their gateway (I should know, I only put in 4 years there).  Last I checked it was a Sonicwall 4100 Pro, but they were trying to switch it out with a pair of Cisco ASA 5510&#8217;s.  On a final note: Fuckers.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was recently fired from my old job. It wasn&#8217;t a good firing &#8211; no reason behind it, and they&#8217;re being jackasses to me afterwards. So, 4 weeks later I notice that someone is still accessing my site, my personal help site, from one of their IP addresses. That can&#8217;t be. I can&#8217;t allow a &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2009\/09\/htaccess-deny-range-of-ips\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">htaccess deny range of IPs<\/span> <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":[7],"tags":[],"class_list":["post-327","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/327","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=327"}],"version-history":[{"count":1,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/327\/revisions"}],"predecessor-version":[{"id":328,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/327\/revisions\/328"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}