Step 1. Enable mod_rewrite on your Apache web server.
Step 2. Create .htaccess file in root directory.
Step 3. If you want to block the 192.185.1.2 IP address, you type in .htaccess file
Order Allow,Deny
Deny from 192.185.1.2
Step 4. Restart Apache Server
sudo service apache2 restart
Copyright ©2022 coderraj.com. All Rights Reserved.