Adding an ads.txt file to your website is essential for ensuring transparency in digital advertising. This file helps verify authorized sellers of your ad inventory. Here’s a step-by-step guide on how to add an ads.txt file using cPanel.

Step 1: Log in to cPanel

Start by accessing your cPanel account. Open your web browser and enter your cPanel URL (typically https://yourdomain.com/cpanel). Enter your username and password to log in.

Step 2: Open File Manager

Once logged in, find the File Manager icon in the "Files" section of the cPanel dashboard. Click on it to open the file management interface.

Step 3: Navigate to the Root Directory

In the File Manager, locate the directory where you want to place the ads.txt file. For most websites, this will be the public_html folder:

  1. Click on public_html in the left sidebar to open it.

Step 4: Create or Upload the ads.txt File

You can either create a new ads.txt file or upload an existing one:

Option A: Create a New ads.txt File

  1. In the public_html directory, click on the + File button at the top left.
  2. Name the file ads.txt and click Create New File.
  3. Once created, right-click on the ads.txt file and select Edit to open the text editor.
  4. Add the required content (e.g., your authorized sellers) and save the changes.

Option B: Upload an Existing ads.txt File

  1. If you already have an ads.txt file on your computer, click on the Upload button in the File Manager.
  2. Drag and drop your ads.txt file or click Choose File to select it from your computer.
  3. Once the upload is complete, you should see the file in the public_html directory.

Step 5: Verify the ads.txt File

To ensure that your ads.txt file is accessible, open a new browser tab and enter your website URL followed by /ads.txt. For example: https://yourdomain.com/ads.txt. If the file is correctly placed, you should see its contents displayed in your browser.

Conclusion

Adding an ads.txt file in cPanel is a straightforward process that enhances transparency in your advertising practices. By following these steps, you can easily create or upload the file, helping to ensure that your ad inventory is protected and accurately represented.

Помог ли вам данный ответ? 0 Пользователи нашли это полезным (0 голосов)