{"id":764,"date":"2026-10-12T14:28:39","date_gmt":"2026-10-12T04:28:39","guid":{"rendered":"https:\/\/www.cloudproinc.com.au\/?p=764"},"modified":"2026-10-12T14:28:39","modified_gmt":"2026-10-12T04:28:39","slug":"how-to-create-an-ads-txt-file-on-azure-web-app-linux","status":"publish","type":"post","link":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/10\/12\/how-to-create-an-ads-txt-file-on-azure-web-app-linux\/","title":{"rendered":"How to Create an ads.txt File on Azure Web App (Linux)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This Microsoft Azure Web App post will show you how to create an ads.txt file on Azure Web App (Linux).<\/p>\n\n\n\n<!--more-->\n\n\n\n<div class=\"wp-block-yoast-seo-table-of-contents yoast-table-of-contents\"><h2>Table of contents<\/h2><ul><li><a href=\"#h-how-to-create-an-ads-txt-file-on-azure-web-app-linux\" data-level=\"2\">How to Create an ads.txt File on Azure Web App (Linux)<\/a><\/li><li><a href=\"#h-related-articles\" data-level=\"2\">Related Articles<\/a><\/li><\/ul><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Ads.txt is a text file containing information about an advertising network (Adsense, for example) and allows the network to verify the publisher&#8217;s identity. If you are a Google Adsense publisher, once your website is approved, you must add an ads.txt file to the root of your website.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Azure Web Apps allows us to run web applications like WordPress, .NET , Python, etc. Azure Web Apps run inside an App Service Plan. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">An App Service Plan is like a hosting plan that allocates resources to a Web App and can also include supporting services like MySQL, which is essential to running WordPress.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-create-an-ads-txt-file-on-azure-web-app-linux\">How to Create an ads.txt File on Azure Web App (Linux)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Creating an ads.txt file on Azure Web App (Linux) can be done in several ways. This post will use the built-in SSH terminal available from the Web App Advanced Tools.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To open the SSH terminal. Log in to the Microsoft Azure portal. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Open your Web App and scroll down to the Development Tools section.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Click on Advanced Tools<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"378\" height=\"149\" data-src=\"\/wp-content\/uploads\/2024\/10\/image-14.png\" alt=\"\" class=\"wp-image-765 lazyload\" data-srcset=\"\/wp-content\/uploads\/2024\/10\/image-14.png 378w, \/wp-content\/uploads\/2024\/10\/image-14-300x118.png 300w\" data-sizes=\"(max-width: 378px) 100vw, 378px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 378px; --smush-placeholder-aspect-ratio: 378\/149;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">From the Advanced Tools, click on Go.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1024\" height=\"195\" data-src=\"\/wp-content\/uploads\/2024\/10\/image-15.png\" alt=\"\" class=\"wp-image-766 lazyload\" data-srcset=\"\/wp-content\/uploads\/2024\/10\/image-15.png 1024w, \/wp-content\/uploads\/2024\/10\/image-15-300x57.png 300w, \/wp-content\/uploads\/2024\/10\/image-15-768x146.png 768w, \/wp-content\/uploads\/2024\/10\/image-15-980x187.png 980w, \/wp-content\/uploads\/2024\/10\/image-15-480x91.png 480w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/195;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Click on SSH<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1014\" height=\"373\" data-src=\"\/wp-content\/uploads\/2024\/10\/image-16.png\" alt=\"\" class=\"wp-image-767 lazyload\" data-srcset=\"\/wp-content\/uploads\/2024\/10\/image-16.png 1014w, \/wp-content\/uploads\/2024\/10\/image-16-300x110.png 300w, \/wp-content\/uploads\/2024\/10\/image-16-768x283.png 768w, \/wp-content\/uploads\/2024\/10\/image-16-980x360.png 980w, \/wp-content\/uploads\/2024\/10\/image-16-480x177.png 480w\" data-sizes=\"(max-width: 1014px) 100vw, 1014px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1014px; --smush-placeholder-aspect-ratio: 1014\/373;\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">From the SSH terminal, navigate to the wwwroot directory.<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>cd \/home\/site\/wwwroot<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Create an ads.txt file using the touch command.<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-1\"><code>touch ads.txt<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Open the newly created file using a VI editor.<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-2\"><code>vi ads.txt<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Type i to enter Insert mode and paste your ads.txt code using <\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Save the file by pressing Esc and type<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>:wq<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-related-articles\">Related Articles<\/h2>\n\n\n\n<ul class=\"wp-block-yoast-seo-related-links yoast-seo-related-links\">\n<li><a href=\"https:\/\/cloudproinc.com.au\/index.php\/2024\/03\/28\/streamlining-google-chrome-updates-in-your-organization-with-intune\/\">Streamlining Google Chrome Updates in Your Organization with Intune<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/cloudproinc.com.au\/index.php\/2024\/09\/13\/effortless-web-app-deployment-with-azure-cli\/\">Effortless Web App Deployment with Azure CLI<\/a><\/li>\n\n\n\n<li><a href=\"null\">Increase PHPMyAdmin Upload Size Limit on Azure Web App<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/cloudproinc.com.au\/index.php\/2024\/03\/28\/setting-google-chrome-as-the-default-browser-with-microsoft-intune\/\">Setting Google Chrome as the Default Browser with Microsoft Intune<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.cloudproinc.com.au\/index.php\/2024\/07\/08\/creating-custom-error-pages-in-azure-web-app\/\">Creating Custom Error Pages in Azure Web App<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This Microsoft Azure Web App post will show you how to create an ads.txt file on Azure Web App (Linux).<\/p>\n","protected":false},"author":1,"featured_media":467,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"off","_et_pb_old_content":"","_et_gb_content_width":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[16,55,13],"tags":[],"class_list":["post-764","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-azure","category-azure-web-app","category-blog"],"jetpack-related-posts":[{"id":746,"url":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/10\/12\/increase-phpmyadmin-upload-size-limit-on-azure-web-app\/","url_meta":{"origin":764,"position":0},"title":"Increase PHPMyAdmin Upload Size Limit on Azure Web App","author":"CPI Staff","date":"October 12, 2026","format":false,"excerpt":"In this Azure App Services article, we will show how to increase PHPmyAdmin Upload size limit on Azure Web App. PHPMyAdmin is a PHP-based open-source and free tool that allows us to manage MySQL and MariaDB databases using a web interface. The tool offers a simplified interface that makes the\u2026","rel":"","context":"In &quot;Azure&quot;","block_context":{"text":"Azure","link":"https:\/\/www.cloudproinc.com.au\/index.php\/category\/microsoft-azure\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2024\/07\/How-to-Recover-Deleted-or-Lost-Exchange-Online-Emails-to-PST.webp","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2024\/07\/How-to-Recover-Deleted-or-Lost-Exchange-Online-Emails-to-PST.webp 1x, \/wp-content\/uploads\/2024\/07\/How-to-Recover-Deleted-or-Lost-Exchange-Online-Emails-to-PST.webp 1.5x, \/wp-content\/uploads\/2024\/07\/How-to-Recover-Deleted-or-Lost-Exchange-Online-Emails-to-PST.webp 2x, \/wp-content\/uploads\/2024\/07\/How-to-Recover-Deleted-or-Lost-Exchange-Online-Emails-to-PST.webp 3x, \/wp-content\/uploads\/2024\/07\/How-to-Recover-Deleted-or-Lost-Exchange-Online-Emails-to-PST.webp 4x"},"classes":[]},{"id":58534,"url":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/10\/12\/how-to-assess-legacy-apps-for-azure-app-service-managed-instance\/","url_meta":{"origin":764,"position":1},"title":"How to Assess Legacy Apps for Azure App Service Managed Instance","author":"CPI Staff","date":"October 12, 2026","format":false,"excerpt":"A practical assessment framework for deciding whether a legacy Windows web application can move to Azure Managed Instance safely, affordably and without an expensive rebuild.","rel":"","context":"In &quot;App Service&quot;","block_context":{"text":"App Service","link":"https:\/\/www.cloudproinc.com.au\/index.php\/category\/app-service\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2026\/08\/how-to-assess-legacy-apps-for-azure-app-service-managed-instance.png","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2026\/08\/how-to-assess-legacy-apps-for-azure-app-service-managed-instance.png 1x, \/wp-content\/uploads\/2026\/08\/how-to-assess-legacy-apps-for-azure-app-service-managed-instance.png 1.5x, \/wp-content\/uploads\/2026\/08\/how-to-assess-legacy-apps-for-azure-app-service-managed-instance.png 2x, \/wp-content\/uploads\/2026\/08\/how-to-assess-legacy-apps-for-azure-app-service-managed-instance.png 3x, \/wp-content\/uploads\/2026\/08\/how-to-assess-legacy-apps-for-azure-app-service-managed-instance.png 4x"},"classes":[]},{"id":457,"url":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/10\/12\/streamlining-entra-id-app-registrations-with-azure-bicep\/","url_meta":{"origin":764,"position":2},"title":"Streamlining Entra ID App Registrations with Azure Bicep","author":"CPI Staff","date":"October 12, 2026","format":false,"excerpt":"In this Azure Bicep and Entra ID, we will show you how to create an Entra ID App Registration using Azure Bicep. Entra ID (formerly Azure Active Directory) is Microsoft's Azure and Microsoft 355 authentication and authorization service, handling all login events to both services. App Registrations in Entra ID\u2026","rel":"","context":"In &quot;Azure&quot;","block_context":{"text":"Azure","link":"https:\/\/www.cloudproinc.com.au\/index.php\/category\/microsoft-azure\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2024\/07\/Streamlining-Entra-ID-App-Registrations-with-Azure-Bicep.webp","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2024\/07\/Streamlining-Entra-ID-App-Registrations-with-Azure-Bicep.webp 1x, \/wp-content\/uploads\/2024\/07\/Streamlining-Entra-ID-App-Registrations-with-Azure-Bicep.webp 1.5x, \/wp-content\/uploads\/2024\/07\/Streamlining-Entra-ID-App-Registrations-with-Azure-Bicep.webp 2x"},"classes":[]},{"id":53079,"url":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/10\/12\/running-c-net-applications-in-azure-devops-pipelines\/","url_meta":{"origin":764,"position":3},"title":"Running C# .NET Applications in Azure DevOps Pipelines","author":"CPI Staff","date":"October 12, 2026","format":false,"excerpt":"In this blog post, I will show you how to build and run a C# application in Azure DevOps Pipelines. Estimated reading time: 3 minutes Table of contentsWhat Are Azure Pipelines?Step 1: Build the Console ApplicationStep 2: Create a YAML PipelineStep 3: Create a New PipelinePipeline Execution OverviewSummaryRelated Articles What\u2026","rel":"","context":"In &quot;.NET&quot;","block_context":{"text":".NET","link":"https:\/\/www.cloudproinc.com.au\/index.php\/category\/net\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2025\/01\/Running-C-.NET-Applications-in-Azure-DevOps-Pipelines.webp","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2025\/01\/Running-C-.NET-Applications-in-Azure-DevOps-Pipelines.webp 1x, \/wp-content\/uploads\/2025\/01\/Running-C-.NET-Applications-in-Azure-DevOps-Pipelines.webp 1.5x, \/wp-content\/uploads\/2025\/01\/Running-C-.NET-Applications-in-Azure-DevOps-Pipelines.webp 2x"},"classes":[]},{"id":58755,"url":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/10\/12\/modernise-web-apps-without-a-rewrite-on-azure-managed-instance\/","url_meta":{"origin":764,"position":4},"title":"Modernise Web Apps Without a Rewrite on Azure Managed Instance","author":"CPI Staff","date":"October 12, 2026","format":false,"excerpt":"Learn when Azure App Service Managed Instance can move legacy Windows web apps off ageing servers without a costly rewrite while improving security, supportability and cost control.","rel":"","context":"In &quot;App Service&quot;","block_context":{"text":"App Service","link":"https:\/\/www.cloudproinc.com.au\/index.php\/category\/app-service\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2026\/09\/modernise-web-apps-without-a-rewrite-on-azure-managed-instance.png","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2026\/09\/modernise-web-apps-without-a-rewrite-on-azure-managed-instance.png 1x, \/wp-content\/uploads\/2026\/09\/modernise-web-apps-without-a-rewrite-on-azure-managed-instance.png 1.5x, \/wp-content\/uploads\/2026\/09\/modernise-web-apps-without-a-rewrite-on-azure-managed-instance.png 2x, \/wp-content\/uploads\/2026\/09\/modernise-web-apps-without-a-rewrite-on-azure-managed-instance.png 3x, \/wp-content\/uploads\/2026\/09\/modernise-web-apps-without-a-rewrite-on-azure-managed-instance.png 4x"},"classes":[]},{"id":669,"url":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/10\/12\/effortless-web-app-deployment-with-azure-cli\/","url_meta":{"origin":764,"position":5},"title":"Effortless Web App Deployment with Azure CLI","author":"CPI Staff","date":"October 12, 2026","format":false,"excerpt":"This Azure Web Apps article will show how to use az webapp up to for quick deployment of web apps with minimal configuration. Deploying web applications has never been easier, thanks to the Azure CLI's az webapp up command. In this article, we'll explore how to quickly deploy web apps\u2026","rel":"","context":"In &quot;App Service&quot;","block_context":{"text":"App Service","link":"https:\/\/www.cloudproinc.com.au\/index.php\/category\/app-service\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2024\/09\/How-to-Create-an-Azure-AI-Language-Account-Using-REST-API.webp","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2024\/09\/How-to-Create-an-Azure-AI-Language-Account-Using-REST-API.webp 1x, \/wp-content\/uploads\/2024\/09\/How-to-Create-an-Azure-AI-Language-Account-Using-REST-API.webp 1.5x, \/wp-content\/uploads\/2024\/09\/How-to-Create-an-Azure-AI-Language-Account-Using-REST-API.webp 2x"},"classes":[]}],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"\/wp-content\/uploads\/2024\/07\/Streamlining-Entra-ID-App-Registrations-with-Azure-Bicep.webp","_links":{"self":[{"href":"https:\/\/www.cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/posts\/764","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/comments?post=764"}],"version-history":[{"count":1,"href":"https:\/\/www.cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/posts\/764\/revisions"}],"predecessor-version":[{"id":768,"href":"https:\/\/www.cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/posts\/764\/revisions\/768"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/media\/467"}],"wp:attachment":[{"href":"https:\/\/www.cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/media?parent=764"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/categories?post=764"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/tags?post=764"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}