Softaculous


Topic : IP Block


Posted By: wg2613 on December 18, 2020, 12:34 pm
I have been using IP Block. I have several entries in the list (about 60 or so). It would be real nice to be able to list them in ascending/descending order. If it is a simple code change that could be entered, I am sure I could edit it if I knew were to start.

Posted By: wg2613 on December 18, 2020, 12:53 pm | Post: 1
LOL! I should add "able to figure it out" means I am really good at following instructions and copy/paste.

Posted By: wg2613 on December 18, 2020, 9:49 pm | Post: 2
So I am getting closer :) . I have found the .php file "ipblock_theme.php" woot! Not quite sure what to do from here. Any help would be great.

Posted By: wg2613 on December 18, 2020, 11:50 pm | Post: 3
So I think I have found the code that I need to edit but i am not sure how.

if(empty($add_list)) {
        echo '<tr><td colspan=4><center><span>'.$l['no_ip_blocked'].'</span></center></td></<tr>';
    }else{

        $i =1;
        foreach ($add_list as $key => $value){   
            echo'
            <tr id="tr'.$key.'">
                <td><span>'.$value.'</span></td>';
                $tmp = cidr_to_iprange($value);
                echo'
                <td><span>'.$tmp[0].'</span></td>
                <td><span>'.$tmp[1].'</span></td>
                <td style="text-align:right"><img title="Delete" class="delete" style="cursor:pointer;" id="did'.$key.'"  src="' . $theme['images'] . 'remove.gif" /></td>
            </tr>';



Any thoughts? I am trying to list the IP address in ascending/descending order.

Posted By: sloowik on October 27, 2023, 10:49 am | Post: 4
If you can provide more specific information about the software or tool you are using, I can offer more detailed guidance. Keep in mind that making changes to your security configurations should be done with caution, as any misconfiguration can have significant security implications. Always back up your configuration before making changes, and consider consulting with a security expert if you're unsure about the changes you're making.

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.