Results 1 to 8 of 8

Thread: I'm not sure if this is possible. Is it?

  1. #1
    Join Date
    Jul 2008
    Posts
    79
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default I'm not sure if this is possible. Is it?

    I want to put a script in my program that limits some people from using it. Is it possible to get MySQL database information from the web and check it to see if a user exists (With match up of password) so that only members can use it?

    If it's not possible, is there any way to check the IP of the computer?

  2. #2
    Join Date
    Jul 2007
    Location
    UK
    Posts
    307
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    I don't think it's possible to detect an IP address via scar, you would have to let it access a webpage with maybe, a PHP script that could detect it, however this is worth checking out first:
    http://www.villavu.com/forum/showthread.php?t=41507

    # We do NOT log IP's, or any RuneScape account details.
    # We do NOT open web pages that contain no useful addition to the script. And unless you can come up with a real good reason, I suggest you don't use it at all. Opening Web Pages that are used for ads, etc. are not allowed. *
    Last edited by cathering_; 04-10-2009 at 09:15 PM.

  3. #3
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by cathering_ View Post
    I don't think it's possible to detect an IP address via scar, you would have to let it access a webpage, however this is worth checking out first:
    http://www.villavu.com/forum/showthread.php?t=41507
    One of StarBlaster100's Auth systems used to I.P check.
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  4. #4
    Join Date
    Jul 2007
    Location
    UK
    Posts
    307
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by noidea View Post
    One of StarBlaster100's Auth systems used to I.P check.
    Using only scar and not acessing any outside source like a webpage?

  5. #5
    Join Date
    Jul 2008
    Posts
    79
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Aww, it's against the rules now? Well I'm not using this for Runescape. The only reason I'm doing this is because I don't want GMs of my game to download it and program against it.

  6. #6
    Join Date
    Feb 2009
    Posts
    1,447
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

  7. #7
    Join Date
    Jul 2007
    Location
    UK
    Posts
    307
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    You'd probably use this:
    Internet functions

    function GetPage(URL: string): string;
    Return HTTP webpage contents as string.
    Example:
    s:= GetPage('http://kaitnieks.com');
    if(s = '')then
    begin
    Writeln('Some kind of connection error');
    end else
    begin
    ..
    end;
    Point GetPage towards a PHP file, the PHP file should Echo; (e.g. 1 or 2) its reply and then scar will do whatever it needs to with that, although this method isn't completely flawless for a number of reasons:

    Scars "firewall" will tell the user that the script is trying to access the web but you could just assume someone refused to access it if GetPage returns anything other than 1 or 2 (depending on your preferred values) then just terminate the script and anybody who understands the code could probably just change it!

  8. #8
    Join Date
    Jul 2008
    Posts
    79
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yah, I did a version of this but with a long activations code (89JD720834N9SDFN7320094522340VSD87N3). It works fine and I used the noobs Obfuscate method by simple tabbing the script so far to the right that it dissapears. People who look at the scirpt now probably won't get it.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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