Results 1 to 5 of 5

Thread: Cookie Grabber

  1. #1
    Join Date
    Dec 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Cookie Grabber

    Can someone code me a cookie grabber for neopets please?

  2. #2
    Join Date
    Dec 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    please?

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Cookies are restricted from access by any other server than the one from which they were created.

    For example:
    a cookie from google.com is not accessible from yahoo.com

    also, a cookie from forums.something.com is not accessible from something.com or pages.something.com, since the subdomains differ.

    There is no way around this.

    I suppose the only option would be to use ActiveX or a Java applet to actually go onto the users' computers and find the cookie files then use them, but that opens up HUGE security holes (in the sense that you can then grab ANY file on their computers) and may be blocked by some systems (especially ActiveX which is IE only), and they both require permission from the user to activate, so some users might not choose to allow it.
    As for the code for each of these, it would be very complex, and neither is my area.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  4. #4
    Join Date
    May 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i want one too

  5. #5
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Did you not read the post? That's not possible.

    You can go into your own cache to grab your own cookies, but there is no way to do it from a website from others' computers.

    This is also of questionable legality, since you're basically stealing info from the user and from neopets about that user, which might even lead to a security hole, such as one that would give access to their accounts. I would hope that neopets has measures in place around this, but I have no idea, since I don't use their system.

    For a useful bit of code, you can do
    PHP Code:
    print_r($_COOKIE); 
    That will give you all of the cookie data (in printed array form) for YOUR site. That is, as I said, all you can access.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •