Tiny Tips to Secure your Plugins


Sponsored Links




WordPress Themes and WordPress Plugin is the most enhanced method that we can do easily and quickly. But for some reason there are hacker or BAD HABITS from netter, their tried to do something weird on our WordPress website.

Cheryl Cole - Beautiful Security on WordPress Plugins Files

Cheryl Cole - Beautiful Security on WordPress Plugins Files

On today tricks we’ll show you how to secure our plugins files using .htaccess. You only need to put on this code on your .htaccess

<Files ~ ".(js|css)$">
  order allow,deny
  allow from all
</Files>

After you put this code, you are done. But for prepare for worst condition, please Don’t forget to backup the file before edition!. This tricks will show you how to prevent direct access to plugin files.

Thanks for WP Recipes & Greg Winiarski

Subscribe to Full RSS Feed

RSS FeedIf you thing this article useful, please consider subscribing to our RSS Feed or e-mail updates and stay updated with us. You can also follow @WPTricksNet on twitter for latest updates.

About WP Tricks

We are WordPress Family, we collected and writed useful tips and tricks for you WordPress. We share it for you...

Related Tips and Trick from Local Data and on The Net


2 Responses to Tiny Tips to Secure your Plugins

  1. Pingback: Tweets that mention Tiny Tips to Secure your Plugins #tricks #htaccess #plugins #security -- Topsy.com

  2. David says:

    After viewing this snippet it didn’t make sense to me and then I went to WP Recipes and saw why it didn’t make sense.

    1. allow from all – doesn’t block anything.
    2. not sure why you would block all .css & .js files from the end user or how static .css & .js files can be harmful. I think what you would want to block is direct access to plugin .php files.

    I think Arne’s solution when placed in the plugins directory would be the best.

    Order Allow,Deny
    Deny from all
    Satisfy all

    Also, here is a good link for a .htaccess cheat-sheet I found through Google.
    http://www.thejackol.com/htaccess-cheatsheet/

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>