Skip to main content

Allow Access To Website From Specific IP ONLY

Comments

2 comments

  • bloatedstoat
    Hey @mydigia Given modifying files inside the /home/user directory appears to be out of the question you could, if you had a spare and unused IP address floating about, change the domain's IP within WHM and then firewall that individual IP. Clearly DNS propagation could be an issue when the IP changes but it would give you the flexibility you need to isolate the account. You could then block certain ports for that IP if desired and cut it off entirely if necessary using the firewall alone.
    0
  • cPanelLauren
    You could use an Apache include to do this and apply it to an individual VirtualHost or all VirtualHosts a user owns. You can find information on this here: Modify Apache Virtual Hosts with Include Files | cPanel & WHM Documentation Configuration of this is pretty similar to what can be used in an .htaccess and you can find it here: Authentication and Authorization - Apache HTTP Server Version 2.4
    0

Please sign in to leave a comment.