input license here

Instructions to block ip access with htaccess on Directadmin


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


Related Posts
Diệp Quân
Nguyen Manh Cuong is the author and founder of the vmwareplayerfree blog. With over 14 years of experience in Online Marketing, he now runs a number of successful websites, and occasionally shares his experience & knowledge on this blog.
SHARE

Related Posts

Subscribe to get free updates

Post a Comment

Sticky