• Resolved WayneM1

    (@waynem1)


    Running the latest versions of WP and all plugins.

    I have been using BPS forever and it has always worked great with the forum plugin I use: “Simple:Press”.

    I can still make normal text posts to my forums. But, when I try to include a link of any sort (to a website, or to a youtube link, etc) I end up getting…

    “If you arrived here due to a search or clicking on a link click your Browser’s back button to return to the previous page. Thank you.”

    Here’s the error in the security log:

    [403 POST Request: November 10, 2014 - 5:13 pm]
    Event Code: BFHS - Blocked/Forbidden Hacker or Spammer
    Solution: N/A - Hacker/Spammer Blocked/Forbidden
    REMOTE_ADDR: 72.70.225.212
    Host Name: pool-72-70-225-212.spfdma.east.verizon.net
    SERVER_PROTOCOL: HTTP/1.1
    HTTP_CLIENT_IP:
    HTTP_FORWARDED:
    HTTP_X_FORWARDED_FOR:
    HTTP_X_CLUSTER_CLIENT_IP:
    REQUEST_METHOD: POST
    HTTP_REFERER: https://www.npmb.com/3/forum/general-paddling/?new=topic
    REQUEST_URI: /3/index.php?sp_ahah=post&sfnonce=fca77c8e13
    QUERY_STRING:
    HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0

    Is this something that can be fixed with a skip rule?

    I tried to trouble shoot as per BPS recommendations, but did not have any luck.

    Thanks for any help you can offer.

    https://www.ads-software.com/plugins/bulletproof-security/

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

    (@aitpro)

    …when I try to include a link of any sort (to a website, or to a youtube link, etc)…

    I don’t see anything specifically in the log entry that indicates exactly what is being blocked. The Request_URI looks really ugly, but not something that should be blocked so what exactly does including a link mean? Post an example link and exactly how you are trying to “include” it.

    Thread Starter WayneM1

    (@waynem1)

    Thanks for the usual quick response ??

    Here’s a link to a previous forum post at my forums that worked fine:
    https://www.npmb.com/3/forum/general-paddling/stikine-river-gopro-2014/

    It’s just a post with a plain text URL that WP magically turns into a nice embedded video.

    Right now I can’t even make a post with a simple URL to website. Again, just a plain text link like: https://www.yahoo.com/ will result in a 403 error page on making the forum post (forum posts without any URLs in them work fine).

    I’ll admit, as per my usual M.O., I updated both BPS and my Simple:Press plugins just a few days ago. So, maybe the forum plugin is doing something new and weird. The REQUEST_URI: does look a bit odd.

    Just hoping to find the right solution/fix for this issue. I’ll keep working on it at my end. Thanks again.

    Plugin Author AITpro

    (@aitpro)

    hmm yeah I can’t think of any code in BPS that would block plain links like that. It could be some odd chain reaction of things so do these steps below and let me know what happens.

    1. Go to the BPS Security Modes page, click Create default.htaccess File AutoMagic button and activate Default Mode.
    2. Create a new test post with a link in it.

    Thread Starter WayneM1

    (@waynem1)

    Followed your steps above.

    When testing posting with a link, the result was a standard WP 403 page (not a BPS 403).

    Testing post without link worked fine.

    Looks like maybe I’ll need to track this down through the forum plugin authors.

    Plugin Author AITpro

    (@aitpro)

    Hmm it could be the wp-admin htaccess file blocking something. Not very likely, but possible. Delete the wp-admin htaccess file on the Security Modes page.

    Plugin Author AITpro

    (@aitpro)

    Never seen this before. I tried to check your site with Built With and Built With is being blocked. It is looking more and more like your host has implemented some kind of server security that may be causing the issue.

    Plugin Author AITpro

    (@aitpro)

    Wierd stuff. The root of your site is blocking Builtwith but not the /3/ URL?
    https://builtwith.com/?http%3a%2f%2fwww.npmb.com%2f3%2f

    Thread Starter WayneM1

    (@waynem1)

    That is weird. Thanks for the heads-up. I’ll see what’s happing in my root.

    I have another website running the exact same setup (BPS and Simple:Press) on a server with the same setup. That website has the WP installation in the root directory (not a sub like /3/), and I’m having the same problem with trying to post links in forum posts.

    I deleted the wp-admin .htaccess. No change.

    I’ll keep digging.

    Plugin Author AITpro

    (@aitpro)

    Your server logs will probably help pinpoint what is going on. Maybe it has to do with Simple Press itself. Something like it is triggering a mod_security security rule or some other server security rule. BPS will log all 403 errors when your site is using root folder BulletProof Mode. When you switch to Default Mode then your server is handling 403 error logging by default again.

    Plugin Author AITpro

    (@aitpro)

    And something about that BPS Security Log entry just does not look right. Like something is missing or was stripped out. It seems incomplete or something like that. Maybe just a fubar Query string to begin with somewhere in Simple Press.

    Plugin Author AITpro

    (@aitpro)

    This is another long shot, but worth trying. When i look at your Source Code i see that you are using this plugin: Fluid Video Embeds. try deactivating it and see if you can post a link.

    Thread Starter WayneM1

    (@waynem1)

    Deactivating the FVE plugin had no effect. I think most signs seem to point to an ajax issue with the Simple:Press plugin. I’ll pursue that avenue to see what I can dig up. Thanks again.

    Thread Starter WayneM1

    (@waynem1)

    Doing a bit more digging…

    Found that I CAN post URLs – but ONLY if the URL is not the first character of text in the post form.

    In other words, if I add a blank line (return), or even just a blank space before the URL, or if the URL comes later on in the context of a post – then it works fine.

    All the posts that returned 403 errors happened when a URL was right at the start of the post.

    I’ll pass this along to the authors at Simple:Press and see if they have any ideas.

    Again, thanks for your great plugin ??

    Plugin Author AITpro

    (@aitpro)

    Good troubleshooting to isolate exactly where the root problem is. You should also contact your host about this and give them all the info. A scenario like this could be happening: your host server has a security rule that is blocking the string since it matches that server security rule. The security rule would be looking at $_POST content and not the Query string, but I thought this was worth mentioning below.

    In BuddyPress the Query String for a new Topic looks like this.

    /post-new.php?post_type=topic

    What appears to be missing in the Simple Press Query string is the executing page/script. To me it looks like a malformed Query string.

    /[something should probably be here and it is not]?new=topic
    Plugin Author AITpro

    (@aitpro)

    Thread has been resolved due to not being a BPS plugin issue/problem. If you want to post whatever the cause of the problem was and the solution whether it is a Simple Press, host server or other issue/problem then that might help someone else out. Thanks.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘403 error when posting link in forum’ is closed to new replies.