{"id":39564,"date":"2024-04-29T12:45:23","date_gmt":"2024-04-29T12:45:23","guid":{"rendered":"https:\/\/accuweb.cloud\/resource\/?post_type=faq&#038;p=39564"},"modified":"2026-02-19T07:21:05","modified_gmt":"2026-02-19T07:21:05","slug":"basic-security-for-applications-with-nginx-balancer","status":"publish","type":"faq","link":"https:\/\/accuweb.cloud\/resource\/articles\/basic-security-for-applications-with-nginx-balancer","title":{"rendered":"Basic Security for Applications with NGINX Balancer"},"content":{"rendered":"<h2 class=\"ack-h2\">Basic Security for Applications with NGINX Balancer<\/h2>\n<p>Safeguarding websites and web apps is becoming a crucial internet security concern as organizations use the web for operations and as more and more information is published online every year. Usually, the response is to purchase a large number of preventive instruments. However, it&#8217;s a good idea to think about a few basic security measures before committing to any elaborate or costly protection solutions. Simple security precautions are frequently the most successful.<\/p>\n<p>Applications utilizing NGINX as a frontend load balancer can benefit from built-in techniques that come at no additional cost.<\/p>\n<p>The NGINX load balancer server&#8217;s primary function is to effectively divide requests among several application server nodes, guaranteeing excellent system availability and dependability. Both HTTP and TCP traffic types are supported by NGINX.<\/p>\n<p>In case you have multiple application server nodes, the setup automatically includes a load-balancing node. In addition, even with a single server, you can manually add a load balancer. Just click the Balancing wizard in the Environment Topology pane above the application server of your choice.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Add-Load-Balancer.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-39566 size-full\" title=\"Add Load Balancer\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Add-Load-Balancer.png\" alt=\"Add Load Balancer\" width=\"1467\" height=\"486\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Add-Load-Balancer.png 1467w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Add-Load-Balancer-300x99.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Add-Load-Balancer-1024x339.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Add-Load-Balancer-768x254.png 768w\" sizes=\"(max-width: 1467px) 100vw, 1467px\" \/><\/a><\/p>\n<p>After setting up your environment, follow these instructions to configure the required protection methods:<\/p>\n<ol class=\"acl-ol\">\n<li><strong>Authentication:<\/strong> Using a password, this technique protects program access.<\/li>\n<li><strong>IP Address Deny:<\/strong> This feature prevents users from using particular IP addresses to access the application.<\/li>\n<\/ol>\n<p>Additionally, we&#8217;ll examine how to apply these techniques in tandem. Now let&#8217;s get this implemented in your setting. This is how to accomplish it!<\/p>\n<p><strong>Using authentication<\/strong> is a simple yet powerful way to manage who may access your application and stop illegal access. We&#8217;ll walk you through setting up password and username protection here.<\/p>\n<p><strong>Step 1.<\/strong> Passwords cannot be kept in plain text for security reasons. Instead, use an internet service like https:\/\/www.htpasswdgenerator.net\/ or an htpasswd program to produce a hash based on your chosen username and password.<\/p>\n<p><strong>Step 2.<\/strong> Save the character sequence that was created, then go back to the platform dashboard and see your environment listed. To configure the NGINX balancer node, click the Config button.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Config.png\"><img decoding=\"async\" class=\"ack-article-image aligncenter wp-image-39568 size-full\" title=\"Config\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Config.png\" alt=\"Config\" width=\"1540\" height=\"217\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Config.png 1540w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Config-300x42.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Config-1024x144.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Config-768x108.png 768w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Config-1536x216.png 1536w\" sizes=\"(max-width: 1540px) 100vw, 1540px\" \/><\/a><\/p>\n<p><strong>Step 3.<\/strong> Locate the tools panel in the conf.d folder and click the &#8220;<strong>New file<\/strong>&#8221; button when the Configuration Manager tab opens. You can rename the file whatever you want, but it must have the.htpasswd extension (password.htpasswd, for example).<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/New-File.png\"><img decoding=\"async\" class=\"ack-article-image aligncenter wp-image-39567 size-full\" title=\"New File\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/New-File.png\" alt=\"New File\" width=\"1600\" height=\"479\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/New-File.png 1600w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/New-File-300x90.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/New-File-1024x307.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/New-File-768x230.png 768w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/New-File-1536x460.png 1536w\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><\/a><\/p>\n<p><strong>Step 4.<\/strong> After naming your.htpasswd file as you like, open it, and copy the hash that was produced in the first part of these instructions into the file&#8217;s content. You can add more than one account by starting a new line in the file for each additional account.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Add-More-Account.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-39569 size-full\" title=\"Add More Account\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Add-More-Account.png\" alt=\"Add More Account\" width=\"1600\" height=\"473\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Add-More-Account.png 1600w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Add-More-Account-300x89.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Add-More-Account-1024x303.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Add-More-Account-768x227.png 768w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Add-More-Account-1536x454.png 1536w\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><\/a><\/p>\n<p>After you have completed adjusting the parameters, remember to save your modifications.<\/p>\n<p><strong>Step 5.<\/strong> After that, open the nginx-jelastic.conf file from the ngnix folder. Within the initial section of the server code, look for the location block. To activate authentication and apply the required access rules, copy and paste the following lines:<\/p>\n<pre><code class=\"language-javascript\">auth_basic \"closed site\";\r\nauth_basic_user_file \/etc\/nginx\/conf.d\/{htpasswd_file};<\/code><\/pre>\n<p>Change <strong>{{htpasswd_file}}<\/strong> to the name of the file containing the hash(es) of the password. The file in question is called `password.htpasswd` in this instance.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Change-File-Name.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-39570 size-full\" title=\"Change File Name\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Change-File-Name.png\" alt=\"Change File Name\" width=\"1600\" height=\"477\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Change-File-Name.png 1600w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Change-File-Name-300x89.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Change-File-Name-1024x305.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Change-File-Name-768x229.png 768w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Change-File-Name-1536x458.png 1536w\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><\/a><\/p>\n<p><strong>Step 6.<\/strong> To apply the modifications, make sure you save your work once more and restart the NGINX balancer node after making these adjustments.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Save-and-refresh.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-39571 size-full\" title=\"Save and Refresh\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Save-and-refresh.png\" alt=\"Save and Refresh\" width=\"1542\" height=\"222\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Save-and-refresh.png 1542w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Save-and-refresh-300x43.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Save-and-refresh-1024x147.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Save-and-refresh-768x111.png 768w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Save-and-refresh-1536x221.png 1536w\" sizes=\"(max-width: 1542px) 100vw, 1542px\" \/><\/a><\/p>\n<p><strong>Step 7.<\/strong> After completing these steps, you and any other users will be required to submit authentication credentials to access your application when you try to launch it in a web browser.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Access-Your-Application.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-39572 size-full\" title=\"Access Your Application\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Access-Your-Application.png\" alt=\"Access Your Application\" width=\"1600\" height=\"376\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Access-Your-Application.png 1600w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Access-Your-Application-300x71.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Access-Your-Application-1024x241.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Access-Your-Application-768x180.png 768w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Access-Your-Application-1536x361.png 1536w\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><\/a><\/p>\n<p>Your application will be available as soon as you supply the correct credentials (the ones that were used to create the hash).<\/p>\n<h2 class=\"ack-h2\">IP Address Deny<\/h2>\n<p>You can stop requests from that IP address from accessing your application going forward if you see malicious activity coming from that user&#8217;s IP address. To put this security measure into effect, follow these steps:<\/p>\n<p><strong>Step 1.<\/strong> To get started, go to your environment&#8217;s platform dashboard and select the NGINX balancer node&#8217;s Config button.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Select-Config.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-39573 size-full\" title=\"Select Config\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Select-Config.png\" alt=\"Select Config\" width=\"1540\" height=\"252\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Select-Config.png 1540w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Select-Config-300x49.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Select-Config-1024x168.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Select-Config-768x126.png 768w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Select-Config-1536x251.png 1536w\" sizes=\"(max-width: 1540px) 100vw, 1540px\" \/><\/a><\/p>\n<p><strong>Step 2.<\/strong> Next, find and select the nginx-Jelastic.conf file from the `conf} folder under the Configuration Manager tab. When it opens, go to the first server code section&#8217;s location block and copy and paste the following line:<\/p>\n<pre><code class=\"language-javascript\">deny {IP_ADDRESS};<\/code><\/pre>\n<p>Replace <strong>`{IP_ADDRESS}`<\/strong> with the IP address that you want to block from accessing your application.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Select-nginx-Jelastic.conf_.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-39574 size-full\" title=\"Select nginx-Jelastic.conf\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Select-nginx-Jelastic.conf_.png\" alt=\"Select nginx-Jelastic.conf\" width=\"1600\" height=\"476\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Select-nginx-Jelastic.conf_.png 1600w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Select-nginx-Jelastic.conf_-300x89.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Select-nginx-Jelastic.conf_-1024x305.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Select-nginx-Jelastic.conf_-768x228.png 768w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Select-nginx-Jelastic.conf_-1536x457.png 1536w\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><\/a><\/p>\n<p><strong>Step 3.<\/strong> After saving your modifications, use the appropriate buttons or menu items to restart your NGINX node.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Restart-Node.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-39575 size-full\" title=\"Restart Nodes\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Restart-Node.png\" alt=\"Restart Nodes\" width=\"1538\" height=\"250\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Restart-Node.png 1538w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Restart-Node-300x49.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Restart-Node-1024x166.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Restart-Node-768x125.png 768w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Restart-Node-1536x250.png 1536w\" sizes=\"(max-width: 1538px) 100vw, 1538px\" \/><\/a><\/p>\n<p><strong>Step 4.<\/strong> As a result, if a user with the denied IP address attempts to access your application, they will encounter a &#8220;403 Forbidden&#8221; error message.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/403-Forbidden.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-39576 size-full\" title=\"403 Forbidden\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/403-Forbidden.png\" alt=\"403 Forbidden\" width=\"1600\" height=\"256\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/403-Forbidden.png 1600w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/403-Forbidden-300x48.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/403-Forbidden-1024x164.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/403-Forbidden-768x123.png 768w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/403-Forbidden-1536x246.png 1536w\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><\/a><\/p>\n<p>Use the &#8220;<strong>satisfy<\/strong>&#8221; directive to combine authentication methods with IP address restriction. By default, access is granted only if both requirements are satisfied. If at least one requirement is met, setting the &#8220;<strong>satisfy<\/strong>&#8221; directive to &#8220;<strong>any<\/strong>&#8221; permits access. Here&#8217;s an illustration of how to set things up:<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Combine-Authentication.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-39577 size-full\" title=\"Combine Authentication\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Combine-Authentication.png\" alt=\"Combine Authentication\" width=\"1600\" height=\"481\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Combine-Authentication.png 1600w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Combine-Authentication-300x90.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Combine-Authentication-1024x308.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Combine-Authentication-768x231.png 768w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/Combine-Authentication-1536x462.png 1536w\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><\/a><\/p>\n<p>This implies that if a user&#8217;s IP address is in the permitted list, they can access the program without logging in. If a user&#8217;s username and password are genuine, they can still access the website even if their IP address is blocked.<\/p>\n<div class=\"article-space\"><\/div>\n\t\t<div data-elementor-type=\"section\" data-elementor-id=\"38668\" class=\"elementor elementor-38668\" data-elementor-settings=\"{&quot;ha_cmc_init_switcher&quot;:&quot;no&quot;}\" data-elementor-post-type=\"elementor_library\">\n\t\t\t        <section class=\"elementor-section elementor-top-section elementor-element elementor-element-882321f elementor-section-boxed elementor-section-height-default elementor-section-height-default ct-header-fixed-none ct-row-max-none\" data-id=\"882321f\" data-element_type=\"section\" data-settings=\"{&quot;_ha_eqh_enable&quot;:false}\">\n            \n                        <div class=\"elementor-container elementor-column-gap-default \">\n                    <div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7cc79cc\" data-id=\"7cc79cc\" data-element_type=\"column\">\n        <div class=\"elementor-widget-wrap elementor-element-populated\">\n                    \n        \t\t<div class=\"elementor-element elementor-element-e31b40f elementor-widget elementor-widget-shortcode\" data-id=\"e31b40f\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t            <\/div>\n        <\/div>\n                    <\/div>\n        <\/section>\n        \t\t<\/div>\n\t\t\n<div class=\"article-space\"><\/div>\n<p>You now know some fundamental techniques to safeguard your application by limiting access to reliable users and prohibiting potentially dangerous ones. Without causing any harm, taking the time to improve the security of your application now can save you a great deal of time and money down the road.<\/p>\n","protected":false},"author":1,"featured_media":52879,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","class_list":["post-39564","faq","type-faq","status-publish","has-post-thumbnail","hentry","faq_topics-app-security-with-nginx","faq_topics-kb","faq_topics-load-balancer","faq_topics-nginx","faq_topics-product-documentation"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.10 (Yoast SEO v24.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Protect Your Apps with NGINX Balancer: Basic Security Measures<\/title>\n<meta name=\"description\" content=\"Protect your applications using NGINX Balancer&#039;s built-in security features. Learn about authentication and IP address deny to enhance your application&#039;s security and safeguard your website and web apps.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/accuweb.cloud\/resource\/articles\/basic-security-for-applications-with-nginx-balancer\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Basic Security for Applications with NGINX Balancer\" \/>\n<meta property=\"og:description\" content=\"Protect your applications using NGINX Balancer&#039;s built-in security features. Learn about authentication and IP address deny to enhance your application&#039;s security and safeguard your website and web apps.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/accuweb.cloud\/resource\/articles\/basic-security-for-applications-with-nginx-balancer\" \/>\n<meta property=\"og:site_name\" content=\"AccuWeb Cloud\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-19T07:21:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/basic-security-for-applications-with-nginx-balancer\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/basic-security-for-applications-with-nginx-balancer\"},\"author\":{\"name\":\"Jilesh Patadiya\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58\"},\"headline\":\"Basic Security for Applications with NGINX Balancer\",\"datePublished\":\"2024-04-29T12:45:23+00:00\",\"dateModified\":\"2026-02-19T07:21:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/basic-security-for-applications-with-nginx-balancer\"},\"wordCount\":890,\"publisher\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#organization\"},\"image\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/basic-security-for-applications-with-nginx-balancer\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\",\"inLanguage\":\"en-US\"},{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/basic-security-for-applications-with-nginx-balancer\",\"url\":\"https:\/\/accuweb.cloud\/resource\/articles\/basic-security-for-applications-with-nginx-balancer\/\",\"name\":\"Protect Your Apps with NGINX Balancer: Basic Security Measures\",\"isPartOf\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/basic-security-for-applications-with-nginx-balancer\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/basic-security-for-applications-with-nginx-balancer\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\",\"datePublished\":\"2024-04-29T12:45:23+00:00\",\"dateModified\":\"2026-02-19T07:21:05+00:00\",\"description\":\"Protect your applications using NGINX Balancer's built-in security features. Learn about authentication and IP address deny to enhance your application's security and safeguard your website and web apps.\",\"breadcrumb\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/basic-security-for-applications-with-nginx-balancer\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/accuweb.cloud\/resource\/articles\/basic-security-for-applications-with-nginx-balancer\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/basic-security-for-applications-with-nginx-balancer\/#primaryimage\",\"url\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\",\"contentUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\",\"width\":1280,\"height\":720},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/basic-security-for-applications-with-nginx-balancer\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/accuweb.cloud\/resource\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Basic Security for Applications with NGINX Balancer\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#website\",\"url\":\"https:\/\/accuweb.cloud\/resource\/\",\"name\":\"AccuWeb Cloud\",\"description\":\"Cutting Edge Cloud Computing\",\"publisher\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/accuweb.cloud\/resource\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#organization\",\"name\":\"AccuWeb.Cloud\",\"url\":\"https:\/\/accuweb.cloud\/resource\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg\",\"contentUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg\",\"width\":156,\"height\":87,\"caption\":\"AccuWeb.Cloud\"},\"image\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58\",\"name\":\"Jilesh Patadiya\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g\",\"caption\":\"Jilesh Patadiya\"},\"description\":\"Jilesh Patadiya, the visionary Co-Founder and Chief Technology Officer (CTO) behind AccuWeb.Cloud. Founder &amp; CTO at AccuWebHosting.com. He shares his web hosting insights on the AccuWeb.Cloud blog. He mostly writes on the latest web hosting trends, WordPress, storage technologies, and Windows and Linux hosting platforms.\",\"sameAs\":[\"https:\/\/accuweb.cloud\/resource\",\"https:\/\/www.facebook.com\/accuwebhosting\",\"https:\/\/www.instagram.com\/accuwebhosting\/\",\"https:\/\/www.linkedin.com\/company\/accuwebhosting\/\",\"https:\/\/x.com\/accuwebhosting\",\"https:\/\/www.youtube.com\/c\/Accuwebhosting\"],\"url\":\"https:\/\/accuweb.cloud\/resource\/author\/accuwebadmin\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Protect Your Apps with NGINX Balancer: Basic Security Measures","description":"Protect your applications using NGINX Balancer's built-in security features. Learn about authentication and IP address deny to enhance your application's security and safeguard your website and web apps.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/accuweb.cloud\/resource\/articles\/basic-security-for-applications-with-nginx-balancer","og_locale":"en_US","og_type":"article","og_title":"Basic Security for Applications with NGINX Balancer","og_description":"Protect your applications using NGINX Balancer's built-in security features. Learn about authentication and IP address deny to enhance your application's security and safeguard your website and web apps.","og_url":"https:\/\/accuweb.cloud\/resource\/articles\/basic-security-for-applications-with-nginx-balancer","og_site_name":"AccuWeb Cloud","article_modified_time":"2026-02-19T07:21:05+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/accuweb.cloud\/resource\/articles\/basic-security-for-applications-with-nginx-balancer\/#article","isPartOf":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/basic-security-for-applications-with-nginx-balancer"},"author":{"name":"Jilesh Patadiya","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58"},"headline":"Basic Security for Applications with NGINX Balancer","datePublished":"2024-04-29T12:45:23+00:00","dateModified":"2026-02-19T07:21:05+00:00","mainEntityOfPage":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/basic-security-for-applications-with-nginx-balancer"},"wordCount":890,"publisher":{"@id":"https:\/\/accuweb.cloud\/resource\/#organization"},"image":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/basic-security-for-applications-with-nginx-balancer\/#primaryimage"},"thumbnailUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","inLanguage":"en-US"},{"@type":["WebPage","FAQPage"],"@id":"https:\/\/accuweb.cloud\/resource\/articles\/basic-security-for-applications-with-nginx-balancer","url":"https:\/\/accuweb.cloud\/resource\/articles\/basic-security-for-applications-with-nginx-balancer\/","name":"Protect Your Apps with NGINX Balancer: Basic Security Measures","isPartOf":{"@id":"https:\/\/accuweb.cloud\/resource\/#website"},"primaryImageOfPage":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/basic-security-for-applications-with-nginx-balancer\/#primaryimage"},"image":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/basic-security-for-applications-with-nginx-balancer\/#primaryimage"},"thumbnailUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","datePublished":"2024-04-29T12:45:23+00:00","dateModified":"2026-02-19T07:21:05+00:00","description":"Protect your applications using NGINX Balancer's built-in security features. Learn about authentication and IP address deny to enhance your application's security and safeguard your website and web apps.","breadcrumb":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/basic-security-for-applications-with-nginx-balancer\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/accuweb.cloud\/resource\/articles\/basic-security-for-applications-with-nginx-balancer\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/accuweb.cloud\/resource\/articles\/basic-security-for-applications-with-nginx-balancer\/#primaryimage","url":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","contentUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","width":1280,"height":720},{"@type":"BreadcrumbList","@id":"https:\/\/accuweb.cloud\/resource\/articles\/basic-security-for-applications-with-nginx-balancer\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/accuweb.cloud\/resource\/"},{"@type":"ListItem","position":2,"name":"Basic Security for Applications with NGINX Balancer"}]},{"@type":"WebSite","@id":"https:\/\/accuweb.cloud\/resource\/#website","url":"https:\/\/accuweb.cloud\/resource\/","name":"AccuWeb Cloud","description":"Cutting Edge Cloud Computing","publisher":{"@id":"https:\/\/accuweb.cloud\/resource\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/accuweb.cloud\/resource\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/accuweb.cloud\/resource\/#organization","name":"AccuWeb.Cloud","url":"https:\/\/accuweb.cloud\/resource\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/","url":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg","contentUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg","width":156,"height":87,"caption":"AccuWeb.Cloud"},"image":{"@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58","name":"Jilesh Patadiya","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g","caption":"Jilesh Patadiya"},"description":"Jilesh Patadiya, the visionary Co-Founder and Chief Technology Officer (CTO) behind AccuWeb.Cloud. Founder &amp; CTO at AccuWebHosting.com. He shares his web hosting insights on the AccuWeb.Cloud blog. He mostly writes on the latest web hosting trends, WordPress, storage technologies, and Windows and Linux hosting platforms.","sameAs":["https:\/\/accuweb.cloud\/resource","https:\/\/www.facebook.com\/accuwebhosting","https:\/\/www.instagram.com\/accuwebhosting\/","https:\/\/www.linkedin.com\/company\/accuwebhosting\/","https:\/\/x.com\/accuwebhosting","https:\/\/www.youtube.com\/c\/Accuwebhosting"],"url":"https:\/\/accuweb.cloud\/resource\/author\/accuwebadmin"}]}},"_links":{"self":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq\/39564","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq"}],"about":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/types\/faq"}],"author":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/comments?post=39564"}],"version-history":[{"count":4,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq\/39564\/revisions"}],"predecessor-version":[{"id":53342,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq\/39564\/revisions\/53342"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/media\/52879"}],"wp:attachment":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/media?parent=39564"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}