Article View: news.software.nntp
Article #70369Re: [INN 2.4] Scan posts for viruses + allow only text formated posts
From: Aioe
Date: Sat, 27 Nov 2004 11:45
Date: Sat, 27 Nov 2004 11:45
18 lines
1620 bytes
1620 bytes
Stef SM wrote:
> The users who can post news are registered and can post attachments
> that i would like to scan for viruses as it is done for the e-mails.
> Does anyone know how to do that ?
You may use moderated groups (this is the simplest way imho).
> Another question is : i'd like to allow only text formated posts (no
> html). Is it possible to configure inn to do that ?
add somewhat like this in filter_nnrpd.pl ( inside filter_post() function )
----
return "Invalid Content-Type" ( $hdr{'Content-Type'} !~ /text\/plain/i );
----
Technical Details
Message-ID:
<co9p8t$hd0$1@domitilla.aioe.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!131.211.141.196.MISMATCH!humbolt.nl.linux.org!news.nl.linux.org!news.newsland.it!news.computerville.it!aioe.org!not-for-mailReferences:
<mn.90277d4b23b86c4d.22232@nospam.com>Show Full Headers
Complete Article Headers
Message-ID: <co9p8t$hd0$1@domitilla.aioe.org> Subject: Re: [INN 2.4] Scan posts for viruses + allow only text formated posts Date: Sat, 27 Nov 2004 12:45:14 +0100 From: Aioe <estasi@aioe.org> References: <mn.90277d4b23b86c4d.22232@nospam.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!131.211.141.196.MISMATCH!humbolt.nl.linux.org!news.nl.linux.org!news.newsland.it!news.computerville.it!aioe.org!not-for-mail Newsgroups: news.software.nntp Organization: Aioe.org Lines: 18 NNTP-Posting-Host: N3SIEVp2lUwjoAM6Vg1nyw.domitilla.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: abuse@aioe.org X-Mailer: hidden X-Newsreader: hidden User-Agent: hidden