- https://github.com/johntdyer/ftptail
- https://github.com/wp-plugins/gauntlet-security
- https://github.com/interconnectit/Search-Replace-DB
- https://github.com/barracudanetworks/ArchiveStream-php
- https://github.com/szepeviktor/Tripwire https://github.com/lasergoat/Tripwire https://github.com/lucanos/Tripwire
- https://github.com/szepeviktor/Unified-Post-Types
- https://github.com/chipbennett/update-control
- https://github.com/lesterchan/wp-serverinfo
- https://github.com/Yoast/yoast-debug
http://ninjafirewall.com/pro/overview.php
- See: "Recommended plugins" in szepeviktor/wordpress-plugin-construction
- Error log setup: shared-hosting-aid/enable-logging.php
- Error log watch:
error-log-monitor
- Outgoing HTTP traffic monitoring:
snitch
- Email traffic checking: ${D}/monitoring/cse/
- Cron job: shared-hosting-aid/wp-cron-http.sh
- WordPress database cleanup:
wp-sweep
- Integrity:
exploit-scanner
- Security checklist:
gauntlet-security
SSLOFF="set ftp:ssl-allow off"
# lftp -e "${SSLOFF}; cd" -u 'FTP-USER,FTP_PASS' FTP_HOST.
lftp -e "cd" -u 'FTP-USER,FTP_PASS' FTP_HOST.
Turn off Maxer SiteProtection!
#!/usr/bin/lftp -f
#open ftp://DOMAIN.TLD
#cd website/html/
lcd tmp/
mkdir sr; cd sr
!wget -nv -N https://github.com/interconnectit/Search-Replace-DB/raw/master/index.php
!wget -nv -N https://github.com/interconnectit/Search-Replace-DB/raw/master/srdb.class.php
!ls -ltr | tail
put index.php; put srdb.class.php
# rm index.php srdb.class.php; cd ../; rmdir sr/
https://github.com/szepeviktor/hosting-check
- keep-alive
- mime-type
- content-compression
- content-cache
https://github.com/h5bp/html5-boilerplate/blob/master/dist/.htaccess
See: shared-hosting-aid/php-vars.php
wget -nv https://github.com/szepeviktor/wordpress-plugin-construction/raw/master/shared-hosting-aid/php-vars.php
See: shared-hosting-aid/php-mail-sender.php
wget -nv https://github.com/szepeviktor/wordpress-plugin-construction/raw/master/shared-hosting-aid/php-mail-sender.php
- Set sender or forward as necessary.
- Set usual addresses: info@, postmaster@, abuse@
- Set up your account: webmaster@DOMAIN.TLD
- sucuri-scanner plugin + ustom-sucuri plugin
- gauntlet-security plugin
wget -nv https://github.com/szepeviktor/wordpress-plugin-construction/raw/master/mu-protect-plugins/protect-plugins.php
See wp-config.php
- Sucuri plugin
- https://api.wordpress.org/secret-key/1.1/salt/
wget -nv https://github.com/szepeviktor/wordpress-fail2ban/raw/master/block-bad-requests/wp-fail2ban-bad-request-instant.inc.php
- .htaccess
- *htaccess*
- .user.ini
- index.html
- index.php
- robots.txt
- sitemap.xml
- sitemap.xml.gz
- crossdomain.xml
- labels.rdf
- apple-app-site-association (content:
{}
)
https://github.com/h5bp/mobile-boilerplate/blob/master/index.html
-
favicon.ico
-
apple-touch-icon.png
-
apple-touch-icon-precomposed.png
-
apple-touch-icon-120x120.png
-
apple-touch-icon-120x120-precomposed.png
-
apple-touch-icon-152x152.png
-
apple-touch-icon-152x152-precomposed.png
-
apple-touch-icon*.png ...
-
browserconfig.xml
Files for robots should not be indexed.
.htaccess
# Don't index files for robots
<FilesMatch "^(robots\.txt|sitemap\.xml|sitemap\.xml\.gz)$">
Header append X-Robots-Tag "noindex"
</FilesMatch>
wget -nv https://github.com/sektioneins/pcc/raw/master/phpconfigcheck.php
Enable access in .htaccess
.
SetEnv PCC_ALLOW_IP 1.2.3.4
git clone --recursive https://github.com/szepeviktor/Tripwire.git
cd Tripwire/
cp tripwire_config.sample.ini tripwire_config.ini
editor tripwire_config.ini
Tripwire access protection
.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REMOTE_ADDR} !=<MANAGEMENT-SERVER-IP-ADDRESS> [OR]
RewriteCond %{REQUEST_URI} !=/<SECRET_DIR>/tripwire.php
RewriteRule ^ - [F]
</IfModule>
Deny all traffic .htaccess
.
# Apache < 2.3
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
Satisfy All
</IfModule>
# Apache ≥ 2.3
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
- ALTER table engine
- @TODO
Go to the Plugins page and execute:
// List plugin names
jQuery('#wpbody .plugins .plugin-title strong').each(function (){console.log(jQuery(this).text());});
// List plugin slugs (from "Deactivate" links)
var plungins=[].slice.call(document.querySelectorAll('#wpbody .plugins .plugin-title .deactivate a'));
plungins.forEach(function(p){console.log(decodeURIComponent(p.search.split('&')[1].split('=')[1]));});