Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

apache ENV variables

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Apache VirtualServer doesn't point to proper Docu..  
Author Message
liferemove

External


Since: Mar 18, 2004
Posts: 1



(Msg. 1) Posted: Fri Mar 19, 2004 2:07 am
Post subject: apache ENV variables
Archived from groups: alt>apache>configuration (more info?)

Greetings, Ladies and Gentlemen!


I'll try to make myself as clear as I can so that the task would be
completely clear.

1 there is webhosting services with a free month trial
2 it provides ftp, ssh, mail, etc...
3 mail is qmail
4 qmail has a Message-ID field looking like this:
"Message-ID: <20040318190045.30301.gw-mta0 RemoveThis @mx.mail.server.dom>"
5 many persistent spammers take a delight with our services and use the
month trial to SPAM (bastards)
6 It's very hard to control 1500 user sending spam from a php web aplication
or command line scripts...
7 so, I've managed to add some code into qmail to put ehm... say, "a marker"
so that the above field looks like:
"Message-ID: <20040318190045.30301.gw-mta0 RemoveThis @mx.mail.server.dom(user)>" where
user runs a script from the command line (user is USER env var value, it's
clear, isn't it?), and
"Message-ID:
<20040318190045.30301.gw-mta0 RemoveThis @mx.mail.server.dom(www.user.virt.dom)>" Now it
is SERVER_NAME var for the "marker"

Everything works fine. I localy depricated some options in qmail-inject so
that "advanced" spammers could not influence on the Message-ID field.

The aim of all this job: as soon as the robot suspects spam flood it stops
qmail, I look into the header and see in the "marker" who was spamming
(USER, LOGNAME or SERVER_NAME or SCRIPT_FILENAME var value, getenv()'d by
qmail-inject, during the envelope process).

The trouble: when the php mail() function is called the apache vars
SERVER_NAME, SCRIPT_FILENAME, etc... are lost. Any other way of spaming
(well, running this same php script from the command line) does what is
intended - the USER or LOGNAME var value is just inserted into the string as
the "marker".

.... but. where apache variable are lost, and how to get them out?.. Sad

Did you get the idea, dear All?

If this is success, I'm going to go further and to code some three more
control files for qmail where I could explicitedly allow/disallow(by
default) to send mail via web aplications and command line scripts (forum
registration, etc, etc...) for hosters who are not spamers.

Hope I've made myself clear now, and hope for real help, too (not verbal
exercising) Smile

Thanks,
Life

P.S. I asked the same question in comp.lang.php, too

 >> Stay informed about: apache ENV variables 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Apache configuration for PHP variables - How do I configure apache which allows PHP automatically to create program variables with the same name as the HTML form elements. Thanks.

environment variables. - Hello, I set User=apache and Group=apache inthe httpd.conf. however when I run phpInfo I get to see that the USER variable is set to root. (Do I have to set the User and Group variables to apache in every virtual host that I set up ? thanks, Ro...

mod_rewrite can't acces to SSL variables ? - Hi all, I think there is a bug in apache-2.0 : SSLOptions +CompatEnvVars +ExportCertData RewriteRule ^/test1.php.*$ /phpinfo.php [env=TMP1:%{SSL_CLIENT_S_DN}] It works with apache-1.3.26 (phpinfo will see TMP1), but not with apache-2.0.44 Any idea ? ...

mod_rewrite: Variables %{SCRIPT_URI} and %{SCRIPT_URL} not.. - Hello I have apache 1.3.20 on a linux system and in the documentation of mod_rewrite I read: "This module keeps track of two additional (non-standard) CGI/SSI environment variables named SCRIPT_URL and SCRIPT_URI." But these variables are not ...

Asp and apache - How can I put asp pages with apache ? Thanks
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]