HostingB2B » How to » Web Hosting » Disable directory browsing using .htaccess

Disable directory browsing using .htaccess

Summarize with:
Summarize with AI
Share:

For security purposes, we recommend that you disable directory browsing on your website.

A one-line .htaccess fix only works on a host that lets you edit the file. HostingB2B web hosting plans include .htaccess access, so you can disable directory browsing yourself. Live monthly prices start at €5.99. At the time these boxes were built, the plans were labelled Out of stock, so the buttons go to the product page.

See web hosting plans

That is so no one can see the files/folders of your website.

Only thing you need to do is add this line to your .htaccess file.

Women in Tech Old
Related ReadCelebrating Women in Tech: Empowering Diversity with HostingB2B
Options -Indexes

Web hosting plans (live prices)

These are the live monthly prices on the HostingB2B web hosting page. Power is marked Recommended there. At the time these cards were built, the page labelled the plans Out of stock, so each button goes to the product page rather than a checkout URL.
Web Hosting ECO
Start slow, grow fast
€5.99 /month
  • Websites · 1
  • Email · 1 address
  • Storage · 1 GB SSD
  • Bandwidth · 10 GB/month
  • SSL · Free SSL

See web hosting plans

MOST DEPLOYED
Web Hosting Power
Web hosting for business
€18.00 /month
  • Websites · 5
  • Email · 5 addresses
  • Storage · 5 GB SSD
  • Bandwidth · 50 GB/month
  • SSL · Free SSL

See web hosting plans

Web Hosting Pro
Hosting for growing sites
€24.99 /month
  • Websites · 10
  • Email · 10 addresses
  • Storage · 10 GB SSD
  • Bandwidth · 100 GB/month
  • SSL · Free SSL

See web hosting plans

That is all!

Telegram

Have a question about .htaccess or web hosting? Chat with HostingB2B support on Telegram.

Chat with Support

Visit our blog for more knowledgebase articles !

Host the site on a plan that lets you edit .htaccess

Review the live web hosting plans and current availability, or ask our team which plan fits the site you want to lock down.

The post Disable directory browsing using .htaccess appeared first on HostingB2B.

© 2026 All Rights Reserved. HostingB2B

Hosting B2B LTD is a Company registered in Cyprus with Company number HE410139 and VAT CY10410139C

Contact Info

© 2026 All Rights Reserved. HostingB2B