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.
How to create a blocker with php codes?
Â
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:
https://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
Â