Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author tokkonopapa

    (@tokkonopapa)

    Hi Ian,

    Sorry about your issues with this plugin. I think the polling system of your site is similar to like button (which means those are provided by your theme). Then the solution should be the same as the previous issue.

    Or if you have some plugin for polls then let me know about it. I should check it.

    Thank you for your reporting!

    Thread Starter 11whyohwhy15

    (@11whyohwhy15)

    HI,

    Thanks for coming back so quickly.

    No plugin it is theme generated.

    See how it is stored in my theme: https://drive.google.com/file/d/0B8rWFX3hEanRbmFfNTVzeGRIT1U/view?usp=sharing

    So would I put ‘vote_post’ or maybe ‘poll_post’ into “Exception for admin action and page” or something different ?

    Would that then allow the poll to work correctly and any answer to be chosen ??

    Thanks

    Ian

    Plugin Author tokkonopapa

    (@tokkonopapa)

    Hi Ian,

    Did you find vote_post or poll_post for ajax actions in this plugin’s log? If the answer is yes, then please add them into “Exception for admin action and page” separated by comma.

    I found the other actions for admin-ajax.php in JavaScript for theme belle. Those are user_rating, like_post and vote_poll.

    So I think vote_poll should be added for polls. And if you use something “rating” functionality of belle, you need to add user_rating.

    But I should inform you about the limitation of this plugin.

    I can’t say something about theme belle for sure because I’ve not checked the code of belle, but technically speaking, it seems not to follow the WordPress standard way for ajax. Basically it’s not good to bypass some actions in this way because if those had some vulnerabilities, IGB could not protect your site.

    I expect your good understandings.

    Thanks.

    Thread Starter 11whyohwhy15

    (@11whyohwhy15)

    Hi,

    Thank you so much for helping with this.

    I’ve put the actions in ‘Exception for admin action and page’ as ‘like_post,user_rating,vote_poll’

    Hopefully IGB will be fine. It does seem to stop a lot of attacks according to the statistics page and I also use other protection plugins too.

    Could you try the page for me now and see if it works OK for you now I’ve done the changes you mentioned.

    If I use the Front-end target settings we spoke about will these changes still work OK ?

    Thanks so much !!

    Ian

    Plugin Author tokkonopapa

    (@tokkonopapa)

    Hi Ian,

    I’ve just came back to Japan from Brazil ?? And I vote at https://www.whodoido.com/our-first-ever-poll-get-your-votes-in/ and got the following results:

    1. From JP: “503 Service Unavailable”
    2. From US: “503 Service Unavailable”
    3. From UK: “200 OK”

    Here’s the succeeded image from UK: Result of voting

    Were those result OK for your site?

    Actually, the action for admin-ajax.php was vote_poll. So I think

    I’ve put the actions in ‘Exception for admin action and page’ as ‘like_post,user_rating,vote_poll’

    should be OK.

    Thread Starter 11whyohwhy15

    (@11whyohwhy15)

    Hi,

    Hope trip was fun ??

    Well it’s good that the UK is working but i really want anyone anywhere to be able to vote depending on what poll I do.

    So what do you think we can we do to stop the “503 Service Unavailable” showing for other countries ?

    Thanks

    Ian

    Plugin Author tokkonopapa

    (@tokkonopapa)

    Hi Ian,

    So what do you think we can we do to stop the “503 Service Unavailable” showing for other countries ?

    I understand this request is not only for you. I’ll add the functionality to do that. Please forgive me to take a few days.

    Thanks.

    Thread Starter 11whyohwhy15

    (@11whyohwhy15)

    Hi,

    No problem.

    As always you’ve been exceptional in fixing anything.

    I look forward to hearing from you.

    Thanks

    Ian

    Plugin Author tokkonopapa

    (@tokkonopapa)

    Hi Ian,

    I would be grateful if you test the new version 3.0.2 beta before I release it. This version is just to add “Exceptions” for “Admin ajax/post“. (I’ll add some of other new features to it in the near future. That’s the reason it’s beta.)

    Exceptions for Admin ajax/post

    You can test it as follows:

    1. Download https://github.com/tokkonopapa/WordPress-IP-Geo-Block/archive/3.0.2.zip and unzip it, then you can find ip-geo-block in the unzipped files.

    2. Deactivate IP Geo Block.

    3. Upload ip-geo-block to your plugins’ directory. Overwriting is OK.

    4. Activate IP Geo Block again, then you can find the above image at “Back-end target settings“.

    And I’d test to poll from some countries if you want.

    I’d appreciate your kind cooperation!

    Thread Starter 11whyohwhy15

    (@11whyohwhy15)

    HI,

    I only uploaded the ip-geo-block folder and overwrote the existing folder then checked and it is showing as version 3.0.2b. The other folder ‘test’ and .gitignore and deploy.sh – I didn’t know what to do with them ?

    When tested through Tor Browser it all seemed work for both ‘likes and polls’!!

    Excellent! Thank you. Can you check from your country too please ??

    Having another slight problem though ;(

    If I enable ‘front end-target-settings’ I cannot view my page at all using Tor ? It shows my page in GB but not anywhere else. I have deactivated WP Fastest Cache as I was having problems with Slider Revolution when it was running.

    See pics:
    https://drive.google.com/file/d/0B8rWFX3hEanRQk5qTUJDODNLSlE/view?usp=sharing
    https://drive.google.com/file/d/0B8rWFX3hEanRbzV3UFUwMng0LUE/view?usp=sharing
    https://drive.google.com/file/d/0B8rWFX3hEanRZ09ycDBVc1NZOU0/view?usp=sharing

    Thanks

    Ian

    Plugin Author tokkonopapa

    (@tokkonopapa)

    Hi Ian,

    Thanks you for your trying the beta version!

    I voted from Japan and Russia and both requests were succeeded. So please keep using this version. You can safely upgrade it from WP.org when I release the stable version.

    If I enable ‘front end-target-settings’ I cannot view my page at all using Tor ?

    How about setting different “Matching rule” from “Validation rule settings” which is applied to “Back-end target settings“.

    Front-end target settings

    I’m sorry but the UI would be a little bit incomprehensible. Please try!

    If those all were OK, I’ll close this topic.

    Thank a lot for your cooperation!

    Thread Starter 11whyohwhy15

    (@11whyohwhy15)

    Thanks

    Thread Starter 11whyohwhy15

    (@11whyohwhy15)

    HI,

    Seems the problem with the voting for the Poll’s page hasn’t gone away.

    I was wondering why I had so many page views but no votes. So had a friend vote from the USA today and they said it worked fine from their end but when I check my polls page on the backend the vote hadn’t increased at all? It was still only showing 7 votes. So I deactivated IGB and got them to do it again and the vote is then recorded and increases to 8 votes?

    So It seems when IGB is activated it looks like it has voted on the page but it actually hasn’t ? You should be able to see the vote number increase on the page after voting and the graph change too.

    Is it possible to have another look as I would hate having to not use this plugin anymore.

    IGB is currently deactivated.

    How did you vote from other countries ?

    Thanks

    Thread Starter 11whyohwhy15

    (@11whyohwhy15)

    Hi,

    Any news on my questions above ?

    Thanks

    Plugin Author tokkonopapa

    (@tokkonopapa)

    Hi Ian,

    I’m deeply sorry but I could not notice about your last comment because I thought this was solved.

    OK, let me summarize the circumstances.

    • This plugin can not pick up the ajax actions for your theme (belle) because your theme seems to register them not in admin context.
    • So you have to put vote_poll (for poll), like_post (for heart button), and user_rating (for ???) into “Exceptions” at “Admin ajsx/post” by your own hand.
    • But you think the issue seems to be still there.

    So I put the following codes into my theme’s functions.php to emulate your theme and reproduce the issue.

    add_action('wp_ajax_vote_poll', 'vote_poll');
    add_action('wp_ajax_nopriv_vote_poll', 'vote_poll');
    function vote_poll() {
        error_log('vote_poll done.');
    }

    The result was “it worked fine from any countries”. It means that if I did not set “Exceptions” then the request was blocked, but if I set those, the request was accepted.

    To begin with my investigation again, could you send me your setting data file named “ip-geo-block-settings.json” which is available by pushing “Export settings” button at “Plugin settings” section, and send it to me by email (tokkonopapa at yahoo com)?

    Thanks.

    • This reply was modified 7 years, 7 months ago by tokkonopapa.
Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Polls’ is closed to new replies.