Gmail Attachments??

Protecting your Linux box
Post Reply
sevensins
Havaldaar
Posts: 117
Joined: Tue Apr 13, 2004 1:45 pm
Location: PAKISTAN
Contact:

Gmail Attachments??

Post by sevensins »

Salaam,

I was wondering how to block attachments to gmail. I am running squid 2.7 stab9 with dansguardian 2.10, users authenticated from LDAP. I have configured the POST restrictions in Dansguardian which does block all attachments to hotmail/yahoo etc etc but attachments to gmail continue to upload. I have tried

acl fileupload req_mime_type -i multipart/form-data
acl fileupload req_mime_type -i ^multipart/form-data$

acl UPLIMIT req_header Content-Length [5-9][0-9]{5,}
acl UPMETH method post

request_body_max_size

but nothing seems to work on it....

any suggestions/pointers would be highly appreciated.

Regards
Regards,

-----------------------------------------------------------------
A wise monkey never monkies w/ another monkey's monkey!
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

1. watch the squid logs for your ip address
2. go to gmail and attach a file to a message
3. look at the entries you see in the log file
4. you'll either be able to write an acl rule to block the uploads or find out that you can't block them.

seems pretty simple to me.
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
Post Reply