Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Jul 2002
    Posts
    214

    Default How to ban a certain filename from the system?

    Hi All,

    This might sound like a stupid question, but, hear me out.

    We have a spammer, using different IP addresses each time he signs up for the plan, so he's submission looks legimite and we after he initiates "Spam script" from our servers, blocking his IP does not help at all.

    Anyway, he's always using same method to spam: he FTPs Perl script called "pvdmail.pl", in the same folder and runs it against flat database file. Of course, we have limit of e-mail sent set in WHM and SIM notification when load goes up, but when we turn attention to load and account spamming, he's usually able to send anywhere from 150 to 250 messages.

    Here's my questions, is there a trick.hack.method to stop/ban certain file name from even running? IN this case it would be "pvdmail.pl". This might save us lots of trouble (well, until, he renames the script).

    Please let me know.

    I appreciate it!

    Cretu

  2. #2
    Member
    Join Date
    Mar 2003
    Posts
    604

    Default Re: How to ban a certain filename from the system?

    Originally posted by cretu
    Hi All,

    This might sound like a stupid question, but, hear me out.

    We have a spammer, using different IP addresses each time he signs up for the plan, so he's submission looks legimite and we after he initiates "Spam script" from our servers, blocking his IP does not help at all.

    Anyway, he's always using same method to spam: he FTPs Perl script called "pvdmail.pl", in the same folder and runs it against flat database file. Of course, we have limit of e-mail sent set in WHM and SIM notification when load goes up, but when we turn attention to load and account spamming, he's usually able to send anywhere from 150 to 250 messages.

    Here's my questions, is there a trick.hack.method to stop/ban certain file name from even running? IN this case it would be "pvdmail.pl". This might save us lots of trouble (well, until, he renames the script).

    Please let me know.

    I appreciate it!

    Cretu
    Where you able to figure this one out?

  3. #3
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    You could prevent FTP uploading of a filename easily enough through proftpd using either DenyFilter or PathDenyFilter:

    http://www.proftpd.org/docs/faq/Conf...tml#DenyFilter
    http://www.proftpd.org/docs/faq/Conf...PathDenyFilter

    But there are easy ways around that, and as you say, they could simply rename the file.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  4. #4
    Member
    Join Date
    Mar 2003
    Posts
    604

    Default

    Originally posted by chirpy
    You could prevent FTP uploading of a filename easily enough through proftpd using either DenyFilter or PathDenyFilter:

    http://www.proftpd.org/docs/faq/Conf...tml#DenyFilter
    http://www.proftpd.org/docs/faq/Conf...PathDenyFilter

    But there are easy ways around that, and as you say, they could simply rename the file.
    Yea...I use pure-ftp....

    I have a problem with one specific customer and a file of his....I know he could re-name the file, but I am testing him out on something. It's kind of a long story....

  5. #5
    Member
    Join Date
    Oct 2001
    Posts
    92

    Default

    Adding the following to the top of your httpd.conf file should stop the file from doing anything useful.

    RedirectMatch ^.*\pvdmail\.cgi > /dev/null

    Remember to restart Apache after adding the line.

    You may also want to add others, to cater for any variants that he chooses to use. e.g.

    RedirectMatch ^.*\pvdmail\.pl > /dev/null
    RedirectMatch ^.*\Pvdmail\.* > /dev/null
    RedirectMatch ^.*\PVDMAIL\.* > /dev/null
    etc....

  6. #6
    Member
    Join Date
    Mar 2003
    Posts
    604

    Default

    Originally posted by Damian
    Adding the following to the top of your httpd.conf file should stop the file from doing anything useful.

    RedirectMatch ^.*\pvdmail\.cgi > /dev/null

    Remember to restart Apache after adding the line.

    You may also want to add others, to cater for any variants that he chooses to use. e.g.

    RedirectMatch ^.*\pvdmail\.pl > /dev/null
    RedirectMatch ^.*\Pvdmail\.* > /dev/null
    RedirectMatch ^.*\PVDMAIL\.* > /dev/null
    etc....
    Thanks, I will give that a try...BTW, cool name.

    Regards,
    Damion

Similar Threads & Tags
Similar threads

  1. about changing filename
    By hanliong in forum New User Questions
    Replies: 0
    Last Post: 02-08-2010, 09:31 PM
  2. mp3s,forbidden filename
    By spankky in forum New User Questions
    Replies: 2
    Last Post: 11-19-2009, 09:26 AM
  3. {Definitely Spam?} {Filename?}
    By whyoffice in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 02-03-2005, 03:07 AM
  4. forbiiden filename
    By tomkoch in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-09-2003, 10:54 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube