From 6f8f88de9f29df42db7b528fda55321ce6fc35ce Mon Sep 17 00:00:00 2001 From: "Mitchell D. Miller" Date: Sun, 29 May 2022 23:48:24 -0400 Subject: [PATCH 1/2] Block WP Search Plugin blocks WordPress search requests. Redirect to 404. --- .gitignore | 32 ++++++++------------ BlockWpSearch.php | 75 +++++++++++++++++++++++++++++++++++++++++++++++ README.md | 56 +++++++++++++++++++++++++++++++++-- readme.txt | 67 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 208 insertions(+), 22 deletions(-) create mode 100755 BlockWpSearch.php mode change 100644 => 100755 README.md create mode 100755 readme.txt diff --git a/.gitignore b/.gitignore index a32768a..7919f9d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,23 +1,15 @@ -# ignore everything in the root except the "wp-content" directory. -!wp-content/ +# ignore Eclipse +.settings/ +.buildpath +.project -# ignore everything in the "wp-content" directory, except: -# "mu-plugins", "plugins", "themes" directory -wp-content/* -!wp-content/mu-plugins/ -!wp-content/plugins/ -!wp-content/themes/ +# ignore Vim +*.swp -# ignore these plugins -wp-content/plugins/hello.php +# ignore Mac +.DS_Store +._* -# ignore specific themes -wp-content/themes/twenty*/ - -# ignore node dependency directories -node_modules/ - -# ignore log files and databases -*.log -*.sql -*.sqlite +# ignore Bash, release +*.sh +*.zip diff --git a/BlockWpSearch.php b/BlockWpSearch.php new file mode 100755 index 0000000..8bea00b --- /dev/null +++ b/BlockWpSearch.php @@ -0,0 +1,75 @@ +Block WP Search is the easiest way to block all search requests to your WordPress site. + +WordPress search is not always helpful: especially for small sites. +Use Block WordPress Search plugin to redirect search requests. + + +Features +----------- +* Redirects search requests to `/not_found/` + +Installation +----------- + +__Automated__ +* Install [GitHub Updater](https://github.com/afragen/github-updater/releases/latest) plugin to install Quick Mail from Github. +* See [GitHub Updater Wiki](https://github.com/afragen/github-updater/wiki) for additional information. + +__Manual__ +1. Download the plugin and unpack in your `/wp-content/plugins` directory. +2. Activate the plugin through the WordPress _Plugins_ menu. + +__WP-CLI__ +* How to install and activate the latest version of Quick Mail with [WP-CLI](https://wp-cli.org/) : + + `wp plugin install https://github.com/mitchelldmiller/block-wp-search/archive/main.zip --activate` + +Configuration +----------- +* No options. + +Updates +----------- +* Install [GitHub Updater](https://github.com/afragen/github-updater/releases/latest) plugin to update Quick Mail from Github. + +Translators / Translations +----------- +* Nothing to translate. + +Privacy +----------- +* Increases privacy. Stops random search requests. + +__License__ +Block WP Search is licensed under the MIT License. +Encourage future development with a [donation](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4AAGBFXRAPFJY). + diff --git a/readme.txt b/readme.txt new file mode 100755 index 0000000..1dd3441 --- /dev/null +++ b/readme.txt @@ -0,0 +1,67 @@ +=== Quick Mail === +Contributors: brainiac +Tags: search +Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4AAGBFXRAPFJY +Requires at least: 2.3 +Tested up to: 6.0.0 +Requires PHP: 5.3 +Stable tag: 1.00 +License: MIT +License URI: https://github.com/mitchelldmiller/block-wp-search/blob/main/LICENSE + +Block search requests to your WordPress site. + +== Description == +>Block WP Searches is the easiest way to block all search requests to your WordPress site. + +WordPress search is not always helpful: especially for small sites. +Use Block WordPress Search plugin to redirect search requests. + +== Features == + +* Redirects search requests to `/not_found/` + += Learn More = + +* [Follow development on Github](https://github.com/mitchelldmiller/block-wp-search/). + +== Installation == += Automated = +* Install [GitHub Updater](https://github.com/afragen/github-updater/releases/latest) plugin to install Quick Mail from Github. +* See [GitHub Updater Wiki](https://github.com/afragen/github-updater/wiki) for additional information. + += Manual = +1. Download the plugin and unpack in your `/wp-content/plugins` directory. +2. Activate the plugin through the WordPress _Plugins_ menu. + += WP-CLI +* How to install and activate the latest version of Quick Mail with [WP-CLI](https://wp-cli.org/) : + + `wp plugin install https://github.com/mitchelldmiller/block-wp-search/archive/main.zip --activate` + +== Configuration == +* No options. + +== Translators / Translations == +* Nothing to translate. + +== Frequently Asked Questions == +* None. + += Privacy = +* Increases privacy. Stops random search requests. + +== Changelog == + += 1.00 = +* First public release. +* Tested with WordPress 6.0.0 + + +== Upgrade Notice == + += 1.00 = +* First public release. + +== License == +Block Wp Search is free for personal or commercial use. Please support future development with a [donation](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4AAGBFXRAPFJY). From bc7d5fc097add23cc882eab39fc50e8cc96fb850 Mon Sep 17 00:00:00 2001 From: "Mitchell D. Miller" Date: Sun, 29 May 2022 23:53:13 -0400 Subject: [PATCH 2/2] README format Improved formatting in README. --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d81bd67..7b2834e 100755 --- a/README.md +++ b/README.md @@ -48,7 +48,8 @@ Privacy ----------- * Increases privacy. Stops random search requests. -__License__ +License +----------- Block WP Search is licensed under the MIT License. Encourage future development with a [donation](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4AAGBFXRAPFJY).