Browser – Cookie Corruption

I have a strange problem with the php redirect script performing the following operations:

>Insert a cookie in the user’s browser, or read Existing cookies (if any).
>Redirect the user to another URL (the redirected URL is the parameter in the original URL, such as http://my.redir.com?url=www. google.com).
>Record redirects (time, user agent, referrer, cookie).

Every once in a while (very rare, one in a million), I see a The cookie is corrupted in the log file.
The format of all cookies is XXXX-XXXX, when X is af or 0-9 (so the valid cookie can be 7bfab3-d8694). The corrupted cookie has the following characters: or /Replace one of the characters or hyphens, for example 7bfa:3-d8694 or 7bfab3/d8694.

The question is, what will this cause?
Is there a problem with my script or the server running it, or is it more likely a problem in the user’s browser?

– More information –

The broken cookie I found has a user agent:

Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Sky Broadband; GTB7.1; Sky Broadband; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; Sky Broadband)
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; en) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/4.1.3 Safari/533.19.4

< /div>

Various “scrapped” bots are badly written and full of bugs. I see similar behaviors in the logs, such as bad (incorrect) HTML parser tracking links incorrectly, “Cleaning up” or URL encoding and decoding the URL in a wrong way, etc.

All of this, and the “proxy” string looks like a regular browser. I was shocked this time Until I noticed that hundreds of different pages were hit within a few seconds. There is no chance this is just human surfing.

So, I suggest you try to see this IP/Proxy combination in the log Other content being accessed, if this is a robot, please don’t worry about it.

I have a strange problem with the php redirect script doing the following:

>Insert a cookie in the user’s browser, or read an existing cookie (if any).
>Redirect the user to another URL (the redirected URL is The parameters in the original URL, such as http://my.redir.com?url=www.google.com).
>Record redirection (time, user agent, referrer, cookie).

< p>Every once in a while (very rare, one in a million), I see a cookie is destroyed in the log file.
The format of all cookies is XXXX-XXXX, when X is af or 0-9 Time (so the valid cookie can be 7bfab3-d8694). The damaged cookie has the following characters: or / instead Change one of the characters or hyphens, such as 7bfa:3-d8694 or 7bfab3/d8694.

The question is, what will this cause?
Is there a problem with my script or the server running it, or is it more likely a problem in the user’s browser?

– More information –

The broken cookie I found has a user agent:

Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Sky Broadband; GTB7.1; Sky Broadband; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; Sky Broadband)
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; en) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/4.1.3 Safari/533.19.4

each This kind of “scrapped” bots are badly written and full of bugs. I see similar behaviors in the logs, such as bad (incorrect) HTML parser tracking links incorrectly, “cleaning” or URL encoding, and URL encoding in the wrong way To decode and so on.

All of this, and the “proxy” string looks like a regular browser. I was scared this time until I noticed hundreds of different pages in It was hit within a few seconds. There is no chance that this is just human surfing.

So, I suggest you try to see in the log other content that this IP/proxy combination is accessing, if this is a bot, Please don’t worry about it.

Leave a Comment

Your email address will not be published.