Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl Securing 1

Status
Not open for further replies.

ensorg

IS-IT--Management
Jan 9, 2002
229
GB
Hi,

I have an application that I wrote to learn perl with. It has an HTML form which places data into a flat file. I have a perl file which then reads the data from the file and allows me to edit or delete.

My question is, as my host only allows me to run perl programs from the cgi-bin so I can't password protect this folder, how do I make the perl file secure so that anybody can't just run it.

Thanks for any help.
 
How about using .htaccess authentication on the cgi directory? Newposter
"Good judgment comes from experience. Experience comes from bad judgment."
 
But can I set .htaccess up so that if somebody requests that specific file it will prompt for a password, but if somebody calls another file from the same directory, i.e. the perl file that handles the form, it won't prompt?
 
What about putting the script in a subdirectory of cgi-bin with an .htaccess file?

jaa
 
justice41,

Thanks!!! Now why didn't I think of that?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top