SALE
Save 10% on all annual hosting plans — lock in a lower rate on Shared, VPS, or Game Servers.
  • About Us
  • Contact Us
  • Report Abuse
x
Host Boogie
icon Register a New Domain icon Transfer Domains to Us
Register Login icon
English Icon
Icon
Icon
  • registeredUser

    userHaveAccount.

    Login
  • newUser

    userHaveNoAccount.

    Register
x
support@hostboogie.com
x
Home
Store
  • Browse All
  • Shared Hosting
  • VPS Hosting
  • Game Hosting
  • Register a New Domain
  • Transfer Domains to Us
Announcements
Knowledgebase
Network Status
Contact Us
  • More
    1. Portal Home
    2. Knowledgebase
    3. Security
    4. How to protect your .htaccess file?

      Categories

    Backup/Restore
    4
    cPanel - Control Panel
    24
    Databases
    11
    DNS - Nameserver
    6
    Domain Management
    10
    Email
    11
    FTP
    4
    Installing a Control Panel
    6
    Mail Filters & SPAM
    8
    Mobile
    11
    Others
    3
    Security
    10
    SiteWorx (Control Panel)
    60
    Softaculous
    71
    SolusVM
    19
    Wordpress
    17

      Categories

      Support

    My Support Tickets
    Announcements
    Knowledgebase
    Downloads
    Network Status
    Open Ticket

    How to protect your .htaccess file? Print

    • 2

    For security purpose we recommended you to prevent access to your .htaccess file from unauthorized access.

    Add this code to your .htaccess file:

    # .htaccess protection

    order allow,deny
    deny from all
    satisfy all

    Was this answer helpful?

    Related Articles

    How to protect your website's images from an external website? External Website can use < img /> tag to display an image from your site somewhere else on... How to disable directory browsing using .htaccess? For security purposes, we recommend that you to disable directory browsing on your website so no... How to restrict directory access by IP address? In order to secure your admin area from hackers, we recommended you to allow access only from... How to ban any IP Address via .htaccess? If someone is trying to hack your website or you want to block their IP Address, you can add this... How to blacklist an IP Address to deny it access to your website? You can lock directory with a password by using cPanel "Password Protected Directories" option.1....
    « Back

      Support

    My Support Tickets
    Announcements
    Knowledgebase
    Downloads
    Network Status
    Open Ticket
    • Hosting
    • Shared Hosting
    • VPS Hosting
    • Game Servers
    • Web Design
    • Custom Websites
    • Email Our Web Team
    • Email Us
    • Support
    • Sales
    • Management
    • Clients
    • Register
    • clientAreaLink
    • Open Ticket
    • Legal
    • Terms of Service
    • Privacy Policy
    • Report Abuse

    Save 10% on all annual hosting plans

    Lock in a lower rate and save when you choose any annual hosting plan.
    Shared, VPS, or Game Servers — all eligible.

    View Hosting Plans
    Host Boogie

    Copyright © 2026 Host Boogie. All Rights Reserved. The Host Boogie word mark is a registered trademark of Host Boogie, LLC. 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
    Українська

    Generate Password

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