Log in

View Full Version : Formmail CGI Script/Unauthorised ...Help Needed



immi007
06-30-2007, 01:07 AM
Hi everyone,

I've seen ppl are really helpful around here, so I registered.

I am creating a formmail for my website and so far so good:) , but the problem is that I do not have the script needed to execute the form and I've been unable to download it from the sites, whenever I try to download it the Html page is saved instead of the CGI file:( , there are many available on other websites like these:

http://lrdesign.com/scgi-bin/formmail.cgi

http://www.sasktel.com/forms/cgi-bin/SKFormMail.cgi

http://209.204.245.87/cgi-bin/chart.cgi

http://66.70.228.78/cgi-bin/verity.cgi

These are Matt Wright's free formmail script Version 1.6. Although I can link to any of these sites, however, I prefer to have one on my database to avoid any future problems.

Is there any way I can download it:confused: . Thanks

Another thing I would like to know is I've seen some websites having protected directories, and when you try accessing them it gives an error saying "You are unauthorised to view this page". I would like to protect my folders in a similar method.

How is this done?

Thanks again.

thetestingsite
06-30-2007, 01:11 AM
For the first question, here is the formmail script.

http://www.scriptarchive.com/download.cgi?s=formmail

As for the second question, search for htaccess either in these forums or your favorite search engine.

Hope this helps.

alexjewell
06-30-2007, 01:11 AM
Here's how to download the script:

http://www.scriptarchive.com/download.cgi?s=formmail

And about your protected directories, go with PHP and sessions and/or mysql.

alexjewell
06-30-2007, 01:12 AM
Sorry Testing, ha, cross-posting. We went to the same direction...

immi007
06-30-2007, 01:17 AM
Hi,

Thanks for the swift response. I have used the scriptarchive website to find it, but I can't seem to find it there. Its the version 1.6 I am looking for and I've been unsuccessful so far in finding it.

The simple solution is to download it off a website but how is it done.

alexjewell
06-30-2007, 01:18 AM
You can't simply download a server-side language's script straight off of a website...one of the great things about server-side is that it's unviewable to the user.

thetestingsite
06-30-2007, 01:20 AM
Taken off their website:



Any users who have versions of FormMail prior to v1.91, including the popular version 1.6, should upgrade immediately. v1.91 plugs several more spam-related security holes. The following fixes have also been implemented since v1.6: prevents unwanted access to environment variables and problem of receiving e-mail while using the redirect option. The script has two extra arrays (new in v1.7) you must define, but will not affect current forms or the way they appear after having been submitted.


So; as said above, you should upgrade to the version that we linked to. As for downloading version 1.6 off a website, you could ask the website owners of those sites you listed in your first post. Other than that, no clue.

Hope this helps.

immi007
06-30-2007, 01:33 AM
Okay so I've decided to use their newer version.

Now I've directed my link to this CGI file on my folder, I haven't uploaded it yet and when I click on it, the file comes up as downloadable instead of executing the form. Does it need to be uploaded to be used properly?

thetestingsite
06-30-2007, 01:40 AM
Yes; it is a server side language, which means it needs to be on a server in order to run. Once you upload to your server, it should work fine.

Hope this helps.

immi007
06-30-2007, 01:44 AM
Thanks Guys you've been very helpful. I'm enjoying my stay here already :D