Deny downloading certain file extensions

For general issues related to PWB v2.

Moderators: Tyler, Scott, PWB v2 Moderator

Post Reply
stegraham
Observer
Observer
Posts: 5
Joined: Tue Mar 23, 2004 6:27 am

Deny downloading certain file extensions

Post by stegraham »

Is it possible to configure PWB to prevent certain types of file from being downloaded e.g. *.exe and *.msi files?

Stephen :D

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

Post by Scott »

You can use the PWB URL filter to do this.

http://teamsoftwaresolutions.com/phpBB2 ... c.php?t=13
You can control the types of files that are accessed by using regular expressions in the PWB URL filter. Use the regular expression to match the end of the URL to deny access to the type of file.

For example to prevent downloading of ZIP and EXE type files, put this in your URL filter file.

+all
-\.zip$
-\.exe$

The "+all" allows all URLs, the "\." interrupts the "." as literal, the "exe" or "zip" is the type of file, and the "$" is the regular expression to match the end.

This allows only URLs that end with ".zip", or ".exe" to be denied, while URLs that simply contain ".zip", or ".exe" to be allowed.
We also use Windows Polices to only allow applications we want to run to prevent patrons from starting applications on our systems.

http://www.microsoft.com/technet/prodte ... x?mfr=true

--Scott

Post Reply