Disable Apache mod_rewrite Rules in any Subdirectory

https://perishablepress.com/disable-apache-mod_rewrite-subdirectory/

Let’s say you have some .htaccess rewrite rules in place using Apache’s mod_rewrite. By default if the rewrite rules are located in the root directory, they will be applied to every subdirectory, as expected. But what if you need to disable the rewrite rules so that they do not affect some specific sub-directory or sub-folder? This super quick tutorial shows the easiest way to do it. Don’t blink.. Ready? Here it is: RewriteEngine off Create a new .htaccess file in the subdirectory where you want to turn off mod_rewrite, and then add the above line of code. Done. For example, […]

WordPress Plugin: Disable WP Robots

https://perishablepress.com/wordpress-disable-wp-robots/

WordPress 5.7 features a new Robots API that provides filter-based control over the robots meta tag. So if your site is running WordPress 5.7 or better, you will notice a new <meta> tag included in the <head> section of your web pages. By default, the meta tag added by WordPress has a value of max-image-preview:large, which is fine IF it is the only robots meta tag on the page. If your site already has its own meta robots tag, then there will be duplicate tags, which is dubious at best. Ideally for optimal SEO, you want only ONE robots meta […]

7G Firewall for Nginx

https://perishablepress.com/7g-firewall-nginx/

After several months of development, the official Nginx version of the 7G Firewall is out of beta and ready for public use. If you are not familiar with 7G Firewall, check out the documentation for the Apache/.htaccess version. The Nginx version of the 7G Firewall works the exact same way, so I won’t bother repeating everything here. The only difference is the implementation, how to set it up on an Nginx server, which is explained in this post. Contents Preamble Overview Installation Step 1: Add the files Step 2: Include the firewall rules Step 3: Include the conditional logic Step […]

4 Ways to Make a WordPress Site Private Access Only

https://perishablepress.com/wordpress-site-private-access/

Have you ever wanted to make a WordPress site private? So that only specific users are allowed access? For example, for my found-images site eChunks.com, I decided to require user login in order to access any content. So now for that site, public access is not allowed, and any posts, images, and all other content is available only to logged-in users. This tutorial explains four ways to make a WordPress site private or members only, so that only authenticated/trusted users will have access. Contents Method 1: Use a plugin to require user login Method 2: Use a plugin and custom […]

Free WordPress Plugin: Disable Application Passwords

https://perishablepress.com/wordpress-disable-application-passwords/

Launching a free plugin to disable the new Application Passwords feature introduced in WordPress version 5.6. The plugin is one line of code. Install and activate to completely disable all of the Application Passwords functionality. To re-enable all Application Passwords, simply deactivate/uninstall the plugin. Easy peasy. Download I literally just submitted this plugin to the WordPress Plugin Directory. So for now, you can download the plugin directly here at Perishable Press: WP Plugin – Disable Application Passwords Version 1.0 (3KB zip) Feedback welcome in the comments below or send via my contact form.

Disable Ask for Location Prompts in Google Chrome

https://perishablepress.com/disable-location-prompts-google-chrome/

Want to stop Google Chrome browser from constantly asking for permission to “know your location”? This mini tutorial shows how to do it quickly and easily, for Google Chrome versions (around) 83 and better. Disable location prompts Chrome users probably are familiar with popup dialogs that say: somesite.com wants to know your location. For example here is a screenshot of the location alert at Google.com: Chrome asking for your permission to access your location By default, Chrome will display these notifications for any website that requests the user’s location. In general the idea is great and useful, but not everyone […]

Opera and Brave Blocking Legit Images and Files

https://perishablepress.com/opera-brave-blocking-images/

The Opera and Brave browsers are blocking many legitimate images. Thanks to the Opera settings “Block Ads” and “Block Trackers”, lots of legitimate (non-ad) images are broken. For Brave it’s the setting, “Block cross-site trackers”. The reason seems to be that the blocking feature in Opera and Brave is determining (at least in part) if images should be blocked based on the page URL and file name. More specifically, any image that includes a phrase such as “ads” or “google” in the URL or file name will be blocked. This can be seen by visiting the WordPress Plugin Directory, and […]