Welcome to Geeklog, Anonymous Saturday, November 30 2024 @ 12:45 am EST
Geeklog Forums
CGI Script in Geeklog
Pete
Anonymous
I have a CGI script in CGI_Bin that I only want logged in users to access. I tried putting the code into a static page but I don't think it works that way.
Excuse my stupidness, I'm new to this.
Any help would be much appreciated
Thanks in advance
Pete
Excuse my stupidness, I'm new to this.
Any help would be much appreciated
Thanks in advance
Pete
6
8
Quote
Status: offline
LWC
Forum User
Full Member
Registered: 02/19/04
Posts: 818
It doesn't work that way because static pages support only PHP and not CGI.
Luckily for you, PHP can call CGI scripts via the command "Virtual".
So you need to do the following:
1) Enable PHP in Static Pages.
2) In your static page, use a line like: virtual('/var/www/cgi-bin/your_script.cgi').
And you specifically - because you asked for it too (people who find this topic in the future may not need it):
3) Uncheck anonymous' "Read" access to that static page.
Luckily for you, PHP can call CGI scripts via the command "Virtual".
So you need to do the following:
1) Enable PHP in Static Pages.
2) In your static page, use a line like: virtual('/var/www/cgi-bin/your_script.cgi').
And you specifically - because you asked for it too (people who find this topic in the future may not need it):
3) Uncheck anonymous' "Read" access to that static page.
5
6
Quote
All times are EST. The time is now 12:45 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content