{"id":14392,"date":"2025-02-25T13:22:00","date_gmt":"2025-02-25T07:52:00","guid":{"rendered":"https:\/\/www.skynats.com\/?p=14392"},"modified":"2025-03-03T13:24:11","modified_gmt":"2025-03-03T07:54:11","slug":"multiple-ips-to-the-white-list-in-imunify360-via-command-line","status":"publish","type":"post","link":"https:\/\/www.skynats.com\/blog\/multiple-ips-to-the-white-list-in-imunify360-via-command-line\/","title":{"rendered":"How to Add Multiple IPs to the White List in Imunify360 via Command Line"},"content":{"rendered":"\n<p>Imunify360 is a robust security solution tailored to protect Linux-based web servers. A key feature includes the ability to whitelist IP addresses and countries, allowing legitimate users to bypass specific security protocols. This article will guide you on how to add Multiple IPs to the White List in Imunify360 via Command Line using the command-line interface (CLI).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-adding-multiple-ips-to-the-white-list\" style=\"font-size:18px\"><strong>Adding Multiple IPs to the White List<\/strong><\/h2>\n\n\n\n<p>To add Multiple IPs to the White List in Imunify360, you can use a simple command. The first step is to gather all the IP addresses that need to be added to the whitelist and place them in a text file (e.g., list.txt). Each IP address should be on a new line.\u00a0<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vim list.txt<\/code><\/pre>\n\n\n\n<p>Add each IP address and it should be on a new line. Save the file after adding IPs.<\/p>\n\n\n\n<p>Once the IPs are listed in the file, you can execute the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>xargs -n 1 imunify360-agent ip-list local add --purpose white &lt; list.txt<\/code><\/pre>\n\n\n\n<p>By running this command, you will successfully add all the IP addresses from list.txt to the Imunify360 whitelist.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:18px\"><strong>Adding Countries to the White List<\/strong><\/h2>\n\n\n\n<p>Imunify360 also provides an option to whitelist entire countries. This can be useful if you want to allow traffic from a specific country while blocking others. To whitelist a country, you need to use the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>imunify360-agent whitelist country add &lt;country_code><\/code><\/pre>\n\n\n\n<p>For example, to whitelist India, you would use the country code IN (which is India\u2019s country code).&nbsp;<\/p>\n\n\n\n<p>The command would be:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>imunify360-agent whitelist country add IN<\/code><\/pre>\n\n\n\n<p>You can find the country codes for other countries by visiting the following link:<a href=\"https:\/\/www.nationsonline.org\/oneworld\/country_code_list.htm\"> Country Code List<\/a>.<\/p>\n\n\n\n<p>Once executed, the command will add India to the whitelist, allowing traffic from that country to bypass any security rules set by Imunify360.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:18px\"><strong>Conclusion<\/strong><\/h3>\n\n\n\n<p>By using the Imunify360 command-line interface, you can efficiently add multiple IPs and entire countries to the whitelist. Whether you&#8217;re whitelisting specific IP addresses or broadening access to certain regions, this method provides a quick and effective way to configure your security settings. Always ensure that the country codes are correct, and the IP addresses in your list.txt file are accurate to avoid unintended access.<\/p>\n\n\n\n<p>If you need further assistance with adding Multiple IPs to the White List in Imunify360 via Command Line or encounter any issues during the process, feel free to <a href=\"https:\/\/www.skynats.com\/contact-us\/\">contact<\/a> our support team for expert guidance. We&#8217;re here to help you ensure your server&#8217;s security is properly configured!<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Imunify360 is a robust security solution tailored to protect Linux-based web servers. A key feature includes the ability to whitelist IP addresses and countries, allowing legitimate users to bypass specific security protocols. This article will guide you on how to add Multiple IPs to the White List in Imunify360 via Command Line using the command-line [&hellip;]<\/p>\n","protected":false},"author":14,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[978,820,979,977],"class_list":["post-14392","post","type-post","status-publish","format-standard","hentry","category-blog","tag-command-line","tag-imunify360","tag-multiple-ips","tag-white-list"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Add Multiple IPs to the White List in Imunify360 via Command Line<\/title>\n<meta name=\"description\" content=\"Add Multiple IPs to the White List in Imunify360 via Command Line easily. Follow this guide to secure your server efficiently!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.skynats.com\/blog\/multiple-ips-to-the-white-list-in-imunify360-via-command-line\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Add Multiple IPs to the White List in Imunify360 via Command Line\" \/>\n<meta property=\"og:description\" content=\"Add Multiple IPs to the White List in Imunify360 via Command Line easily. Follow this guide to secure your server efficiently!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.skynats.com\/blog\/multiple-ips-to-the-white-list-in-imunify360-via-command-line\/\" \/>\n<meta property=\"og:site_name\" content=\"Server Management Services | Cloud Management | Skynats\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/skynats\" \/>\n<meta property=\"article:published_time\" content=\"2025-02-25T07:52:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-03T07:54:11+00:00\" \/>\n<meta name=\"author\" content=\"Jishnu V\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@skynatstech\" \/>\n<meta name=\"twitter:site\" content=\"@skynatstech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jishnu V\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/multiple-ips-to-the-white-list-in-imunify360-via-command-line\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/multiple-ips-to-the-white-list-in-imunify360-via-command-line\\\/\"},\"author\":{\"name\":\"Jishnu V\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/person\\\/c63611da5e22d216e38d8658e5a605c5\"},\"headline\":\"How to Add Multiple IPs to the White List in Imunify360 via Command Line\",\"datePublished\":\"2025-02-25T07:52:00+00:00\",\"dateModified\":\"2025-03-03T07:54:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/multiple-ips-to-the-white-list-in-imunify360-via-command-line\\\/\"},\"wordCount\":406,\"publisher\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\"},\"keywords\":[\"Command Line\",\"Imunify360\",\"Multiple IPs\",\"White List\"],\"articleSection\":[\"Blog\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/multiple-ips-to-the-white-list-in-imunify360-via-command-line\\\/\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/multiple-ips-to-the-white-list-in-imunify360-via-command-line\\\/\",\"name\":\"Add Multiple IPs to the White List in Imunify360 via Command Line\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#website\"},\"datePublished\":\"2025-02-25T07:52:00+00:00\",\"dateModified\":\"2025-03-03T07:54:11+00:00\",\"description\":\"Add Multiple IPs to the White List in Imunify360 via Command Line easily. Follow this guide to secure your server efficiently!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/multiple-ips-to-the-white-list-in-imunify360-via-command-line\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.skynats.com\\\/blog\\\/multiple-ips-to-the-white-list-in-imunify360-via-command-line\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/multiple-ips-to-the-white-list-in-imunify360-via-command-line\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Add Multiple IPs to the White List in Imunify360 via Command Line\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\",\"name\":\"Server Management Services | Cloud Management | Skynats\",\"description\":\"Server Management and Cloud Management\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\",\"name\":\"Skynats Technologies\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/Sknats-Logo-New-whole.png\",\"contentUrl\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/Sknats-Logo-New-whole.png\",\"width\":989,\"height\":367,\"caption\":\"Skynats Technologies\"},\"image\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/skynats\",\"https:\\\/\\\/x.com\\\/skynatstech\",\"https:\\\/\\\/www.instagram.com\\\/skynatstech\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/skynats-technologies\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCvTAjrFJ4_E2MJKwlDHomlg\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/person\\\/c63611da5e22d216e38d8658e5a605c5\",\"name\":\"Jishnu V\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/9fc7882cfbe811c2c069669ed9a43c27a8b4f7e013fc7e9d539199f807dc7ab1?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/9fc7882cfbe811c2c069669ed9a43c27a8b4f7e013fc7e9d539199f807dc7ab1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/9fc7882cfbe811c2c069669ed9a43c27a8b4f7e013fc7e9d539199f807dc7ab1?s=96&d=mm&r=g\",\"caption\":\"Jishnu V\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Add Multiple IPs to the White List in Imunify360 via Command Line","description":"Add Multiple IPs to the White List in Imunify360 via Command Line easily. Follow this guide to secure your server efficiently!","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:\/\/www.skynats.com\/blog\/multiple-ips-to-the-white-list-in-imunify360-via-command-line\/","og_locale":"en_US","og_type":"article","og_title":"How to Add Multiple IPs to the White List in Imunify360 via Command Line","og_description":"Add Multiple IPs to the White List in Imunify360 via Command Line easily. Follow this guide to secure your server efficiently!","og_url":"https:\/\/www.skynats.com\/blog\/multiple-ips-to-the-white-list-in-imunify360-via-command-line\/","og_site_name":"Server Management Services | Cloud Management | Skynats","article_publisher":"https:\/\/www.facebook.com\/skynats","article_published_time":"2025-02-25T07:52:00+00:00","article_modified_time":"2025-03-03T07:54:11+00:00","author":"Jishnu V","twitter_card":"summary_large_image","twitter_creator":"@skynatstech","twitter_site":"@skynatstech","twitter_misc":{"Written by":"Jishnu V","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.skynats.com\/blog\/multiple-ips-to-the-white-list-in-imunify360-via-command-line\/#article","isPartOf":{"@id":"https:\/\/www.skynats.com\/blog\/multiple-ips-to-the-white-list-in-imunify360-via-command-line\/"},"author":{"name":"Jishnu V","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/person\/c63611da5e22d216e38d8658e5a605c5"},"headline":"How to Add Multiple IPs to the White List in Imunify360 via Command Line","datePublished":"2025-02-25T07:52:00+00:00","dateModified":"2025-03-03T07:54:11+00:00","mainEntityOfPage":{"@id":"https:\/\/www.skynats.com\/blog\/multiple-ips-to-the-white-list-in-imunify360-via-command-line\/"},"wordCount":406,"publisher":{"@id":"https:\/\/www.skynats.com\/blog\/#organization"},"keywords":["Command Line","Imunify360","Multiple IPs","White List"],"articleSection":["Blog"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.skynats.com\/blog\/multiple-ips-to-the-white-list-in-imunify360-via-command-line\/","url":"https:\/\/www.skynats.com\/blog\/multiple-ips-to-the-white-list-in-imunify360-via-command-line\/","name":"Add Multiple IPs to the White List in Imunify360 via Command Line","isPartOf":{"@id":"https:\/\/www.skynats.com\/blog\/#website"},"datePublished":"2025-02-25T07:52:00+00:00","dateModified":"2025-03-03T07:54:11+00:00","description":"Add Multiple IPs to the White List in Imunify360 via Command Line easily. Follow this guide to secure your server efficiently!","breadcrumb":{"@id":"https:\/\/www.skynats.com\/blog\/multiple-ips-to-the-white-list-in-imunify360-via-command-line\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.skynats.com\/blog\/multiple-ips-to-the-white-list-in-imunify360-via-command-line\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.skynats.com\/blog\/multiple-ips-to-the-white-list-in-imunify360-via-command-line\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.skynats.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Add Multiple IPs to the White List in Imunify360 via Command Line"}]},{"@type":"WebSite","@id":"https:\/\/www.skynats.com\/blog\/#website","url":"https:\/\/www.skynats.com\/blog\/","name":"Server Management Services | Cloud Management | Skynats","description":"Server Management and Cloud Management","publisher":{"@id":"https:\/\/www.skynats.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.skynats.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.skynats.com\/blog\/#organization","name":"Skynats Technologies","url":"https:\/\/www.skynats.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/08\/Sknats-Logo-New-whole.png","contentUrl":"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/08\/Sknats-Logo-New-whole.png","width":989,"height":367,"caption":"Skynats Technologies"},"image":{"@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/skynats","https:\/\/x.com\/skynatstech","https:\/\/www.instagram.com\/skynatstech\/","https:\/\/www.linkedin.com\/company\/skynats-technologies","https:\/\/www.youtube.com\/channel\/UCvTAjrFJ4_E2MJKwlDHomlg"]},{"@type":"Person","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/person\/c63611da5e22d216e38d8658e5a605c5","name":"Jishnu V","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/9fc7882cfbe811c2c069669ed9a43c27a8b4f7e013fc7e9d539199f807dc7ab1?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/9fc7882cfbe811c2c069669ed9a43c27a8b4f7e013fc7e9d539199f807dc7ab1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9fc7882cfbe811c2c069669ed9a43c27a8b4f7e013fc7e9d539199f807dc7ab1?s=96&d=mm&r=g","caption":"Jishnu V"}}]}},"_links":{"self":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/14392","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/comments?post=14392"}],"version-history":[{"count":1,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/14392\/revisions"}],"predecessor-version":[{"id":14393,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/14392\/revisions\/14393"}],"wp:attachment":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/media?parent=14392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/categories?post=14392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/tags?post=14392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}