Step 1: Log in to Directadmin according to the link that the service provider email sent
Figure 1: Login to Directadmin
Step 1: Go to Files > public_html > .htaccess and select Edit
Figure 2: Go to htaccess
Step 2: Add the commands and ip you want to block access eg(192.198.126.214) to the website then click Save As
order allow,deny
deny from 192.198.126.214
allow from all
Figure 3: Command to block ip
Step 4: Then try to access with blocked ip successfully
Figure 4: Check if ip is blocked
Conclude
We have just completed the steps to Block ip access with htaccess Directadmin here we can block spam ips or other bad intentions if you want and to use Directadmin you can refer to Directadmin hosting packages
Thank you for reading this article!
Baby Snake
Post a Comment
Post a Comment