Deny DCC

These are old archives. They are kept for historic purposes only.
Post Reply
jailmann
Posts: 81
Joined: Wed Apr 28, 2004 9:51 am

Deny DCC

Post by jailmann »

Hello

Dukat says to me i need to star a new post for this so forget what i write in Deny DCC the other post

My problem is i use Unreal 3.2 and Anope 1.7.5

i want do so user only can send Zip or Rar files who to do that i have try to pust this in the Unrealircd.conf but still works for user

i have tried whit jpg

deny dcc {
filename "*.jpg";
reason "Picture files may not be exchanged on this server.";
};
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post by Dukat »

You could just alter dccallow.conf or copy the lines you need to the unrealircd.conf...

Something like

Code: Select all

/* first.. deny everything, then allow known-good stuff... */
deny dcc { filename "*"; reason "Not allowed content"; soft yes; };
/* The Two allowed Formats */
allow dcc { filename "*.zip"; soft yes; };
allow dcc { filename "*.rar"; soft yes; };
should do what you want.
jailmann
Posts: 81
Joined: Wed Apr 28, 2004 9:51 am

Post by jailmann »

Hello


now i have put this in the unrealircd

/*
* NEW: deny dcc {}
* OLD: dccdeny.conf
* Use this to block dcc send's... stops
* viruses better.
* Syntax:
* deny dcc
* {
* filename "file to block (ie, *exe)";
* reason "reason";
* };
*/

/* first.. deny everything, then allow known-good stuff... */
deny dcc { filename "*"; reason "Not allowed content"; soft yes; };
/* The Two allowed Formats */
allow dcc { filename "*.zip"; soft yes; };
allow dcc { filename "*.rar"; soft yes; };

);

User can still send jpg or bmp and so on you say i could make a dccallow.conf but how do i load it in unrealircd
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post by Dukat »

You would have to "include dccallow.conf;", BUT
- are you sure you didn't already do this?
- are you always rehashing the server after editing the config file?
- are you trying to send as a NORMAL user, not as IRCop?
jailmann
Posts: 81
Joined: Wed Apr 28, 2004 9:51 am

Post by jailmann »

Hello

I have not include dccallow.conf file

i upload the new Unrealircd.con and then /rehash and try again

i am logget in as normale user
jailmann
Posts: 81
Joined: Wed Apr 28, 2004 9:51 am

Post by jailmann »

Hello


LOL sorry i rehash on the wrong server now it works :):)


Thx for the help

i use this line

in unrealircd


/* first.. deny everything, then allow known-good stuff... */
deny dcc { filename "*"; reason "Not allowed content"; soft YES; };
/* The Two allowed Formats */
allow dcc { filename "*.zip"; soft yes; };
allow dcc { filename "*.rar"; soft yes; };
Post Reply