Thank you Mary for your suggestion.
I will provide the details of how I resolved this issue. I'm coming up to speed on this software, so like any software there is so much to learn, and form me to do wrong. If I have made a mis step please kindly indicate it. (like I could stop you) I hope that this information will help others not just with this error but it should help them to resolve other DENIED issues, if they extrapolate the information. (ok I just wanted to use the word extrapolate)
The important thing here is the log message with the phrase ..
*DENIED* Banned extension: .com GET 0 0 Banned extension 1 403 application/json -
Taking some of my knowledge from Watchguard firewalls, really what needs to be allowed is the application/json type. I'm not really sure what the .com really means, happy if someone tells me. I tried to do alot of reading and really could not find much. So I just experimented. I found that if I went to the file ,
#/etc/dansguardian/lists/exceptionmimetypelist
and then added the following mimetype to the list of allowed mime types,
application/json
The problem was prety much solved. I say prety much because the site was better but still not perfect. So I went to the trusty /var/dangsguardian/allow.log and saw,
*DENIED* Weighted phrase limit of 50 : 60 ((pink, lips)+(proxy, block)+(proxy, filter)+-main+-transparent+-tumor) GET 115503 60 Proxies, Pornography 1 403 text/css -
Dansguardian uses a weighted phrase system to filter web sites. If it saw many many bad words it would block the site. In this case it saw the words pink and lips on the web site. And then blocked it, at least the way I read it. Now you have two options to resolve this. The 50 : 60 number is very significant.
What it is saying is that your default naughtynesslimit is set to 50. Any score from a site that is over your naughtynesslimit will be blocked. In this case the words pink, lips has been given a score of 60. The DG security guard jumps into way and is saying No Stop I will not allow this because your limit is 50 but this site is 60.
There are two ways to fix this.
1. Because my install is brand new install of DG my naughtynesslimit was set to 50. Thats really restrictive. (if you want that, then great but for an office setting I think its a bit high) I have set mine to 135. You do this by going to /etc/dansguardian/dansguardianf1.conf, looking for a line that says
naughtynesslimit = ##
The ## should be a number. In my case it was naughtynesslimit = 50. I changed this to 135, then ran /etc/init.d/dansguardian restart. This downgrades all the scores. BTW I chose 135 because when I went to the playboy site, ( I just read articles honest) I found that the score was about 143. If in my mind playboy is the mildest site for porn then I use that as my gage and set my naughtynesslimit to 135. Blocking that site and everything worse. Thats my thinking anyway.
2. Second method. Maybe you already have your global naughtynesslimit set to a setting you like and dont want to change it. Then you can change the actual score for the bad words. In my case, and you will have to do your own research on this, I found that the reported bad words pink lips were coming from a file
/etc/dansguardian/lists/phraselists/pornography/weighted
(just do a find for the words in the /lists sub directorys)
I found in this file the following line <pink>,<lips><50>
Just change the number 50 to something less, you can do trial and error. Keep looking at the logs to see what the score is and then lower it to below that. Of course that will affect all future scores for that phrase. But these scores are not perfect. They are writen with the best intentions. I have found in some situations, like health organizations they need to allow certain street phrases because they do research into odd things.
Of course after any changes run /etc/init.d/dansguardian restart , try your web site and if its still not right change the score again. And keep and eye on the logs as they will be your best indication of whats happening and why things are blocked.
Hope it helps.