If you type yourdomain/wp-content/plugins or themes,you can view all the plugins or themes you use.
The thing here is, everyone else also can view your plugins and themes and if you’re really concerned about your wordpress security, this shouldn’t be happening. Surprisingly many famous authors using wordpress haven’t bothered about this issue. If you know any author who use wordpress and is famous, you might want to find out his secrets for success.
Find out what plugins he uses today before he comes across this issue.
To disable the directories from being viewed in your blog you simply have to place a .htaccess file in the concerned directory.
The directions to be given in the .htaccess file can be according to your requirement.
If you wish to restrict your directories from being listed, you may give the instruction “Options -Indexes”, without quotes.
If you wish to just ignore all files from being listed, you may give the instruction “IndexIgnore *”, without quotes again.
If you want only particular files like .gif or .jpg to be restricted from being displayed, you may use IndexIgnore *.gif *.jpg accordingly.
Remember that this directive affects the folder that .htaccess file is placed in and also all folders below it.
To make a .htaccess file open any text editor like notepad and type the appropriate directive (instruction) and save the file with file name as .htaccess.
Notepad may append a .txt extension to the .htaccess and be sure to remove that extension.
So finally your .htaccess file looks something like this.
# BEGIN WordPress
IndexIgnore *
# END WordPress
Now transfer this file to your plugins folder or themes folder using FTP and also ensure that the file has a CHMOD of 644, else there might be little use of making this change.
Visitors who read this article also read:
- Checklist after every WordPress upgradeWith WordPress, you’re almost sure that there will be a new version available at least every 2 months (averaging total...
- Make php and css files writable from within wordpressIf your using wordpress machine for your website or blog,you may sometimes be required to make certain changes or add...
- Warning: Cannot modify header information – headers already sent by output started atThe complete header error will actually look something like this : Warning: Cannot modify header information – headers already sent...
- xml-sitemap error, make sure the file exists and is writableIf you got the above message when trying to implement the XML sitemap, then you have the solution here. I’m...
- Using WP auto upgrade for a fantastico installIf you are a person like me who didn’t new any thing about Data Bases and hence installed WordPress using...
- Fatal error:call to undefined function wp_get_current_user(); in line 920You probably might have got the above error and hence are here.Ok lets see what to do now. I uploaded...
{ 2 comments… read them below or add one }
Therz aactually another way of implementing this,in which the resultant page says,you do not have enough permissions to view the page.
Do you have any idea abt that?
ohhh..Thanx for the article mann…I really looked into forums,communities but couldn’t really find the solution.Tried this once before but screwed up my blog but after seeing your article it was perfect and I realized my earlier mistake