Can I pass login info to an htaccess for a linked resource?

Can I pass login info to an htaccess for a linked resource?

by Paula Edmiston -
Number of replies: 1
I have a "link share" board I want to use in my class. This link share board allows participants to enter the URL and a description of a resource they find on the web. It's a cgi script and I keep it in an htaccess-protected directory. I'm thinking I would link that board as a resource. Is it possible to pass along the username/password to the htaccess when the link is hit by a student?
thanks!
Average of ratings: -
In reply to Paula Edmiston

Re: Can I pass login info to an htaccess for a linked resource?

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
To htaccess, no, but if you use the "Program" type of resource then Moodle will pass this info (and more) to the destination link. You could modify the cgi script to use/check the passed data.