Step 01: Log in to cPanel using your “username” and “password”.
Step 02: Scroll down and go to the “Advanced” section. Then click “Indexes”.
Step 03: Go to “Public_html”. Then click “EDIT”.
Step 04: Select “No Indexing”. Then Click the “Save” Button.
Congratulations, guys! You have successfully protected your website directory. Thank You.