To disable directory listing in cPanel, follow these steps:
- Log in to your cPanel account.
- In the "Files" section, click on the "Directory Privacy" icon.
- In the "Web Root" section, click on the "Go" button.
- In the list of directories, find the directory that you want to disable directory listing for, and click on the "Set Password" link.
- In the "Username" and "Password" fields, enter the username and password that you want to use to access the directory.
- Click on the "Save" button.
Once you have set a password for the directory, directory listing will be disabled for that directory. Directory listing is a security vulnerability that allows anyone to see the contents of your website's directories, so it is important to disable it to protect your site.