This article provides information about the UNIX Curl command that can be used to fetch information about website category for enhanced web filtering.
Generally customers use enhanced web filtering in UTM to block or permit website in their network based on category.
In order to find out category of the web site we can go to http://csi.websense.com and check the category
For troubleshooting purpose we can make use of Curl utility of UNIX and check the category of websites from SRX itself.
Below are the steps and command to do that.
1.Go to shell prompt
root%
2.run this command from shell
root% curl -H "X-WSL-Verbose: 1" -H "X-WSL-Auth: 2A924A53SJG32KPK" "http://rp.cloud.threatseeker.com/urlinfo/cat?url=<enter url for which you want to find out the category>"
Example : This example is used to find out category of url https://chat.zoho.com .
root% curl -H "X-WSL-Verbose: 1" -H "X-WSL-Auth: 2A924A53SJG32KPK" "http://rp.cloud.threatseeker.com/urlinfo/cat?url=https://chat.zoho.com"
After running this command you will get output like this with category detail. For this website category turns out as web chat .
{ "cat" : [ "79" ], "status" : "success", "date" : { "epoch" : 1388168383, "datetime" : "2013-12-27T18:19:43" }, "url" : { "source" : "https://chat.zoho.com", "cat" : [ { "desc" : "Web Chat", "id" : "79" } ] }, "duration" : 0.003469, "code" : 200 }