Re: [cgiirc-general] CGI:IRC only for visitors from my website
Brought to you by:
dgl
|
From: Maxim S. <ma...@os...> - 2003-12-18 22:43:42
|
Hello Rafael, Sunday, September 28, 2003, 1:45:32 AM, you wrote: RF> Hello, RF> I'd like to grant access to CGI:IRC only for visitors from my website. I'd make RF> a variable in a file of the website that CGI:IRC will check. That file sets the RF> variable $check and then redirects the visitors to irc.cgi RF> In arquivo.php ($check) RF> www.mysite.com/irc.php?check=ok RF> Redirect to irc.cgi: RF> I need a CGI code for irc.cgi that should do this: RF> if (!$check) { RF> die(); RF> } RF> Can anyone help me? RF> Thank you RF> Rafael Fijalkowski Try to use mod_rewrite in Apache... Add this to .htaccess file in cgi-irc directory RewriteEngine On RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://modify-here/and-here/.*$ [NC] RewriteRule ^(.*) http://modify-here/ [R] -- Best regards, Maxim mailto:ma...@os... |