Manually importing a list of websites for content filtering
From Nitix Knowledgebase
Problem
How do I import a list of websites that can be used by Nitix content filtering?
Solution
To manually import a content filtering list in Nitix version 4.5.0 and later:
- Create text file containing the website you want to add. The text file should:
- Be a plain-text (ASCII) document containing a list of URLs or FQDNs to be imported.
- Consist of one URL (e.g. http://www.example.com) or FQDN (e.g. example.com) per line.
- Not contain additional white-space (tabs, spaces, etc) at the end of the URL or FQDN.
- Place the text file in a Nitix file share that will be accessible by telnet.
- Telnet into the Nitix server and log in as an administrative user.
- Move to the location where you placed text file. For example, if you placed the file in the share for sampleuser, type the following :
- Type the following command which should list the text file:
- Download the import script using the following command:
- Create the import file by executing the following command:
- Once the conversion is complete, the script will print out the following: Done. Exiting. The output will also display any URLs or FQDNs that could not be converted. You can either add these entries manually, or fix the entries in the text document and start over from step 2.
- Copy the file that has been created, onto the workstation.
- Log into WebConfig as an administrative user.
- Click on main menu, click WWW then click the "Configure" link located in the Content filtering section.
- At the bottom of the page, click List Management.
- In the Permitted Website List click "Enable".
- Click Browse and locate the file that you downloaded to the workstation.
- Click Import List and WebConfig should display the following:
- In the main configure section for content filtering, you should see a link in the Permitted Websites section that says:
cd /home/sampleuser/Files
ls
wget http://kb.nitix.com/images/6/65/Import_list_converter.pl
This will download the script to same directory as the text file on the Nitix server.
./import_list_converter.pl text_file_name file_output_name
The text_file_name should be the name of the text file you originally created and file_output_name will be the name assigned to the import file that is created as a result of running this script.
Permitted website list imported.
Total of x entries currently on Permitted List.
Click on the link to view the website that have been imported.

