We Provide Multi Location Premium cPanel Hosting!
  • Contact
  • View Cart (0)
  • Client Area
Thunderhoster logo
  • Domains
    Register Domain
    Your very own website address
    Transfer Domain
    Move your domain to Thunderhoster

    Hundreds of customer's around the world trust Thunderhoster to manage their domain. We provide freedom and control including full access & the ability to move/sell your domains.

  • Web Hosting
    Multi Location Shared Hosting
    Premium cPanel web hosting
    Reseller Hosting
    Start your own hosting business
    VPS Hosting
    Take full control of your hosting
    Cloud Hosting
    Take your website to the cloud
    Windows ASP.Net Hosting
    Specialized hosting for ASP.NET websites on Windows servers
    Web Design
    Hire Thunderhoster to build your website

    We provide a wide range of services for your business including Web Hosting, Dedicated Servers, VPNs & more.

  • Company
    Company
    Learn more about Thunderhoster
    Why Choose Us
    The reasons why to choose us
    Testimonials
    Lots of feedback from our customer's
    Affiliate Program
    Make money with Thunderhoster
    Announcements
    Get up to date with the latest news
    Downloads
    View our collection of downloads

    Learn more about what makes Thunderhoster the best choice for web hosting services.

  • Support
    Contact Form
    Contact our pre-sales department
    Submit Ticket
    Contact our support via ticket
    Knowledgebase
    View our vast documentation

    If you have a pre-sale question or issue with your website we are here to help.

  • Order

Knowledgebase

Portal Home > Knowledgebase > Security > How to ban any IP Address via .htaccess?

  Categories

4
Backup/Restore
24
cPanel - Control Panel
11
Databases
6
DNS - Nameserver
10
Domain Management
11
Email
9
FTP
6
Installing a Control Panel
8
Mail Filters & SPAM
11
Mobile
3
Others
10
Security
60
SiteWorx (Control Panel)
79
Softaculous
19
SolusVM
5
SSL
1
What is Plesk Hosting?
17
Wordpress

  Categories

  Support

  My Support Tickets   Announcements   Knowledgebase   Downloads   Network Status   Open Ticket

How to ban any IP Address via .htaccess? Print

  • 0

If someone is trying to hack your website or you want to block their IP Address, you can add this line to your .htaccess file.


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


Replace "IP-ADDRESS" with the IP Address you want to block.


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 protect your .htaccess file? For security purpose we recommended you to prevent access to your .htaccess file from... 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 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
SVG Spinner with Overlay
Loading...
Loading...

Generate Password

Please enter a number between 8 and 64 for the password length
Thunderhoster partners
Services
  • Multi Location Shared Hosting
  • Reseller Hosting
  • VPS Hosting
  • Cloud Hosting
  • Windows ASP.Net Hosting
  • Web Design
Thunderhoster Money Back Guarantee
Domains
  • Register Domain
  • Transfer Domain
Company
  • Company
  • Why Choose Us
  • Testimonials
  • Affiliate Program
  • Announcements
  • Downloads
Support
  • Contact Form
  • Submit Ticket
  • Knowledgebase
About Thunderhoster
Thunderhoster provide premium web hosting, domain registration & security services to businesses around the world. more
Trustpilot
Kemp House 128 City Road, London, United Kingdom, EC1V2NX
sales@thunderhoster.com
Company Number: 13432061
Thunderhoster Credit Card
DMCA.com Protection Status SiteLock
Thunderhoster © 2023 | All rights reserved
  • Terms Of Service
  • Acceptable Usage Policy
  • Privacy Policy