Include blocked URL in AccessMessageFile

For general issues related to PWB v2.

Moderators: Tyler, Scott, PWB v2 Moderator

Post Reply
AnthonyM
Provider
Provider
Posts: 57
Joined: Wed Sep 22, 2004 2:37 pm

Include blocked URL in AccessMessageFile

Post by AnthonyM »

Is it possible to show the URL of the site that caused the AccessMessageFile to be shown? I've looked through the forum but could find any references. Occasionally it will pop-up on sites that have been allowed because they contain off site elements. This would make it much easier for the user to let us know what additional sites need to be allowed. Thanks.

(BTW PWB v3 looks great so far)

Scott
Site Admin
Site Admin
Posts: 2539
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

Post by Scott »

Currently it is not possible to have the URL shown in the access message.

It is however possible to log the URL in the history file, or show an access debugging dialog when a URL is denied.

To log the URL set the following in the INI file.

[Security]
WriteHistoryFile=True
LogAccess=True

To show the debugging dialog, set the following.

[Security]
DebugAccessString=True

If you need to show the URL in the access message we can add it to our to do list.

--Scott

AnthonyM
Provider
Provider
Posts: 57
Joined: Wed Sep 22, 2004 2:37 pm

Filter log

Post by AnthonyM »

Thank you very much, that definitely helped.

Is it possible to only log blocked URLs? If not, I'd like to request it be added in a future release. I found the log file got large pretty quick and there is also a privacy concern. Thanks again.

Scott
Site Admin
Site Admin
Posts: 2539
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

Post by Scott »

Logging only denied URLs will be in the next release of PWB (v2.10.6)

--Scott

Scott
Site Admin
Site Admin
Posts: 2539
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

Post by Scott »

PWB version 2.10.6c beta 01-13-2009 currently available on the Beta webstite contains loggining only denied URLs.

Copy the new PWB.EXE over the old PWB.EXE file, and add the following to your PWB v2.10.x INI file

[Security] LogDeniedAccess=True

Ensure the following is also set to true to enable the history file.

[Security] WriteHistoryFile=True

--Scott

AnthonyM
Provider
Provider
Posts: 57
Joined: Wed Sep 22, 2004 2:37 pm

Thanks

Post by AnthonyM »

Wow, Thanks! This is really big help. Thank again.

AnthonyM
Provider
Provider
Posts: 57
Joined: Wed Sep 22, 2004 2:37 pm

Post by AnthonyM »

Sorry Scott, I can't seem to get it to work. I replaced the exe with the new beta, added
[Security] LogDeniedAccess=True
and made sure
[Security] WriteHistoryFile=True
but it does not write anything to the history file. I know the permissions on the file are fine, because if I set
LogAccess=True
its logs all the URLs visited. I can email my ini and url.txt files to you if you want. Thanks for your time.

Scott
Site Admin
Site Admin
Posts: 2539
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

Post by Scott »

I tested it and it seems to work, although see below. Send a copy of your INI file that you are testing with to support@teamsoftwaresolutions.com and I will take a look at it.

I noticed that with "WriteHistory" set to true, both what was typed in and denied were getting logged, so I posted a new PWB v2.10.6d that writes to the log with out "WriteHistory" being set to true.

--Scott

Scott
Site Admin
Site Admin
Posts: 2539
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

Post by Scott »

Download PWB v2.10.6e off the beta page. This corrects for an exclusive (-all) type filter. PWB v2.10.6d was only taking into account an inclusive filter (+all).

--Scott

AnthonyM
Provider
Provider
Posts: 57
Joined: Wed Sep 22, 2004 2:37 pm

Post by AnthonyM »

Perfection! It works exactly as expected. Thanks again for all your work.

AnthonyM
Provider
Provider
Posts: 57
Joined: Wed Sep 22, 2004 2:37 pm

URL vs Page Title

Post by AnthonyM »

I was going though the log of blocked site and some of the items listed seem to be page titles instead of URLs. Is this possible? Is there anyway to have it log only the URLs? Thanks.

Scott
Site Admin
Site Admin
Posts: 2539
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

Post by Scott »

PWB should only be listing the URL when the [Security]LogDeniedAccess=True.

IE does present PWB with JavaScript as a URL, so this gets logged as well.

Make sure you have [Security]WriteHistory=False in your INI file. The LogDeniedAccess forces writing the history file even with WriteHistory file set to false. With the WriteHistory file set to true, you will see the titles with codes such as <p>, and <ad>. See the following post for more information on the codes.

http://teamsoftwaresolutions.com/phpBB2 ... .php?t=195

--Scott

AnthonyM
Provider
Provider
Posts: 57
Joined: Wed Sep 22, 2004 2:37 pm

Fixed

Post by AnthonyM »

Thanks, I had WriteHistoryFile set to True. I was seeing pages that where being printed. Thanks again.

wnpltech
Spectator
Spectator
Posts: 1
Joined: Tue Apr 14, 2009 10:11 am

Post by wnpltech »

When using an inclusive (+all) filter, LogDeniedAccess does not work. Works prefectly if I use an exclusive (-all) filter. Is there a way to get this working with an inclusive (+all) filter?

Post Reply