A Pluckeye Forum

A place for Pluckeye users to chew the cud.

You are not logged in.

Announcement

This is the old forum. The new forum is at https://discourse.pluckeye.net/ .

#1 2017-08-14 21:32:41

billd
Member
Registered: 2017-05-14
Posts: 30

[SOLVED] Block powerpoint and word doc's

$ pluck add "Deny application/pdf" works great blocking pdf downloads, but $ pluck add "Deny application/ppt" does not block download of power point files.  Same issue when replacing with "doc".

Offline

#2 2017-08-14 22:10:17

jon
Administrator
Registered: 2017-01-10
Posts: 525

Re: [SOLVED] Block powerpoint and word doc's

billd wrote:

$ pluck add "Deny application/pdf" works great blocking pdf downloads, but $ pluck add "Deny application/ppt" does not block download of power point files.  Same issue when replacing with "doc".

Try this:

pluck add "deny application/vnd.ms-powerpoint"
pluck add "deny application/msword"

Offline

#3 2017-08-16 01:59:12

billd
Member
Registered: 2017-05-14
Posts: 30

Re: [SOLVED] Block powerpoint and word doc's

Awesome! That worked with the exception of pptx files.  What will block those? Thanks!

Offline

#4 2017-08-16 02:06:59

jon
Administrator
Registered: 2017-01-10
Posts: 525

Re: [SOLVED] Block powerpoint and word doc's

billd wrote:

Awesome! That worked with the exception of pptx files.  What will block those? Thanks!

pluck add "block application/vnd.openxmlformats-officedocument.wordprocessingml.document"

FYI:

pluck mety foo.docx
foo.docx -> application/vnd.openxmlformats-officedocument.wordprocessingml.document

Offline

#5 2017-08-16 16:46:11

billd
Member
Registered: 2017-05-14
Posts: 30

Re: [SOLVED] Block powerpoint and word doc's

Thanks for sending this. I entered the command and confirmed it was successfully added, however I'm not sure it is working.  Here is an example site that I was able to download from:

Hot Jobs_Sever_Feinstein.pptx

Link below:

https://www.google.com/url?sa=t&rct=j&q … Z4bD0XQzTA

Offline

#6 2017-08-16 17:31:13

jon
Administrator
Registered: 2017-01-10
Posts: 525

Re: [SOLVED] Block powerpoint and word doc's

billd wrote:

. . . I was able to download . . . Hot Jobs_Sever_Feinstein.pptx

Oops; the former blocked docx, not pptx.  Try:

pluck add "block application/vnd.openxmlformats-officedocument.presentationml.presentation"

I will soon update the above for posterity.

Offline

#7 2017-12-13 19:31:42

billd
Member
Registered: 2017-05-14
Posts: 30

Re: [SOLVED] Block powerpoint and word doc's

One follow up question -- how do I block .ppsx files? The above methods block .pps files, but not .ppsx files. Thanks.

Offline

#8 2017-12-14 01:15:26

jon
Administrator
Registered: 2017-01-10
Posts: 525

Re: [SOLVED] Block powerpoint and word doc's

billd wrote:

One follow up question -- how do I block .ppsx files? The above methods block .pps files, but not .ppsx files. Thanks.

First, use pluck mety to discover the media type for ppsx files:

pluck mety foo.docx
foo.ppsx -> application/vnd.openxmlformats-officedocument.presentationml.slideshow

Then, add a rule for that media type:

pluck add "block application/vnd.openxmlformats-officedocument.presentationml.slideshow"

Offline

#9 2017-12-14 20:15:59

billd
Member
Registered: 2017-05-14
Posts: 30

Re: [SOLVED] Block powerpoint and word doc's

Did as suggested:

C:\Program Files\Pluckeye\bin>pluck mety foo.ppsx
foo.ppsx -> application/vnd.openxmlformats-officedocument.presentationml.slideshow

C:\Program Files\Pluckeye\bin>pluck add "block application/vnd.openxmlformats-officedocument.presentationml.slideshow"

C:\Program Files\Pluckeye\bin>


Still unsuccessful in blocking .ppsx files.  Here is an example of a file that will download:

http://teacher.edmonds.wednet.edu/mhs/l … ?id=321186

Offline

#10 2017-12-14 21:06:54

jon
Administrator
Registered: 2017-01-10
Posts: 525

Re: [SOLVED] Block powerpoint and word doc's

