• Elisabeta

    (@elisabeta)


    Hi guys,

    I have a form outside WordPress where people purchase insurance packages.

    Once they pay a user is automatically created for them on a WordPress site that runs S2Member Pro – this is done using the remote operation API.

    Everything worked great until I installed iThemes Security Pro.

    Enabling HackRepair.com’s blacklist feature on iThemes will prevent users from being created – you get a 403 response (Forbidden).

    My server admin said that we either disable that which is not recommended or we switch the S2Member code from using file_get_contents to using cURL.

    However I don’t know how to do that. Here the code that actually creates the user:

    $post_data = stream_context_create (array("http" => array("method" => "POST", "header" => "Content-type: application/x-www-form-urlencoded", "content" => "s2member_pro_remote_op=" . urlencode (serialize ($op)))));
    		$result = trim (file_get_contents ("MY-URL.COM/?s2member_pro_remote_op=1", false, $post_data));

    How do I put this into cURL and make it work while still keeping iThemes blacklist enabled?

    Thanks a lot for your help!

    https://www.ads-software.com/plugins/s2member/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Automatic User Creation Stopped by iThemes Security’ is closed to new replies.