Re: [cgiirc-general] CGI:IRC only for visitors from my website
Brought to you by:
dgl
|
From: Rafael F. <vi...@va...> - 2003-12-19 09:52:00
|
Maxim, Thank you, but i have the problem now. Look: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request And the file .htaccess is invisible. Dont appear in ftp. Thanks And sorry for bad english. Rafael Fijalkowski ----- Original Message ----- From: "Maxim Shpakov" <ma...@os...> To: <cgi...@li...> Cc: "Rafael Fijalkowski" <vi...@va...> Sent: Thursday, December 18, 2003 7:43 PM Subject: Re: [cgiirc-general] CGI:IRC only for visitors from my website > 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... |