main logo

How to ban any IP Address via .htaccess?

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/.

Sreenivasa Reddy G
Sreenivasa Reddy G
Share
Contents

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 Cloud Solutions Private Limited
#74, 7th 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.