Re: http referrer block

Ingo Molnar <[email protected]>
Newsgroups gmane.network.tux
Message-ID <[email protected]>
On Mon, 8 Apr 2002, Alex Kramarov wrote:

> I am runnign a site with a lot of images on it, and bandwidth stealing
> is a problem. I would like to implement http referrer check for every
> request that comes to the site. i saw someone try to implement something
> like this before with a module, but he was not able to get it to work
> right - for wxample, ttux wouldn't add last_modified headers at the
> time.
> 
> what is the correct way to do this ? is there an example of
> "all-userspace" module that changes the processing of requests in tux
> (return error if some condition isn't met) ?
> 
> if i get no answer to this, i will simply put it into the main code into
> proto-http, with some /proc/sys/net/tux flags - i am good, but not good
> enough to start writing modules when i have no sample for it ...

indeed i'd suggest to do this in kernel-space for the time being. Ideally
we'd like to bounce such functionality to user-space, but the module API
is not there yet for this type of stuff.

	Ingo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.