How to ban IP addresses?

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: How to ban IP addresses?

Post by Thorsten »

Hi,

I have a bot blacklist for the session... I'll ckeck why this doesn't work.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: How to ban IP addresses?

Post by Thorsten »

Hi,

okay, I think I found the issue and here's the fix:

https://github.com/thorsten/phpMyFAQ/co ... d57d4f1fb7

Any feedback is appreciate!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Mercury
Posts: 51
Joined: Fri Dec 17, 2010 9:25 pm
Contact:

Re: How to ban IP addresses?

Post by Mercury »

Uploaded: https://github.com/thorsten/phpMyFAQ/co ... d57d4f1fb7

I entered IP to ban in “Ban these IP” in main configuration. Then I visited my site with second PC whose IP I banned. But second PC is still able to visit the site.

Note 1: After uploading modified Session.php the banned PC does not report the correct number of visitors at my site.

Note 2: All pages (except home page) have this error: phpMyFAQ warning [2]: Wrong parameter count for strstr() in Basic.php on line 166

I fixed both problems by uploading the original Session.php

PS: I still don’t see a download link at Github for Session.php. So instead I click “View file” then “raw” then in browser I select all, copy and paste into Session.php and save file with text editor. Is there no easier way to get Session.php from Github?
www.puppylinuxforum.org
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: How to ban IP addresses?

Post by Thorsten »

Hi,
Mercury wrote:PS: I still don’t see a download link at Github for Session.php. So instead I click “View file” then “raw” then in browser I select all, copy and paste into Session.php and save file with text editor. Is there no easier way to get Session.php from Github?
sadly, no.

I'll re-check this issue next year.

Happy new year!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply