WordPress Directory Listing Risk
A large number of WordPress directories do not have an index file. This is particularly dangerous in case of the plugins directory. If your server allows directory listings, a potential attacker may see which plugins you have installed. Most plugins have security vulnerabilities. One way of fixing this is by adding the following line to the .htaccess file in the Web server’s root (htdocs):
Options -Indexes
Another approach is to put an index file in each folder on your site that does not already have one. You can have this index file redirect the visitor back to the main page of your site. Create the /wp-content/index.html with 644 permissions and the following content:
Now you can create a link in all directories under wp-content pointing to this index file. Thus, if you need to change this file in the future, you only need to modify one file. The script below will help you create the links from the wp-content directory:
#!/bin/ksh cd ${HOME}/public_html/wp-content if [ ! -f index.html ] then echo '' > index.html chmod 644 index.html fi find . -type d | while read dir do if [ `ls "${dir}" | egrep -c "index.html|index.htm"` -eq 0 ] then ln -s ${HOME}/public_html/wp-content/index.html "${dir}"/index.html fi done
Say building a folder that has my index file, my php scripts, the works.
Do I need to install a special service so people can connect to my PC?
Please help me to describe why the B+ tree structure is batter for the implementation of an indexed sequential file ?
My wordpress blog has been up for like a month.
Any SEO web pros out there have any ideas on how to get a baseball blog up on google? I created my wordpress blog through my hostgator server account, and its on my domains index file.
Can anyone help me figure this out? Is there a simple way just by looking at the index file?