Pluckeye > history tells me that the media type for the above url is application/vnd.openxmlformats-officedocument.presentationml.presentation .  So:

pluck add "block application/vnd.openxmlformats-officedocument.presentationml.presentation"

I added a recipe for blocking similar documents http://www.pluckeye.net/recipes/windows … uments.txt .

Offline

#11 2017-12-14 23:21:45

billd
Member
Registered: 2017-05-14
Posts: 30

Re: [SOLVED] Block powerpoint and word doc's

Thank you for the recipe.  I followed instructions and this was the response:

C:\Program Files\Pluckeye\bin>pluck.exe import "%HOMEPATH%\Desktop\no-documents.txt"
c:\cygwin64\home\jon\pluckeye\exes\common/pluckui.c:1496 Can not parse 'application/msword'
3fb176eb:2340: c87577dc WARNING -1497
failed to import \Users\Jaybi\Desktop\no-documents.txt

Offline

#12 2017-12-29 17:05:19

billd
Member
Registered: 2017-05-14
Posts: 30

Re: [SOLVED] Block powerpoint and word doc's

Just curious if anyone has encountered the error above and how to correct.  I'm still unable to block .ppsx file download. Thanks!

Offline

#13 2017-12-29 21:36:01

jon
Administrator
Registered: 2017-01-10
Posts: 525

Re: [SOLVED] Block powerpoint and word doc's

billd wrote:

Thank you for the recipe.  I followed instructions and this was the response:

C:\Program Files\Pluckeye\bin>pluck.exe import "%HOMEPATH%\Desktop\no-documents.txt"
c:\cygwin64\home\jon\pluckeye\exes\common/pluckui.c:1496 Can not parse 'application/msword'
3fb176eb:2340: c87577dc WARNING -1497
failed to import \Users\Jaybi\Desktop\no-documents.txt

Oops!  The recipe file was incorrect.

Try again (updated): http://www.pluckeye.net/recipes/windows … uments.txt

Offline

#14 2017-12-30 19:40:31

billd
Member
Registered: 2017-05-14
Posts: 30

Re: [SOLVED] Block powerpoint and word doc's

Thank you.  I was able to successfully add the recipe.  However, it does not appear to be blocking the ppsx files.  I am still able to download the presentation linked in post #9 above as an example. Any ideas?

Offline

#15 2017-12-30 20:22:24

jon
Administrator
Registered: 2017-01-10
Posts: 525

Re: [SOLVED] Block powerpoint and word doc's

billd wrote:

However, it does not appear to be blocking the ppsx files.  I am still able to download the presentation linked in post #9 above as an example.

Indeed!  Thanks for reporting this -- it is a bug in Pluckeye's handling of ppsx (and a handful of similar types).  I'll post again here when a release candidate contains a fix for this (probably about a week away).

Offline

#16 2018-01-03 23:54:21

jon
Administrator
Registered: 2017-01-10
Posts: 525

Re: [SOLVED] Block powerpoint and word doc's

jon wrote:

it is a bug in Pluckeye's handling of ppsx (and a handful of similar types).

Bug fixed in Pluckeye 0.62.0 .

Offline

#17 2018-01-08 21:33:26

billd
Member
Registered: 2017-05-14
Posts: 30

Re: [SOLVED] Block powerpoint and word doc's

Thanks! I can't seem to find 62.  ETA?

Last edited by billd (2018-01-08 21:33:55)

Offline

#18 2018-01-08 23:57:11

RNYC
Moderator
Registered: 2017-01-14
Posts: 329

Re: [SOLVED] Block powerpoint and word doc's

You can find it on the "asap" tester's page.

Feel free to submit a test report and let Jon know how it worked.

Offline

#19 2018-01-09 02:02:32

billd
Member
Registered: 2017-05-14
Posts: 30

Re: [SOLVED] Block powerpoint and word doc's

Fantastic! Works like a charm!

Offline

#20 2019-02-03 01:22:47

JLeroy
Member
Registered: 2019-02-03
Posts: 9

Re: [SOLVED] Block powerpoint and word doc's

Hi! I'm having trouble downloading word documents from a website that I've whitelisted. How do I fix it so I can download these docs I need?
Thank you.

Offline

#21 2019-02-03 22:11:16

JLeroy
Member
Registered: 2019-02-03
Posts: 9

Re: [SOLVED] Block powerpoint and word doc's

Thank you...still can't figure this out...will move to new thread as suggested

Offline

Board footer

Powered by FluxBB