main logo

How to ban any IP Address via .htaccess?

Share
Try Medha Cloud for free
Click below to sign up and get $200 of credit to try our products over 60 days!
Contents
Sreenivasa Reddy G

How to ban any IP Address via .htaccess?

ban any IP Address

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.

If you have any doubts about protecting website images from external websites, you can refer to this article: How to Protect Website Images from Hotlinking: https://medhacloud.com/protect-websites-images-external-website/.

Related Articles

medhacloud logo
USA:
Medha Cloud Solutions LLC
30 N Gould St Ste R, Sheridan, WY 82801,
Phone: +1 646 775 2855

India:
Medha Hosting Private Limited
#74, 7 Th Cross, Krishna Garden InCity Layout. Chikka Kammanahalli, Banneraghatta Road, Bangalore 560083
Phone:+91 93536 44646

E-Mail: support@medhahosting.com
©Medha Cloud 2024. All rights reserved.