Link copied to clipboard!
Managed IT

How to ban any IP Address via .htaccess?

Sreenivasa Reddy G
Sreenivasa Reddy G
Founder & CEO
2016-09-19T10:44:321 min read
24

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

Topics

cPanelWHM
Sreenivasa Reddy G
Written by

Sreenivasa Reddy G

Founder & CEO15+ years

Sreenivasa Reddy is the Founder and CEO of Medha Cloud, recognized as "Startup of the Year 2024" by The CEO Magazine. With over 15 years of experience in cloud infrastructure and IT services, he leads the company's vision to deliver enterprise-grade cloud solutions to businesses worldwide.

Managed IT SupportCloud InfrastructureDigital Transformation
Follow on LinkedIn

Need Expert Help?

Our team of cloud and IT experts is ready to help you solve your toughest challenges. Get personalized assistance today.