Gmail Attachments??

Protecting your Linux box

Gmail Attachments??

Postby sevensins » Fri May 07, 2010 2:29 pm

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!
sevensins
Havaldaar
 
Posts: 117
Joined: Tue Apr 13, 2004 1:45 pm
ICQ: 3655945
Website: http://www.us-cert.gov/
WLM: shehzad_h@hotmail.com
Yahoo Messenger: shehzadhamid@yahoo.com
Location: PAKISTAN

Postby lambda » Fri May 07, 2010 8:32 pm

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"?
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore


Return to “%s” Security

Who is online

Users browsing this forum: No registered users and 3 guests

cron