Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 05:31 am EDT

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
 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.
 Quote

All times are EDT. The time is now 05:31 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