How do you ban ip using DirectAdmin?
i have never used it before and used to using Cpanel IP DENY
i have never used it before and used to using Cpanel IP DENY
| Code: |
| order allow, deny
deny from 192.168.0.2 allow from all |
| DanielXP wrote: |
| i don't relly want to do that its a little work but to much! |
| DanielXP wrote: |
| is there not a script you can make to put on my site so i login into it and it puts the code in on its own? |
| Code: |
| <?php
$banned_ip = "192.168.0.1"; if ( $_SERVER["REMOTE_ADDR"] == $banned_ip ) { echo "you are banned"; } ?> |