Skip to content

Commit

Permalink
Version 1.1.0 push
Browse files Browse the repository at this point in the history
  • Loading branch information
hejamartin committed Nov 20, 2023
1 parent 67ff690 commit 2f7d012
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions wordpress-plugin-stena-websolutions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
Plugin Name: Wordpress Utilities | Web Solutions
Description: Generic helper functions to adhere to our Wordpress sites.
Version: 0.1.0
Version: 1.1.0
Author: Web Solutions
*/

Expand All @@ -18,10 +18,29 @@ public static function init()
{
AntiSpamBot::init();

/*
Does: removes the concat of scripts
Why: vulnerable for DOS-attacks. This also requires denying with htaccess
Read more: https://nvd.nist.gov/vuln/detail/CVE-2018-6389
*/
define('CONCATENATE_SCRIPTS', false);

/*
Does: ManageWP needs this for php8> to be able to take backups etc
Why: Backup did not work, and ticket make with ManageWP gave us this solution
*/
define('FS_METHOD', 'direct');

/*
Does: ManageWP needs this for php8> to be able to take backups etc
Why: Backup did not work, and ticket make with ManageWP gave us this solution
*/
define('WP_MEMORY_LIMIT', getenv('PHP_MEMORY_LIMIT') ?: '512M');

/*
Does: disable xmlrpc
Why: vulnerable to hack attacks, like DDoS and brute force attacks. The PHP file also tends to use up a lot of your server resources, making your website super slow.
Readmore: https://www.scottbrownconsulting.com/2020/03/two-ways-to-fully-disable-wordpress-xml-rpc/
Read more: https://www.scottbrownconsulting.com/2020/03/two-ways-to-fully-disable-wordpress-xml-rpc/
*/
function remove_xmlrpc_methods($methods)
{
Expand Down

0 comments on commit 2f7d012

Please sign in to comment.