Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

missing cookie from/for

by Anonymous Monk
on Jun 20, 2014 at 08:14 UTC ( #1090576=monkdiscuss: print w/replies, xml ) Need Help??

Hello it's Danny, when i visit my browser sends the following cookie along withe the GET request:

Cookie: blnx=; __utma=243798916.2119672792.1403198838.1403242929.1403245114.4; __utmz=243798916.1403198838.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __ctxpop=1; __iswl_wwwperlmonkscom=0; userpass=; __utmc=243798916.

Where does that cookie come from, because it cannot be set by the server it appears, and its missing from my cookiejar, if i visit perlmonks with a cookie-test program, fe using www::mechanize. Sure hope you can help me because im unable to find adequate documentation about this.

  • Comment on missing cookie from/for

Replies are listed 'Best First'.
Re: missing cookie from/for (sources)
by tye (Sage) on Jun 21, 2014 at 18:28 UTC

    A cookie of "userpass=;" is one that is sent by PerlMonks when you "log out". The rest were indeed not sent by PerlMonks proper. There are a number of possible sources. Some were identified elsewhere in this thread.

    So, malware/adware can insert advertisements and what advertisements get inserted can depend on which site you visit. So you only seeing these ads at PerlMonks doesn't guarantee that those ads aren't coming from malware/adware. And, yes, adware will make it appear that the ads (and their attendant clutter) are coming from PerlMonks.

    This problem could also be a cross-site scripting problem. But that seems rather unlikely to me (especially as I'd expect more than just the one user complaining in that case).

    The nice people at who host this fairly busy site for free also have a tiny hook that allows them to insert ads. Although, I'll admit that it has been a long time since I've seen any of them, when I did see them, it was just a single ad and the ads were never more than a single image and were mostly ads for itself. The main reason I allowed my ad blocking tools to block those ads was that there were several windows of time when the ad server could be much slower to respond than PerlMonks (which "is saying something", especially back then). I'd disable them for a while and then enable them again and then, maybe even months later, the ad server would get slow. Then eventually I mostly forgot that there were ads that I was blocking.

    Having previously worked at the company of a top-100 web site that earned a fair slice via ads, I know that inserting ads into a web page has challenges and the methods used (because they scale in a number of important ways) can lead to the occasional inappropriate and even disruptive advertisement sneaking in. Such things can often do rather dramatic disruption and it looks like it is coming from "your website" even though the only thing that really came from "your website" was a small snippet of javascript that enables the insertion of ads from some ad network provider.

    But I think that route is also pretty unlikely based on what you've described. I haven't even dug into things to find the ad-insertion hook to see if it is still using javascript. It doesn't look like it is, however, which makes it nearly impossible for this to be the source.

    Middlemen, such as your ISP, could also do stupid things inserting ads. Perhaps you only see them on PerlMonks because we don't use https. That seems unlikely but I wanted to mention it.

    So it seems to me that, by far, the most likely source is adware. Visit the site from a different computer (one you don't normally use and so is unlikely to have been infected with the same adware) and see if you get whatever junk you are complaining about.

    Though, it seems rather rich for you to be complaining about this based on what several people seem to have figured out that were planning on doing "to us".

    - tye        

Re: missing cookie from/for
by hippo (Abbot) on Jun 20, 2014 at 08:49 UTC

    Hello Danny.

    Actually, that looks like 8 cookies from what I can tell. If you can use a browser extension to view the cookies sent for a page it may show you the domains associated with those cookies. (I use and recommend Chris Pederick's excellent Web Developer extension for Firefox).

    I agree with my anonymous brother that most or all of these have nothing to do with PerlMonks per se and if you use WWW::Mechanize to access the site (for whatever reason) they could safely be ignored.

      Just downloaded Web Developer, and these cookies are coming from perlmonks, lots of them, very funny.

Re: missing cookie from/for
by Anonymous Monk on Jun 20, 2014 at 08:27 UTC
    Well, its not coming from perlmonks ... must be your browser or your antivirus or your firewall or some malware/virus on your computer update: of google analytics ... what is in your nodelet?

      It's allready speaking of a userpass, it must come form perlmonks.

        It's allready speaking of a userpass, it must come form perlmonks.

        Flawed logic, utmcsr... is googleanalytics stuff

Re: missing cookie from/for
by Anonymous Monk on Jun 20, 2014 at 10:31 UTC

    Yes, it's solved, i was making a chat-program, but it didn't work, and i assumed it had something to do with cookies. But i made a programming error, thank you all for helping me out here.

        Yes, and i obliged, and then you polluted my system, and now i wrote hi on your chat, thats all. ty

Re: missing cookie from/for
by Anonymous Monk on Jun 20, 2014 at 08:57 UTC

    I will look into that. I have a website at a free webhost, i just visited it, no cookies were sent, seems weird to me. Since both sides have no use for these cookies why send it to perlmonks and not to me?

      ... why send it to perlmonks and not to me?

      Chances are you're misreading things ... or whatever you're looking at is lying to you :)

        um, cookies get sent once, after that, you're sending the cookies
Re: missing cookie from/for
by Anonymous Monk on Jun 22, 2014 at 07:35 UTC

    One virus made harmless, and ready to be inspected.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: monkdiscuss [id://1090576]
Approved by Jim
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2018-03-18 02:55 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (228 votes). Check out past polls.