+1-855-211-0932 (ID:68640)
Not a customer yet? Sign up now!

HomeWeb Hosting TutorialsHTACCESS GeneratorHow to enable IP authentication for your sites with htaccess

How to enable IP authentication for your sites with htaccess

This web hosting tutorial shows you how to enable IP authentication for your sites with htaccess using our advanced Hepsia web hosting control panel. This video tutorial is also available inside the OzeVision Web Hosting control panel under Help/Video Tutorials.

If you want to make a part of your website visible just to certain visitors, you can enable website authentication. This way, only visitors with the right IP address can see your website. You can do that using the .htaccess file.

First, set the folder in which the .htaccess file will be created, using the .htaccess location form at the top of the page. A click in the form field will open a pop-up window, from where you can browse to the desired website folder.

Then, go to the authentication menu. In there, mark the Enable IP authentication checkbox. Then, in the Allow IP address/es: form, add the IP address to which you wish to grant access. You can add multiple IP addresses, separating them with commas [123.45.67.91, 98.65.43.210]. Via the Block IP address[es]: field you can stop visitors whose IPs you specify here from visiting your website.

Once you are done, scroll down to the bottom of the page and click the "Generate" button. The newly created .htaccess file will take effect in up to 15 minutes.

Tags: , , , , ,