Bobcares

wesupport

CLIENT AREACall Us 1-800-383-5193
Bobcares

wesupport

Call Us 1-800-383-5193
Bobcares

wesupport

Call Us 1-800-383-5193

Need help?

Our experts have had an average response time of 13.52 minutes in October 2021 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

Htaccess: deny access to domain | An easy fix

by | Nov 4, 2021

Htaccess: deny access to domain made easy with Bobcares by your side.

At Bobcares, as a part of our Server Management Service, we have a solution for every query you may have.

Let’s take a look at how our Support Engineers recommend denying access for a domain to a specific IP address.

About denying access to domain via htaccess

If you are looking for a way to deny access to a domain from a specific IP address, you have come to the right place.

Our Support Engineers are here with a solution that allows you to utilize the ‘deny from’ option as per your requirements

How to use htaccess to deny access to domain?

We can deny access to any IP address to a domain by utilizing the ‘deny from’ option in the .htacess file.

For instance:

deny from 192.168.168.30 
deny from 192.168.168.40

We can also block an entire range of IP addresses via CIDR or by removing the last octet.

For instance:

 deny from 192.168.1

or,

deny from 192.168.1.0/24

If you want to block everyone except the listed IPS, we can use:

deny from all 
allow from 192.168.1.0/24

However, if the domain utilizes Cloudflare for DNS, this solution will not work unless we disable the proxy service.

[Looking for assistance with AWS? Give us a call today.]

Conclusion

In brief, we learned about how to deny access for a domain to a specific IP address or a range of IP addresses under the guidance of the skilled Support Engineers at Bobcares.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Categories

Tags