Url.txt Question

For general issues related to PWB v2.

Moderators: Tyler, Scott, PWB v2 Moderator

Post Reply
JohnE
Contributor
Contributor
Posts: 32
Joined: Tue Jun 26, 2007 10:42 am

Url.txt Question

Post by JohnE »

I'm wanting to add a whitelist for our public computersand am trying to figure out context for the url.txt file.

I want to allow all .gov URLs. so tried: +.gov
This allowed any URL with .gov in it, but also allows any URL that I added "?.gov" on the end. Not exatly what I want.
What would be the syntax used to allow any URL with the top level domain of .gov, and only that?

Any help is greatly appreciated.

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

Post by Scott »

PWB uses Regualr Expressions for its filters. The following will limit PWB to all URLs that start with "http://" or "htpps://" and have a Top Level Domain that ends with ".gov".

-all
+^(https?)://[A-Za-z0-9\-\.]+\.gov

--Scott

JohnE
Contributor
Contributor
Posts: 32
Joined: Tue Jun 26, 2007 10:42 am

Post by JohnE »

Worked great.
Thanks.

JE

Post Reply