![]() ![]() to allow access to everybody else and block users with an X.X.X.X IP address.To set up certain blocking rules, create an. It is very useful to block unwanted visitors or to allow accessing certain sections of the website by its owner, administration area, for example. htaccess:ĪuthUserFile "/home/cpanel_user/.htpasswds/public_html/test/passwd"īlocking – blocks users by IP address or domain. Create a passwd file in this directory and add hashed access details using this online generator.ģ. Create the directory you want to protect in /home/cpanel_user/.htpasswds/ folder (e.g., for public_html/test the path will be. You can password-protect a directory, or several of them, and any time a visitor tries to access it, username and password will be required.ġ. You are ready to add your own configuration rules and save them.Īuthorization/authentication – specifies security restrictions for a directory/subdirectory. htaccess file located in your File manager, feel free to create a new one using File option: Once there, make sure that Show Hidden files (dotfiles) option is enabled in Settings menu:Ĥ. If you need to make some changes to the addon domain, move to public_html/ folder. htaccess file for your main domain, navigate to public_html folder. ![]() Navigate to the section Files > File Manager:ģ. htaccess file of your hosting account, follow the steps below:Ģ. The changes made in this file will be implemented immediately and no server restart is required. htaccess file takes effect over the entire directory it is placed in, including all files and subdirectories. It is used to alter web server configuration (enable or disable additional features) for the specific account without changing global server settings. htaccess is a directory-level configuration file supported by the Apache web server. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |