Hide and protect your WP plug-ins and themes folder

Thanks for visiting! If you're new here, you may want to subscribe to my Rss Feed. This blog posts regular Internet news, updates for apps, security, ideas, hacks, quick fixes and everything about hi-tech. Go ahead, Subscribe to our Feed or Register for Free!
You are in a Wordpress site and want to know what plug-ins is using that site or what themes? This is very simply do to, just browse websitename.ltd/wp-content/plugins and you will see a similar screen-shot as a made above the post. The same for themes /wp-content/plugins and wala! All the files and all the themes name.
But if you are a webmaster and you want to hide this or "protect"?! In two simply ways I want to show you how to add some hacks to your Wordpress plug-ins and theme folder.
First Method index file: For the first method you have to create a html blank page called index.html

Open your FTP program and login to your host/server. Browse to yourbog/wp-content/plugins and upload the file that your create index.html. And the same for the other folders where an index file is missing.
tips:
If you prefer you can add a redirect code in you index file:
<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.yourdomain.com/">
so every time that someone is trying to browse your web folders will be redirect to blog homepage
Second method .htaccess: Open a text editor like notepad++ or crimson editor and create a file called .htaccess
Type the following code replacing your domain:
Redirect 301 / http://www.example.com/
Upload the file where index file is missing in your host files.
That’s all! Hope you enjoy this short guide. Comment what your think or if need any help!














This blog is about Hacks, Tips and Free Resourses for the Word Wide Web. Comments are welcome! Feel free to
lirent.net
3 Comments on “Hide and protect your WP plug-ins and themes folder”
which method do you think would make my plugins more secure? I haven’t done much with htaccess but I would if it is necessary or better.
if you find .htaccess complicated just follow the first method with an index.html file inside your plugin folder.
htaccess is better way, however not all hosting providers will support it, the easiest is to copy index.php from wp-content “” and paste to themes and plugins folder. The above code is to show you what is in that index.php page.
Mike