Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author jmadea

    (@jmadea)

    The extension would be “img” of course. The mime type may depend on what the file actually is… but “application/octet-stream” is often a good bet for binary data.

    I’ve got the same issue.

    Thread Starter jmadea

    (@jmadea)

    I’m glad this has picked up some interest. It has been a stellar solution for me.

    Invisnet – I haven’t checked out your update yet. I’ll do that.

    llocally – I’ve got a custom wordpress-admin.conf too, but I think I’m a little more draconian than you. 🙂 Firstly, I look for any failure from adm.*. Secondly, I don’t limit my blocks to certain ports; I just start dropping packets from the that IP. Thirdly, I block them semi-permanently. When my blacklist gets very long I do clear out old entries, but on average a blocked IP will sit on there for months.

    I keep several different block lists and use IP sets to maintain them, so I have custom actions for that.

    As to sleep()ing on failed attempts, the problem with that is you are just tying up your server process. While it is sleeping, it can neither answer legitimate requests nor boot more bots. That makes it very easy to DoS you.

    Thread Starter jmadea

    (@jmadea)

    Thank you, Frederick.

    Thread Starter jmadea

    (@jmadea)

    Yes, I am mapping subdomains.

    But I’m afraid you’ve lost me.

    Most sections under the general settings tab have a checkbox for “Apply the settings above to the entire network.”

    However, the relevant section in this case, “Network Security and Performance Powered by CloudFlare” does not have such a checkbox. (Note that this is different from the CDN section.)

    Moreover, even if it did have such a checkbox, it isn’t at all clear where I’d put in an API key or domain name (or any other settings) for individual domains.

    Is it possible to network activate W3TC and use its CloudFlare functionality with multiple domains? And if so, how?

    Plugin Author jmadea

    (@jmadea)

    I don’t think that what you are looking for exists, exactly. WP has some built-in support for common media types, but I don’t think there’s one place where the code used to embed them in a page is chosen based on file extension (or anything else.) Some media types aren’t ever embedded in a page and others could be embedded multiple ways.

    I don’t think that doing what you want with a new (i.e. currently unsupported) media type would be very difficult. However, not having needed to do this myself, I can only make some wild guesses at how to start going about it. My first thought is that a custom post type might be in order; but on reflection, I’m not really sure that’s necessary. The standard “attachment” post type with a custom taxonomy may be the right approach. Some research is in order. I’d check around to see how people may be embedding other types.

    I’m sorry I can’t be of more help. Good luck with it!

    Plugin Author jmadea

    (@jmadea)

    Michel,

    I’m sorry to have taken so long to answer. I just noticed the comment you posted on my site about a week ago.

    In answer to your question, I really don’t think that falls within the scope of this plugin. The point of this is only to allow or disallow uploads with given file extensions through the media library. This plugin doesn’t (and shouldn’t) make assumptions about what needs to be done to use those files once they are uploaded.

    Kind regards,
    -j

    Thread Starter jmadea

    (@jmadea)

    Many thanks!

Viewing 8 replies - 1 through 8 (of 8 total)