.htaccess Management - Add Rule

Fill the form and click the Save button to to add a new Rule to the .htaccess file. To cancel the operation, click Cancel.

Field | Description

Header field

A header is the part of the HTTP request and response that is sent before the actual content, and contains meta-information describing the content. Select the type of the requesting browser attribute (i.e., the name of the header field). This can be the Remote host (access to your website is denied from a certain IP address or a hostname), the User agent (access is denied by a certain value of the 'User-Agent' header field), or Referrer (access is denied from a certain requesting-browser URL).

String

Type the actual attribute of a requesting browser that blocks access to your website for such a browser (in accordance with the header field selected before):

- If you selected Remote host, type the IP address or the hostname of the requesting browser.
- If you selected User agent, type the the regular expression that matches the value of 'User-Agent' header line.
- If you selected Referer, type the URL of the requesting browser.

Case sensitive | You can mark this checkbox if you selected the User Agent or Referer header fields and you think that the uppercase and lowercase letters in the header field do matter.

Apply to files

You can select the particular file types in the restricted directory, so that a directory content will be available, but files of a certain type cannot be viewed. To this effect, mark the Apply to files checkbox and specify a file type (like *.html *.txt, etc.) in the Files textbox.
If you want to specify the file types using regular expressions, mark the Use regex checkbox below the Files textbox.