Skip to content

A command line that create index.php files with *Silence is golen!* comment in all directories to prevent WordPress project directories from listing.

Notifications You must be signed in to change notification settings

cloudstoneme/wp-auto-index-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wp-auto-index-php

A command line that create index.php files with Silence is golen! comment in all directories to prevent WordPress project directories from listing.

Installation

npm install -g wp-auto-index-php

Usages

cd /your-wp-project-directory
wp-auto-index-php

By default, it doesn't create new file if a index.php file is exists in a directory and doesn't create file in root directory, use -f or --force argument to force create new files, use -r or --root argument to also create file in root directory. For example:

wp-auto-index-php -f -r

About

A command line that create index.php files with *Silence is golen!* comment in all directories to prevent WordPress project directories from listing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •