{"id":12,"date":"2020-08-26T15:02:52","date_gmt":"2020-08-26T15:02:52","guid":{"rendered":"https:\/\/tekweis.com\/?p=12"},"modified":"2020-09-07T21:51:59","modified_gmt":"2020-09-07T21:51:59","slug":"block-ip-ranges-for-phpmyadmin","status":"publish","type":"post","link":"https:\/\/tekweis.com\/index.php\/2020\/08\/26\/block-ip-ranges-for-phpmyadmin\/","title":{"rendered":"Allow only specific IP ranges for phpMyAdmin"},"content":{"rendered":"\n<p>When you have phpMyAdmin installed, you do not want everyone to have access to the site. You can easily block access by allowing only approved IP&#8217;s or IP ranges. Edit the <strong>\/etc\/apache2\/conf.d\/phpMyAdmin.conf <\/strong>file and add the IP address range to allow using the, &#8220;Require ip&#8221; line. In the example below, you can see IP ranges and a single IP is being used.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"454\" height=\"210\" src=\"https:\/\/tekweis.com\/wp-content\/uploads\/2020\/08\/phpMyAdmin-1.png\" alt=\"\" class=\"wp-image-15\" srcset=\"https:\/\/tekweis.com\/wp-content\/uploads\/2020\/08\/phpMyAdmin-1.png 454w, https:\/\/tekweis.com\/wp-content\/uploads\/2020\/08\/phpMyAdmin-1-300x139.png 300w\" sizes=\"auto, (max-width: 454px) 100vw, 454px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>When you have phpMyAdmin installed, you do not want everyone to have access to the site. You can easily block access by allowing only approved IP&#8217;s or IP ranges. Edit the \/etc\/apache2\/conf.d\/phpMyAdmin.conf file and add the IP address range to allow using the, &#8220;Require ip&#8221; line. In the example below, you can see IP ranges\u2026 <span class=\"read-more\"><a href=\"https:\/\/tekweis.com\/index.php\/2020\/08\/26\/block-ip-ranges-for-phpmyadmin\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-12","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/posts\/12","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/comments?post=12"}],"version-history":[{"count":3,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/posts\/12\/revisions"}],"predecessor-version":[{"id":31,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/posts\/12\/revisions\/31"}],"wp:attachment":[{"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/media?parent=12"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/categories?post=12"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tekweis.com\/index.php\/wp-json\/wp\/v2\/tags?post=12"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}