Making website accessible only from certain IP addresses
Follow the steps below to make a website reachable only from IP addresses 1.2.3.4 and 5.6.7.8 and unreachable from all others.
- Log in to My Hosting
- Click on ‘Diensten’
- Click on the appropriate subscription
- Click the “Login to the Plesk control panel” button.
- Click on ‘File Management’ under the appropriate website
- Open the .htaccess file
At the top of the the opened file, place the following lines and then save the changes.
Order Deny,Allow Deny from all Allow from 1.2.3.4 Allow from 5.6.7.8