How to enable host-based website authentication using .htaccess?

You can use the .htaccess file to easily block specific websites, which link to your media files or articles.

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 mod_rewrite menu. In there, mark the Enable Host authentication checkbox. In the form field, you can then enter the websites, which you do not wish to link to you. You can enter multiple websites, separating them with commas. You can also enter a list of websites, which are allowed to link to 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.