Allow Access To Website From Specific IP ONLY

mydigia

Registered
May 30, 2020
2
0
1
UK
cPanel Access Level
Root Administrator
Hello,

Trying to work out the best way and what others do..

A website has violated our terms & conditions and we received abuse report. We suspended the account. Now we're at the stage that for a grace period we want to allow the website to be back up, but ONLY to owner's IP while they fix the issue. .htaccess is out of our control as the user will be allowed to modify it (right?).

So what do people do to put a website into isolation mode so the users fix it before allowing it to go back online to the wild public again? Thanks.
 

bloatedstoat

Well-Known Member
Jun 14, 2012
183
24
68
Victoria, Australia
cPanel Access Level
Root Administrator
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.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,298
1,279
313
Houston