Yes, you can use a htaccess.
In fact, I often recommend htaccess based protections over plugins because they do not depend upon PHP code or WordPress. The use a completely independent system – Apache.
The more important question is:
Do your htaccess rules protect against the threats you with to
mitigate?
Some protections may require a plugin simply because the functionality is not available through what Apache offers.
For example, many plugins attempt to block brute force attacks against your WordPress Login.
You can also achieve the same result by using HTTP Authentication.
Similarly, some plugins try to protect against code-injection, but you can also do this with Apache’s mod_rewrite
.
Related Posts:
- Content-Security-Policy implementation with WordPress W3Total Cache plugin installed
- What security concerns should I have when setting FS_METHOD to “direct” in wp-config?
- What Are Security Best Practices for WordPress Plugins and Themes? [closed]
- Are WordPress Plugins essential?
- I found this in a plugin. What does it do? is it dangerous?
- What are the common security flaws I need to look for? [closed]
- Disabled plugins are they security holes – rumor or reality?
- What could a hacker do with my wp-config.php
- How Can I Securely Implement a Password-less Login Feature?
- Security and .htaccess
- Why “Contact Form 7” doesn’t update PHPmailer library?
- Are there procedures to prevent malicious plugin updates?
- How to stop wordpress from changing default .htaccess permissions to 444
- Secure WordPress paid plugin
- How to make media upload private? [duplicate]
- Does WordPress contain “default” anti-SQL injection code that responds with a 404 error?
- What does a security risk in a plugin look like?
- WordPress Capabilities: edit_user vs edit_users
- Should we use plugins that aren’t available from the official WordPress site?
- How to check plugins for malicious code?
- How to properly secure my WordPress installation?
- Why allow overriding crucial pluggable functions wp_verify_nonce and wp_create_nonce?
- Where should my plugin POST to?
- Security error WP 4.0 + WP phpBB Bridge [closed]
- Should I install plugins to my WordPress installation from web sites having in URL “nulled” or, “null”?
- Disabled plugins are security holes – rumor or reality?
- Can I ignore caching of a plugin in W3 Total Cache? [closed]
- Why am I sometimes getting a 404 error when I try to update a page with Elementor?
- Should I use RIPS tool to test my themes and plugins?
- Prevent Brute Force Attack
- Why users disable the WordPress update?
- How many security plugins are too many? [closed]
- Will WordPress username displayed somewhere in the site?
- Upgrading WordPress 4.0 asks for FTP password
- Is revealing just the AUTH_KEY a security issue?
- How Restrict access to admin dashboard by specific static ip?
- Error Message from W3 Total Cache when .htaccess Rules Cannot Be Modified? [closed]
- When is it useful to use wp_verify_nonce
- Protecting against malicious code in WordPress plugin updates
- Questions about brute force attacks on the admin username, coming from amazon IP addresses
- Specific way to allow WordPress users to view their current password? And edit it?
- Too many login attempts
- Is there any pre-existing plugin to track and block IPs with suspicious activity on my site?
- How to prevent plugins from sniffing/stealing other plugins’ options?
- “W3 Total Cache” with “What Would Seth Godin Do” (and widgets?!)? [closed]
- Website show Google Ads when we have no Google Ads linked to our website
- Vulnerability Concern From the Plugin or From Not Updating the Plugin?
- How to add support for caching plugins for my own plugin?
- Custom API plugin to execute 3rd party API to retrieve data
- How to deal with Slow HTTP POST (slowloris) vulnerability
- Running multiple security plugins
- how do I secure my WP website from hackers? [closed]
- Chrome Dev Tools console says every page in my blog has link to http://maps.google.com [closed]
- Object Caching Plugin force every plugin to cache objects?
- Webservice credential storage [duplicate]
- Regarding plugin security
- How do I determine if the user who registered is not spam?
- If I use an alternative login (e.g. CAS or other SSO) plugin, is my site protected from the recent brute force login attempts?
- Is this plugin safe to run?
- Sociable buttons displaying seemingly at random [closed]
- W3 Total Cache Help – How to update DNS Zone for a static domain [closed]
- Is the Block Bad Queries Plugin Still Relevant?
- WP Insert Post If user refreshes override new post
- 404 errors when updating options in admin dashboard
- What archive plugin works with W3 total cache? [closed]
- Website Captcha Error: The reCAPTCHA wasn’t entered correctly
- Hide plugins and theme from public
- WordPress search shows protected content
- Security of a WordPress Plugin
- Can I disable xml-rpc by setting it to false?
- How can I disable new plugin and theme install, but allow updates?
- Memcaching recurring SQL Queries
- Help to Create a Simple Plugin to make a post
- Validating ajax search
- WordPress disable direct access of files in WordPress installation path
- Asking help regarding potential malware
- prevent anonymous access to WordPress site (non-admin site)
- My wp database has been hacked
- How can I disable W3 Total Cache Image Lazy Load for Specific Post Type?
- Bing/msn bots is heavily requesting random of my website
- “Fire Secure” menu item
- Securing a plugin pop-up window
- https rewrite not working for All in one security Brute force > rename login url
- WordPress Dashboard shows no plugins installed!
- Redux framework somehow added to my site, can’t locate in plugins
- Primary Menu doesn’t show because of w3 cache
- Being hacked. Is there a list of WordPress security holes I can check against?
- wp_verify_nonce fails always
- How can i see/log all requests coming from a registration form (not from the UI)?
- Write mysql credentials in plugin
- Site is continuously accessing by several IPs
- w3 total cache and post__not_in
- W3 Total Cache Can’t Really Detect Things
- Validating values using Settings API?
- SWF in wordpress post
- Unwanted Links and Spam WordPress Pages and Posts
- Problem with permissions in wp-content/plugins
- W3 Total Cache and IIS7 not doing much [closed]
- File permissions for wp-minify plugin
- What is the recommended way to be notified of security updates to my plugins? [closed]