orbisius-wp-media-protector | Orbisius WP Media Protector | Content Management System library
kandi X-RAY | orbisius-wp-media-protector Summary
kandi X-RAY | orbisius-wp-media-protector Summary
Orbisius WP Media Protector. Restricts access to WP Media uploads to logged in users only. Requires some rules to be added in .htaccess file as well. This plugin must be saved in wp-content/mu-plugins/ folder. See plugin page for more details. Plugin HomePage: If you find bugs or file a ticket using the link below
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Protect uploaded files .
- Check if a file exists
orbisius-wp-media-protector Key Features
orbisius-wp-media-protector Examples and Code Snippets
Community Discussions
Trending Discussions on orbisius-wp-media-protector
QUESTION
I'm trying to add a rewrite rule for WordPress to use this Orbisius Media Protector plugin. The plugin assumes uploads are in /wp-content/ but I've moved uploads to /assets/.
I changed RewriteCond %{REQUEST_URI} ^(.*?/?)wp-content/uploads/.* [NC]
to RewriteCond %{REQUEST_URI} ^(.*?/?)assets/.* [NC]
but that's affecting files located at wp-content/plugin-name/assets, so I need a RegEx that only matches /assets/ at the first level of the URL.
I'm working in an IIS environment. I've used the server manager URL Rewrite functionality to import the .htaccess rules for web.config, so this is the code I'm actually working with:
...ANSWER
Answered 2019-Apr-26 at 19:40I am not sure about the plugin, however if you want the patternt o match the assests folder at root level and not at any other level you can try the below regular expression ^(/?assets)/.* , this will work either as a condition or as a pattern in the match url where you have .
With the regular expression you have ^(.?/?)assets/. this matches to assets at all directory levels.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install orbisius-wp-media-protector
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page