1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Cgiemail question

Discussion in 'Programming' started by Chiara, Jun 2, 2004.

  1. #1
    I'm trying to set up a cgi form on my site using the already-installed cgiemail program on my host. I have followed the directions but it won't work. Can you tell me where the template.txt is supposed to go? Does it go in the www/ section or the cgi-bin/?
    SEMrush
    Don't know what could be going wrong except the location of the template.
     
    Chiara, Jun 2, 2004 IP
    SEMrush
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,285
    Likes Received:
    2,600
    Best Answers:
    460
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    Probably in the same directory that your CGI is in. Although it's hard to say without seeing it.
     
    digitalpoint, Jun 2, 2004 IP
  3. Chiara

    Chiara Peon

    Messages:
    330
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi - the web host support person responded and solved the problem. It needed to be in the public html folder. Thanks!
     
    Chiara, Jun 2, 2004 IP
  4. vagrant

    vagrant Peon

    Messages:
    2,285
    Likes Received:
    181
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i would STRONGLY suggest re naiming the pl / cgi to something odd just to stop people trying to spider for the script name.

    calling it formmail.cgi is very unwise, 5g6hz.cgi would be better ??
     
    vagrant, Jun 2, 2004 IP
  5. Chiara

    Chiara Peon

    Messages:
    330
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Vagrant, I'm not sure if I understand. It isn't called formmail.cgi. How can people spider for it? I'm confused now.
     
    Chiara, Jun 2, 2004 IP
  6. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,285
    Likes Received:
    2,600
    Best Answers:
    460
    Trophy Points:
    710
    Digital Goods:
    29
    #6
    It keeps people from trying to use it maliciously.
     
    digitalpoint, Jun 2, 2004 IP
  7. Chiara

    Chiara Peon

    Messages:
    330
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Could you enlighten me on exactly what malicious things they could do? Sorry, this cgi stuff is all new to me.
     
    Chiara, Jun 3, 2004 IP
  8. nlopes

    nlopes Guest

    Messages:
    103
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    The formmail script is being used to send SPAM.
    If you take a look to your logs, you will see some requests for that file.
     
    nlopes, Jun 3, 2004 IP
  9. vagrant

    vagrant Peon

    Messages:
    2,285
    Likes Received:
    181
    Best Answers:
    0
    Trophy Points:
    0
    #9
    anyone i find in my logs as looking for formail gets their ip range banned.... usually china *sigh*

    it is never a good idea to install scripts in the default folder is it can be changed.... makes it harder for ppl to exploit the inevitable bugs.
     
    vagrant, Jun 3, 2004 IP
  10. Chiara

    Chiara Peon

    Messages:
    330
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I don't think there's a formmail script on my site. It's called cgiemail and it is in the cgi-bin. Is that the same thing? The template name in the public folder can be changed, though. Sorry, I'm still confused.
     
    Chiara, Jun 3, 2004 IP
  11. Weirfire

    Weirfire Language Translation Company

    Messages:
    6,978
    Likes Received:
    365
    Best Answers:
    0
    Trophy Points:
    280
    #11
    Would creating your robots text file with Disallow : \cgi-bin\ not stop the spiders?


    To get the cgiemail to work make sure your form action is correct. If cgi-bin/cgiemail doesnt work then try cgi-sys/cgiemail.

    When I tried it on my host neither of them worked so I had to use a PHP script. Thats what I get for using a cheap host!!
     
    Weirfire, Jun 3, 2004 IP