Tronadian Web Hosting logo Tronadian Web Hosting Tronadian Web Hosting logo Tronadian Web Hosting
News:
Automatic Daily Backups New Feature - SiteJet Builder
CAD
  • CAD
  • USD
  • 0
    Account
    ExtendReduce
    Home
    Domains
    Register a New Domain Transfer a Domain My Domains
    Store
    Browse All ----- Shared Hosting WordPress Hosting SSL Certificates SEO Tools Website Security Site & Server Monitoring Professional Email ----- Register a New Domain Transfer Domains to Us
    Announcements Knowledgebase Network Status Contact Us Articles
    Client Login
    Knowledgebase
    1. Portal Home
    2. Knowledgebase
    3. SiteWorx/InterWorx
    4. Security
    5. How to Restrict Access to Directories by IP Address - SiteWorx
    Categories
    • SLA & Legal Policies
      2
    • Backup/Restore
      5
    • CloudLinux (cPanel)
      10
    • cPanel - Control Panel
      24
    • Databases
      11
    • DirectAdmin
      48
    • DNS - Nameservers
      6
    • Domain Management
      10
    • Email
      17
    • FAQ
      7
    • FTP
      9
    • Installing a Control Panel
      5
    • Mail Filters & SPAM
      8
    • Mobile
      11
    • Others
      3
    • PayPal
      7
    • Plesk
      47
    • Security
      10
    • SiteJet
      1
    • SiteWorx/InterWorx
      58
    • Softaculous
      69
    • SolusVM 2
      16
    • SSL
      4
    • Virtualizor
      19
    • WHM
      18
    • WordPress
      17
    Tag Cloud
    Support
    • My Support Tickets
    • Announcements
    • Knowledgebase
    • Downloads
    • Network Status
    • Open Ticket
    How to Restrict Access to Directories by IP Address - SiteWorx
    Print

    To secure your admin area from hackers, you should only allow access to your admin directory from selected IP addresses. You can create a dot htaccess file in the directory where you want to restrict access to specific IP addresses.

    For example, if you have a WordPress blog installed on your main directory and you log in via example.com/wp-admin, you should create an htaccess file in /wp-admin/.htaccess and put the following code into it. Please, don't forget to replace the allowed IP address with your IP address.

    order deny, allow
    deny from all
    allow from YOUR-IP-ADDRESS-HERE

     

    Replace the Your-IP-Address-Here text with your IP address.


    You can test this by accessing the wp-admin directory from another IP address, not mentioned in your htaccess file.

     

    Was this answer helpful?

    0 Users Found This Useful (0 Votes)

    Related Articles

    Most Popular Articles

    How to Ban Any IP Address via htaccess

    If you want to block an IP Address, you can add the below lines to your htaccess file. order...

    How to Disable Directory Browsing Using the htaccess Rule

    For security purposes, you should disable directory browsing on your website so no one can see...

    How to Protect Your htaccess File

    You can prevent unauthorized access to your htaccess file by adding this rule to the file: #...

    Tronadian Web Hosting logo Tronadian Web Hosting logo

    contact@tronadian.ca
    Product
    • Web Hosting
    • WordPress Hosting
    Domains
    • Domain Checker
    • Transfer Domain
    Services
    • SSL Certificates
    • Professional Email
    • Website Security
    • SEO Tools
    Legal
    • Privacy Policy
    • Terms Of Service
    • Acceptable Usage Policy
    • Contact Us
    • Articles
    Copyright © 2026 Tronadian Web Hosting. All Rights Reserved.
    FraudLabs Pro Prevents Fraud for Digital Businesses Payments
    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

    $ CAD
    $ USD

    Generate Password

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

    We use cookies to improve your browsing and support experience. By continuing, you agree to our Privacy Policy.