• Home (current)
  • hosting
    Action Another action Something else here
  • domain
  • whmcs
    Action Another action Something else here
  • Company
    Action Another action Something else here
  • blog
  • 0 Shopping Cart
  • Store
    • Browse All
    • Web Hosting
    • Reseller Web Hosting
    • Email
    • VPS Linux KVM
    • VPN
    • SiteLock Website Security
    • CodeGuard Backup
    • TrustedSite Certifications
    • Comodo / Rapid SSL
    • DigiCert / Sectigo SSL
    • GeoTrust / Thawte SSL
    • Register a New Domain
    • Transfer Domains to Us
  • Announcements
  • Knowledgebase
  • Affiliates
  • Contact Us
  • More
  • Account
    • Login
    • Forgot Password?
  1. ioe: manage global digital products
  2. Knowledgebase
  3. Web Hosting
  4. cPanel - Control Panel
  5. Security
  6. How to Disable Directory Browsing Using the htaccess Rule

  Categories

5
about us
20
Domain Management
17
Email
2
ioe commission remuneration
2
IOE GoDaddy Reseller
7
PayPal
18
SolusVM
5
SSL
19
Virtualizor
3
VPN
368
Web Hosting

  Categories

  Tag Cloud

Cloudflare Cloudflare Domain Forwarding commission remuneration cpanel email domain GoDaddy Reseller Frequently Asked Questions GoDaddy SSL not working Mail sending limit Special requirements for domain name extensions vpn WHOIS

  Support

  My Support Tickets   Announcements   Knowledgebase   Downloads   Network Status   Open Ticket

How to Disable Directory Browsing Using the htaccess Rule Print

  • 0

For security purposes, you should disable directory browsing on your website so no one can see the files/directories of your website.


You can disable Directory Browsing by adding the below line to your dot htaccess file.

Options -Indexes




Was this answer helpful?

Related Articles

How to Password Protect a Directory in cPanel You can lock a directory with a password using the cPanel's Directory Privacy. 1. Log in to your... How to Protect the htaccess File You can prevent unauthorized access to your htaccess file by adding this rule to the file: #... How to Enable the Two-Factor Authentication on Your cPanel Account Security is important for our data safety. We recommend you to enable the Two-Factor... How to Disable the Two-Factor Authentication on Your cPanel Account Follow this instruction to remove two-factor authentication from your cPanel account.1. Log in to... How to Block Any IP Address via an htaccess Rule If you want to block an IP Address, you can add the below lines to your htaccess file. order...
« Back

  Tag Cloud

Cloudflare Cloudflare Domain Forwarding commission remuneration cpanel email domain GoDaddy Reseller Frequently Asked Questions GoDaddy SSL not working Mail sending limit Special requirements for domain name extensions vpn WHOIS

  Support

  My Support Tickets   Announcements   Knowledgebase   Downloads   Network Status   Open Ticket
Our Services
  • Shared Hosting
  • Vps Hosting
  • Reseller Hosting
  • Dedicated Hosting
Company
  • About Us
  • Contact Us
  • Blog
  • Networks
Support
  • Contact Us
  • Knowledge Base
  • Submit A Ticket
Get In Touch With Us
  • Address: Envato Labs, Behind Alis Street, Melbourne, Austrila.
  • Email: info@hostiko.com
  • Phone: (+1)123 456 7890
Legal
  • Domain
  • Privacy Policy
  • Acceptable Use Policy
whmcs
  • Announcements
  • Register Domain
  • Transfer Domain
Social Links
Copyright @ 2021 Hostiko.com
All RIght Reserved
  • Contact Us

Copyright © 2025 . All Rights Reserved.


Loading...
Loading...
Choose language
العربية
Azerbaijani
Català
中文
Hrvatski
Čeština
Dansk
Nederlands
English
Estonian
Persian
Français
Deutsch
עברית
Magyar
Italiano
Macedonian
Norwegian
Português
Português
Română
Русский
Español
Svenska
Türkçe
Українська

Choose Currency

$ USD
¥ CNY
€ EUR
₹ INR
₽ RUB
Rp IDR
₨ PKR
R$ BRL
৳ BDT
₦ NGN
£ GBP
¥ JPY
$ MXN
₱ PHP
R ZAR
₺ TRY
₫ VND
FC CDF
£ EGP
Br ETB
฿ THB
﷼ IRR
TSh TZS
K MMK
KSh KES

Generate Password

Please enter a number between 8 and 64 for the password length