WebhostGB Ltd
  • 0 Shopping Cart
  • Home
  • Store
    • Browse All
    • Web Hosting
    • WordPress Hosting
    • Website Builder
    • Web Design
    • Reseller Hosting
    • Online Marketing & SEO
    • Products
    • Managed Services
    • VPS Hosting
    • VPN
    • E-mail Services
    • Register a New Domain
    • Transfer Domains to Us
  • Announcements
  • Knowledgebase
  • Network Status
  • Affiliates
  • Contact Us
  • More
  • Account
    • Login
    • Forgot Password?
  1. Portal Home
  2. Knowledgebase
  3. SiteWorx (Control Panel)
  4. Security
  5. How to protect your .htaccess file?

  Categories

Backup/Restore
4
Control Panel
1
cPanel - Control Panel
15
Databases
5
DNS - Nameserver
3
Domain Management
10
Email
5
FTP
4
Game Servers
7
Mail Filters & SPAM
8
Others
3
Security
8
SiteWorx (Control Panel)
62
Softaculous
32

  Categories

  Support

My Support Tickets
Announcements
Knowledgebase
Downloads
Network Status
Open Ticket

How to protect your .htaccess file? Print

  • 0

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 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...
« Back

  Support

My Support Tickets
Announcements
Knowledgebase
Downloads
Network Status
Open Ticket
  • Contact Us
  • Terms of Service

Copyright © 2025 WebhostGB Ltd. All Rights Reserved.


Loading...
Loading...

Generate Password

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