How to create a blocker with php codes?

Asked By 30 points N/A Posted on -
qa-featured

Hello,

How to create a blocker with php codes? Any ip blocker that will help me track those ip of the people who accessed in my forum from the time date and ip addresses. There are some user who registers in my forum and leave stupid questions and write unpleasant comments. I would like to block them to avoid those people.

Waiting for your support, thank you.

SHARE
Answered By 0 points N/A #186515

How to create a blocker with php codes?

qa-featured

 

Hi Benjamin,

I searched the code that blocks the IP of a user leaving annoying messages and comments to your site.

 

You can find the PHP code in this certain site:

http://perishablepress.com/how-to-block-ip-addresses-with-php/

All you have to do is to change the IP arrays into the IP you want to be block.

That code will check the incoming users IP address and if the IP match on what you put, your site will deny its access.

 

Hope this information helps

 

Login/Register to Answer

Related Questions