1
BeautyBrains
How do I prevent different IPs loggin in to one account

If you see different IPs logging into a use account from several IPs all at the same time. How do I prevent / ban / block this from happening?

Is this what the protector mod is for? I have Protector v3.5.
Also I get the following errors for the protector settings page

Warning: require_once(XOOPS_ROOT_PATH/class/pagenav.php) [function.require-once]: failed to open stream: No such file or directory in ..../modules/protector/admin/index.php on line 3

Fatal error: require_once() [function.require]: Failed opening required 'XOOPS_ROOT_PATH/class/pagenav.php' (include_path='.:/usr/local/php5/lib/php') in ....../modules/protector/admin/index.php on line

This is my line 3
require_once XOOPS_ROOT_PATH.'/class/pagenav.php' ;
A man without history is like a tree without roots. Marcus Garvey (1917)http://CaribbeanAncestry.comhttp://JamaicaGenealogy.comhttp://thephilosophizers.com Teach what you know and learn what you don't; stay open to all. 24/7

2
BeautyBrains
Re: How do I prevent different IPs loggin in to one account

can you guys please tell me if this is what protector is for?
A man without history is like a tree without roots. Marcus Garvey (1917)http://CaribbeanAncestry.comhttp://JamaicaGenealogy.comhttp://thephilosophizers.com Teach what you know and learn what you don't; stay open to all. 24/7

3
Catzwolf
Re: How do I prevent different IPs loggin in to one account
  • 2010/7/22 19:38

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


Hiya,

The IP restriction can be done with code modification to the core and database to properly work and what version of Xoops are you using now (As I know you upgraded earlier).

Also, what is the lines above

require_once XOOPS_ROOT_PATH.'/class/pagenav.php' ; at line 3?


4
red_Slider
Re: How do I prevent different IPs loggin in to one account

here U are:
http://xoops.peak.ne.jp/md/mydownloads/singlefile.php?lid=94&cid=1&easiestml_lang=xlang%3Aen

5
Catzwolf
Re: How do I prevent different IPs loggin in to one account
  • 2010/7/22 20:23

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


Not to cloud the issue, but how does this help her?

6
madDan
Re: How do I prevent different IPs loggin in to one account
  • 2010/7/22 21:33

  • madDan

  • Not too shy to talk

  • Posts: 105

  • Since: 2010/1/6 1


Just add the groups in protector prefs you wish not to move IP in session, that you wish not to be able to hop about.

7
BeautyBrains
Re: How do I prevent different IPs loggin in to one account

Hey Catz,
Since the upgrade I no longer have the protector errors (above).

The problem I am having with protector is that I know nothing about that stuff so Red-Slider sending me the link, although you are trying to help, really just adds to my confusion.

When I read what it does, I don't understand the terminology

DoS - what is dos? To me that is early programming code.
- Bad Crawlers (like bots collecting e-mails...) - this I get
- SQL Injection - ???
- XSS (not all though) - ???
- System globals pollution - ???
- Session hi-jacking - I think this is what I need but I really don't know what that is. All I know about session is that sometimes my site logs me out and gives me a session error. Or if I take too long to create a post I will get a session error.

RedSlider is this protector diff from the version that comes with 2.4.4? Should I be using this one instead or should I try what MadDan suggested.

You guys will have to tell me exactly what file to edit and exactly where in the file to put the code.

Thanks
A man without history is like a tree without roots. Marcus Garvey (1917)http://CaribbeanAncestry.comhttp://JamaicaGenealogy.comhttp://thephilosophizers.com Teach what you know and learn what you don't; stay open to all. 24/7

8
Mamba
Re: How do I prevent different IPs loggin in to one account
  • 2010/7/23 18:55

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


1) Just use the Protector that comes with XOOPS, as it takes advantage of Preloads

2) In the Admin go to the Protector

3) It should open in the "Protect Center" Tab

4) At the "Bad IP" box, input the IP that you want to block

5) click on "Go" and you're done

Don't worry about anything else...
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

9
red_Slider
Re: How do I prevent different IPs loggin in to one account

Welcome
I see that I created a little confusion. You asked, so I sent to the source - the module creator site.
Protector is like a firewall. Prevents many attacks on your the portal. It's really a fantastic tool. GIJOE was I gave you, you can read more about the methods of hacking (etc.) - the sum of all the risks to which your site is exposed.

As to your questions about the different methods of attack will send to google.
DoS - what is dos?
- Bad Crawlers (like bots collecting e-mails...) - this I get - OK
- SQL Injection - ???
- XSS (not all though) - ???
- System globals pollution - ??? - almost all the rest
- Session hi-jacking - I think this is what I need but I really don't know what that is. All I know about session is that sometimes my site logs me out and gives me a session error. Or if I take too long to create a post I will get a session error.
- yes - but that hijack your session, and gives 4e admin permissions on your site

There are many pages about hacking - I recommend to read some basic articles on temad most popular methods - this will allow you to understand the attack and operation of the Protector.

Quote:
RedSlider is this protector diff from the version that comes with 2.4.4? Should I be using this one instead or should I try what MadDan suggested.


You ask whether to use the version of the package if the version of the GIJOE. The answer is simple - when configured with a module, then use this bundle.

Quote:
You guys will have to tell me exactly what file to edit and exactly where in the file to put the code.

And now the answer to your question.
Quote:
How do I prevent different IPs loggin in to one account

1. I understand that you know the IP number that you want to block.
2. You have two options:
a) go into: yoursite.com/http://smartklub.pl/modules/system/admin.php?fct=preferences&op=show&confcat_id=1
look into last filed. Here U can put IP adress, that U want to block
b) go into: yoursite.com/modules/protector/admin/index.php
look onto first field - and do the same

I hope this time I helped ;)

10
Catzwolf
Re: How do I prevent different IPs loggin in to one account
  • 2010/7/23 20:03

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


I think all of you have gone right off in the wrong direction from what she is asking, she wants to know how to prevent the SAME user from a different IP from logging into the site. This way, a user who has paid membership cannot just hand over their login details to someone else and then expect still to login to the system.

Sure protector will ban an IP address and stop them from logging into the system, but she first needs to know the IP address and secondly, she really doesn't want to sit there examining everyone who logs in to see what IP address they are using.

Now while this can be done, there are issues that need to be looked at first.

Not every IP address is static, for example, DSL connections IP addresses are rotated frequently and this is where the problem will arise. So, preventing a user from logging in with a different IP address, may affect legitimate users in reality.

Login

Who's Online

138 user(s) are online (100 user(s) are browsing Support Forums)


Members: 0


Guests: 138


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits