Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter worldjusticenews

    (@worldjusticenews)

    To try and help you find what the issue is, my site has membership and it causes people logging in to be re-routed to my access denial screen defined in IQ Blockcountry – all except 1 IP that I know of.

    Though on the other site I support there is not membership and nor is there an an access denial screen. The error given there is
    Access to xxxxxxxxxxxx.com was denied

    You don’t have authorisation to view this page.
    HTTP ERROR 403

    If it helps (but I believe this is coincidental) that IP that still seems to work is a full IP – for example xxx.xxx.xxx.xxx
    All others appear to have at least 1 digit less in each of the 4 IP address sections for example xx.xxx.xxx.xxx or xx.xx.xxx.x or xx.xx.xxx.xxx

    Also the non accepted IP’s are from different countries none of which are banned countries and all worked fine before this new version update.

    In both sites the 2nd of only 2 IP’s defined into the backend whitelist have both managed to get into the respective site dashboard but the 1st IP in both sites backend whitelist could not. Consequently because one could reach the plugins page in the dashboard IQ BlockCountry has been deactivated and the sites work ok again – though I obviously want to restore the IQ BlockCountry functionality asap.

    Plugin Author Pascal

    (@iqpascal)

    Hi,

    I am afraid nothing has changed in that area with the new version.

    Is this the error message you entered in the plugin?:

    Access to xxxxxxxxxxxx.com was denied

    You don’t have authorisation to view this page.
    HTTP ERROR 403

    Because it looks like a general webserver error. Perhaps generated by a .htaccess file.

    More information on the reason why may be found in your raw error log files that may be accessible via for instance a control panel.

    Thread Starter worldjusticenews

    (@worldjusticenews)

    There is nothing in the raw error log files. The last date of entry in the log is [06-May-2017 16:55:04 UTC] – The IQ Block Country update was made on 09-May-2017.

    Look at it this way – with the new version of IQ Block Country both sites have stopped working. The only difference betwwen the 2 sites is one has a URL to go to for explaining the denial and the one that issues the Access to xxxxxxxxxxxx.com was denied does not have a URL to go to for explaining the denial.

    With the site that does have the URL to go to I (the Admin and the first IP in the backend whitelist) am routed to the denial URL if I try to go to my dashboard or if I try to use the add post.

    It is all very well saying I am afraid nothing has changed in that area with the new version.

    But something has changed within IQ Block Country to be causing this to happen.

    As I said earlier luckily the 2nd IP in the whitelist can get to the dashboard and after deactivating the IQ Block Country plugin then both sites work normally again.

    And no my IP has not changed – All people that have some form of Dashboard functionality (authors) reported being routed to the denial screen – with the exception of the person who is 2nd (last) in the backend whitelist.

    All I am doing here is giving you as much information as possible to try and help you isolate the cause of the issue.

    I guess my next step is to look and see if IQ Block Country logged anything into a database prior to being routed to the denial URL (or in the case of the site with no denial URL then prior to going to the logic that issued the You don’t have authorisation to view this page message).

    Plugin Author Pascal

    (@iqpascal)

    Hi,

    So to recap. Both sites have countries blocked and whitelisted ip addresses (I assume to the backend?) and both sites have a redirect for the blocked people. External redirect or internal page redirect?

    And on 1 site the second listed ip adddress could login but the first ip address was blocked?

    Are you able to send either an export of the settings, and a database dump of the wp_iqblock_logging or a database dump of both the wp_options and the wp_iqblock_logging table?

    Thread Starter worldjusticenews

    (@worldjusticenews)

    You asked… both sites have a redirect for the blocked people. External redirect or internal page redirect?
    Site 1 has a redirect to a page that I specified in your settings
    Site 2 does not have a redirect page specified – on this site they should just receive whatever message you output.

    You also ask
    Are you able to send either an export of the settings, and a database dump of the wp_iqblock_logging or a database dump of both the wp_options and the wp_iqblock_logging table?

    Yes just let me know where to send them to.

    Plugin Author Pascal

    (@iqpascal)

    You can send all relevant data to support [] webence.nl

    Can you also supply which IP address got denied and which gained access to be clear?

    Thread Starter worldjusticenews

    (@worldjusticenews)

    I have sent the information requested.

    Thread Starter worldjusticenews

    (@worldjusticenews)

    For me my IP in the database table WP-Options had somehow become incorrect – though I should say looking at backups it did not happen during the update. How my IP was modified remains a mystery.

    What you can do is amend the value that is set in the database column blockcountry_backendwhitelist in the table wp-options
    to be your current IP address

    Hope that helps.

    Thread Starter worldjusticenews

    (@worldjusticenews)

    JamesonTheWay
    What happened to you is identical to what happened to me. Though I am in the UK.

    If you look in the WP-Options table at the column blockcountry_backendwhitelist

    You will find that the IP that is there is not your IP
    For me, mine had changed to an IP in the same city – weird huh?
    So see my reply to to hubber for how to fix

    Going back thru my backups all backups predating the date I ran the update all had the incorrect IP so my assumption was it was not the update that caused it – but it made me wonder why the previous version did not pick up this IP as being wrong.

    I am not out of the woods though. After the update, USA users could not access the frontend. (well an Admin USA user could but that person is defined to the backend whitelist)

    I did an uninstall followed by a new install – and still had the issue.
    Pascal is looking at this issue.

    For now I have left IQ Block Country activated and unchecked Block Visitors from visiting the Frontend of your website and they were able to get in.
    Obviously though that parameter should be ticked.

    But at least by leaving IQ Block Country activated my backend is protected.

    @worldjusticenews

    I do not know what “WP-Options table” or “the column blockcountry_backendwhitelistor” are or where to find them.

    Thread Starter worldjusticenews

    (@worldjusticenews)

    Login to your cPanel (cPanel is where you probably go to ftp files up to your server). On cPanel you should have phpMyAdmin
    within phpMyAdmin you will see the name for your wordpress database.
    Expand that and it will show all of the wordpress tables one of which will be wp-options
    To update it see this example video of how to update a column https://www.youtube.com/watch?v=3JeS8rfMqfQ

    WARNING: Before doing any update, use the Export function to save a copy of the table before making the change.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘IQ Block Country New Version Issue’ is closed to new replies.