Allow Access To Website From Specific IP ONLY
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.
-
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 -
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.
Comments
2 comments