main logo

How to ban any IP Address via .htaccess?

Array

Table Of Contents

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
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: sales@medhahosting.com
©Medha Cloud 2024. All rights reserved.
White Label Managed IT Services - Free Trial

Managed IT Services

Here is a breakdown of our managed IT services, including workstations, servers, networks, security, and support options. Choose the services that best fit your business needs.


blue-cross
Microsoft 365 Migration - Free Quote

blue-cross