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

Need help from one of our hosting gurus?

Do you need an urgent answer to a question or help from our support? Our hosting specialists are more than happy to assist you!

Customer Support Team

Our customer service is open until 18:00 hour

Of neem een kijkje in onze 'stap-voor-stap' support handleidingen.

View support articles