IP Logged during registration Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
4 posters

    IP Logged during registration

    LadyFaire
    LadyFaire
    New Member


    Female Posts : 18
    Reputation : 1
    Language : English

    In progress IP Logged during registration

    Post by LadyFaire January 17th 2015, 5:29 pm

    I KNOW it is there somewhere, but I can't seem to find it - where is the IP address logged when a new user registers??  Our forum has location requirements, and I need to find out if people registering are meeting those requirements.  Right now, I have to wait until they are logged in to find it, but I know the forum software keeps track.  Someone tell me where to find that information, please???

    Thank you.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    In progress Re: IP Logged during registration

    Post by SLGray January 17th 2015, 10:23 pm

    There are only two ways to get the IP address:

    1.  From a post 

    2.  In the administration panel when you and the member is on at the same time.



    IP Logged during registration Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    LadyFaire
    LadyFaire
    New Member


    Female Posts : 18
    Reputation : 1
    Language : English

    In progress Re: IP Logged during registration

    Post by LadyFaire January 17th 2015, 10:26 pm

    I remember seeing a list of members, and the IP address from their last login, but I can't remember WHERE I saw it.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    In progress Re: IP Logged during registration

    Post by SLGray January 17th 2015, 10:29 pm

    Not on a forum hosted by Forumotion.   You can see a list when you and them are log in at the same time.



    IP Logged during registration Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2083
    Reputation : 336
    Language : English
    Location : Ms

    In progress Re: IP Logged during registration

    Post by _Twisted_Mods_ January 17th 2015, 11:50 pm

    what ip address are you allowing .. im working on a script for you
    LadyFaire
    LadyFaire
    New Member


    Female Posts : 18
    Reputation : 1
    Language : English

    In progress Re: IP Logged during registration

    Post by LadyFaire January 18th 2015, 12:33 am

    They HAVE to be in the USA to join the forum.  Basically, the forum is for US firearms enthusiasts.  So, I always check to make sure that they aren't from China, or the Russian Federation or whatever.  I didn't realize you could set it up to automatically exclude foreign IP addresses.
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2083
    Reputation : 336
    Language : English
    Location : Ms

    In progress Re: IP Logged during registration

    Post by _Twisted_Mods_ January 18th 2015, 8:37 pm

    ok so i changed my mind after finding a list of usa ip's it would take me probably a month to go threw this list and create ranges to scan


    http://www.nirsoft.net/countryip/us.html


    ill look around in my spare time and try to find another way if i do ill post it  .. and dont worry if it gets locked i can have mod unlock it if i figure out something
    LadyFaire
    LadyFaire
    New Member


    Female Posts : 18
    Reputation : 1
    Language : English

    In progress Re: IP Logged during registration

    Post by LadyFaire January 18th 2015, 9:00 pm

    Yeah, I assumed (silly me) that certain codes would be 'assigned' to certain countries or regions.  Nope.  There doesn't appear to be any rhyme or reason to it.  The only constant I've found is that the last set of numbers - will always go to the same area.  Such as:  123.456.789.***  As long as the first 3 sets are the same, the last set can be any combination of numbers, and it will still go to the same area/region.  So, if I have someone from the Chinese at 221.130.125.13, all I have to do is block 221.130.125.* and I boot a wide group in the same [general] region.
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2083
    Reputation : 336
    Language : English
    Location : Ms

    In progress Re: IP Logged during registration

    Post by _Twisted_Mods_ January 18th 2015, 9:20 pm

    true but it you want to if you want to only allow usa .. you will need a allow list not a block list because you would have to include every country
    LadyFaire
    LadyFaire
    New Member


    Female Posts : 18
    Reputation : 1
    Language : English

    In progress Re: IP Logged during registration

    Post by LadyFaire January 19th 2015, 1:36 am

    That is what I'm doing - 1 IP address at a time...  You would not believe how long the list is already.
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2083
    Reputation : 336
    Language : English
    Location : Ms

    In progress Re: IP Logged during registration

    Post by _Twisted_Mods_ January 19th 2015, 2:24 am

    you can stop .. i just figured something out i should have it for you by tomorrow

    #tmtag4later
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2083
    Reputation : 336
    Language : English
    Location : Ms

    In progress Re: IP Logged during registration

    Post by _Twisted_Mods_ January 20th 2015, 10:45 am

    Go to Administration Panel > Modules > JavaScript codes managment and create a new script.
    Title: Non Usa
    Placement: In All Pages
    Paste the code below and submit :
    Code:
    $(function(){
    if(location.href.match('register')){
        $.getJSON('http://ip-api.com/json', function(data) {
            if(data.country =='United States'){}else{
                $('.button1').remove();
                $('.button2').remove();
    alert('       Sorry We Only Accept Users From The United States.\n\n\
           If Your In The United States And Your Seeing This Your \n\
    Probably Running On A Proxy And Will Not Be Able To  Register.');}
        });}});
    LadyFaire
    LadyFaire
    New Member


    Female Posts : 18
    Reputation : 1
    Language : English

    In progress Re: IP Logged during registration

    Post by LadyFaire January 20th 2015, 12:44 pm

    WOW!  Thank you!!
    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    In progress Re: IP Logged during registration

    Post by JScript January 20th 2015, 1:39 pm

    SLGray wrote:There are only two ways to get the IP address:

    1.  From a post 

    2.  In the administration panel when you and the member is on at the same time.
    Do you remember: https://help.forumotion.com/t137330p30-ip-address-in-profile#928695 ?

    JS
    LadyFaire
    LadyFaire
    New Member


    Female Posts : 18
    Reputation : 1
    Language : English

    In progress Re: IP Logged during registration

    Post by LadyFaire January 20th 2015, 2:15 pm

    I'm sorry, I did the first part, but then got lost.  I don't know how to find the browser console as shown in the second illustration.  Where is that located?