CpanelHosting.Africa
menu
Home
Order
Web Hosting
Domains
Support
arrow_drop_down
menu_book
Knowledge Base
support_agent
Support Center
email
Contact Us
dark_mode
Login
Register
home
Home
shopping_cart
Order
dns
Web Hosting
language
Domains
menu_book
Knowledge Base
login
Login
person_add
Register
dark_mode
Toggle dark mode
Home
Knowledge Base
Security
How to ban any IP Address via .htaccess?
How to ban any IP Address via .htaccess?
Updated 2 months ago
8962 views
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.
Still need help?
If this article did not answer your question, our support team can help.
Contact support
Browse all articles
Category
Security
Related articles
How to blacklist an IP Address to deny it access to your website?
How to disable directory browsing using .htaccess?
How to Disable the Two-Factor Authentication on Your cPanel Account?
How to Enable or Disable Mod Security in cPanel?
How to Enable the Two-Factor Authentication on Your cPanel Account?
NOTE: Many features on FOSSBilling require Javascript and cookies. You can enable both in your browser's preference settings.