Post Reply 
The base config
Dec. 26, 2008, 12:10 PM
Post: #23
RE: The base config
Siamesecat Wrote:Why would you want to do that? To where would you capture the data?

My thought was to capture these values into variables when the request was made, before any header filters kick in.

Siamesecat Wrote:If you had spoofed the user-agent, presumably you know about it, so what would be the point of looking up the original one? Same thing about the referer: if you are faking it, why record the real one somewhere?

You really can't presume too much.
With respect to the "framework", there's really no way to know what filters will be present in a config.

In regards to the user-agent, there's no way to know ahead of time what browser is currently being used.
I suppose you could have a filter that sets a variable that says I'm using browser X.
But if you switch browsers, you'd have to uncheck that filter and enable a different one for browser Y.

If the user-agent is spoofed and there's a web filter that was "browser dependent", examining the user-agent field would be useless.
All the web filter would see would be the spoofed user-agent.

I suppose a header filter that actually spoofed the user-agent could set a variable.
But then your back to setting a variable that could be named anything depending on who wrote the filter.
This would make it harder to share filters.

Pretty much the same logic applies to the Referer header.
Once it's spoofed, you run into the same issues that the user-agent header has.

Also, I can see where other header filters may need referer info before the referer header is processed.
You could end up with several header filters trying to determine if a request is off-site.
To avoid code duplication and redundancy it would be easier to do it just once, right off the bat.

Of course the problem with these variables is that they depend on the browser sending the correct values.
But I don't see a way around that other than document the fact that these headers shouldn't be spoofed by the browser.

z12
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
The base config - lnminente - Dec. 17, 2008, 05:06 PM
RE: The base config - bugger - Dec. 18, 2008, 05:27 AM
RE: The base config - lnminente - Dec. 18, 2008, 07:54 PM
RE: The base config - lnminente - Dec. 18, 2008, 10:36 PM
RE: The base config - ProxRocks - Dec. 18, 2008, 11:51 PM
RE: The base config - lnminente - Dec. 19, 2008, 11:24 AM
RE: The base config - z12 - Dec. 20, 2008, 03:22 PM
RE: The base config - ProxRocks - Dec. 20, 2008, 03:58 PM
RE: The base config - lnminente - Dec. 20, 2008, 04:07 PM
RE: The base config - ProxRocks - Dec. 20, 2008, 04:23 PM
RE: The base config - lnminente - Dec. 20, 2008, 04:34 PM
RE: The base config - ProxRocks - Dec. 20, 2008, 10:46 PM
RE: The base config - lnminente - Dec. 21, 2008, 01:18 AM
RE: The base config - Kye-U - Dec. 21, 2008, 03:30 AM
RE: The base config - lnminente - Dec. 21, 2008, 05:43 PM
RE: The base config - z12 - Dec. 22, 2008, 11:19 AM
RE: The base config - lnminente - Dec. 22, 2008, 05:22 PM
RE: The base config - lnminente - Dec. 22, 2008, 08:21 PM
RE: The base config - z12 - Dec. 23, 2008, 04:06 PM
RE: The base config - lnminente - Dec. 24, 2008, 01:01 PM
RE: The base config - Siamesecat - Dec. 25, 2008, 07:33 AM
RE: The base config - lnminente - Dec. 25, 2008, 11:52 AM
RE: The base config - z12 - Dec. 26, 2008 12:10 PM
RE: The base config - lnminente - Jan. 10, 2009, 01:58 AM
RE: The base config - sidki3003 - Jan. 10, 2009, 01:36 PM
RE: The base config - lnminente - Jan. 10, 2009, 02:24 PM
RE: The base config - lnminente - Jan. 17, 2009, 01:46 AM
RE: The base config - sidki3003 - Jan. 17, 2009, 05:58 PM
RE: The base config - lnminente - Jan. 17, 2009, 07:46 PM
RE: The base config - sidki3003 - Jan. 17, 2009, 07:56 PM
RE: The base config - lnminente - Jan. 17, 2009, 08:03 PM
RE: The base config - sidki3003 - Jan. 17, 2009, 08:18 PM
RE: The base config - lnminente - Feb. 10, 2009, 10:36 PM
RE: The base config - lnminente - Feb. 15, 2009, 12:15 AM
RE: The base config - Kye-U - Feb. 15, 2009, 02:30 AM
RE: The base config - lnminente - Feb. 15, 2009, 03:11 AM
RE: The base config - lnminente - Feb. 17, 2009, 04:41 PM
RE: The base config - lnminente - May. 04, 2009, 11:55 AM
RE: The base config - sidki3003 - May. 04, 2009, 05:43 PM
RE: The base config - lnminente - May. 16, 2009, 04:31 PM
RE: The base config - sidki3003 - May. 16, 2009, 08:55 PM
RE: The base config - lnminente - May. 17, 2009, 02:54 AM

Forum Jump: