Por si no lo sabias "serversignature" es un texto en los mensajes de error que indica la versión de Apache que usamos e incluso el email del administrador.
Esta es la recopilación de unos trucos y para asegurar WordPress desde .htaccess
-
# Desactivar la firma de servidor
-
ServerSignature Off
-
-
# Desactivar el listado de carpetas y archivos
-
Options All -Indexes
-
-
# Protegiendo el mismo fichero htaccess
-
<files .htaccess>
-
order allow,deny
-
deny from all
-
</files>
-
-
# Protegiendo htaccess de manera extrema
-
<files ~ "^.*.([Hh][Tt][Aa])">
-
order allow,deny
-
deny from all
-
satisfy all
-
</files>
-
-
# Protegiendo wp-admin por IP
-
AuthUserFile /dev/null
-
AuthGroupFile /dev/null
-
AuthName “Access Control”
-
AuthType Basic
-
order deny,allow
-
deny from all
-
# IP cuando estoy en casa
-
allow from xx.xxx.xxx.xx
-
# IP cuando estoy en el trabajo
-
allow from xx.xxx.xxx.xxx
-
allow from xxx.xxx.xxx.200
-
# IP de otro usuario con permisos
-
allow from xxx.xxx.x.xx
-
-
# Protegiendo el fichero wpconfig.php
-
<files wp-config.php>
-
order allow,deny
-
deny from all
-
</files>
-
-
# Protegiéndonos de los commentarios spam
-
<IfModule mod_rewrite.c>
-
RewriteEngine On
-
RewriteCond %{REQUEST_METHOD} POST
-
RewriteCond %{REQUEST_URI} .wp-comments-post.php*
-
RewriteCond %{HTTP_REFERER} !.*tusitio.com* [OR]
-
RewriteCond %{HTTP_USER_AGENT} ^$
-
RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]
-
</IfModule>
-
-
# Desactivando el hotlinking con un mensaje de aviso
-
<IfModule mod_rewrite.c>
-
RewriteEngine On
-
RewriteCond %{HTTP_REFERER} !^$
-
RewriteCond %{HTTP_REFERER} !^http://www.xyz.com/.*$ [NC]
-
RewriteCond %{HTTP_REFERER} !^http://www.xyz.com$ [NC]
-
RewriteCond %{HTTP_REFERER} !^http://xyz.com/.*$ [NC]
-
RewriteCond %{HTTP_REFERER} !^http://xyz.com$ [NC]
-
RewriteCond %{HTTP_REFERER} !google. [NC]
-
RewriteCond %{HTTP_REFERER} !msn. [NC]
-
RewriteCond %{HTTP_REFERER} !live. [NC]
-
RewriteCond %{HTTP_REFERER} !yahoo. [NC]
-
RewriteCond %{HTTP_REFERER} !gravatar. [NC]
-
RewriteCond %{HTTP_REFERER} !search?q=cache [NC]
-
RewriteRule .*.(jpg|jpeg|gif|png|bmp)$ - [F,NC]
-
</IfModule>
-
-
# Baneo por IP
-
<Limit GET POST>
-
order allow,deny
-
deny from xx.xx.xxx.xxx /aquí pones la IP a banear
-
allow from all
-
</Limit>
-
-
# Baneo por dominio
-
RewriteEngine On
-
Options +FollowSymlinks
-
RewriteCond %{HTTP_REFERER} dominio_a_banear.com [NC]
-
RewriteRule .* - [F]
-
-
# Evitar splogs
-
RewriteEngine On
-
RewriteCond %{REQUEST_METHOD} POST
-
RewriteCond %{REQUEST_URI} .wp-signup.php*
-
RewriteCond %{HTTP_REFERER} !.*tusitio.com.* [OR]
-
RewriteCond %{HTTP_USER_AGENT} ^$
-
RewriteRule (.*) http://disney.com/ [R=301,L]
Si quieres especificar un poco más los robots de spam, puedes bloquear directamente las llamadas de estos a través de .htaccess
-
#Bloquear spambots
-
RewriteCond %{HTTP:User-Agent} (?:Alexibot|Art-Online|asterias|BackDoorbot|Black.Hole|BlackWidow|BlowFish|botALot|BuiltbotTough|Bullseye|BunnySlippers|Cegbfeieh|Cheesebot|CherryPicker|ChinaClaw|CopyRightCheck|cosmos|Crescent|Custo|DISCo|DittoSpyder|DownloadsDemon|\eCatch|EirGrabber|EmailCollector|EmailSiphon|EmailWolf|EroCrawler|ExpresssWebPictures|ExtractorPro|EyeNetIE|FlashGet|Foobot|FrontPage|GetRight|GetWeb!|Go-Ahead-Got-It|Go!Zilla|GrabNet|Grafula|Harvest|hloader|HMView|httplib|HTTrack|humanlinks|ImagesStripper|ImagesSucker|IndysLibrary|InfonaviRobot|InterGET|Internet\sNinja|Jennybot|JetCar|JOC\sWeb\sSpider|Kenjin.Spider|Keyword.Density|larbin|LeechFTP|Lexibot|libWeb/clsHTTP|LinkextractorPro|LinkScan/8.1a.Unix|LinkWalker|lwptrivial|Mass\sDownloader|Mata.Hari|Microsoft.URL|MIDown\stool|MIIxpc|Mister.PiX|Mister\sPiX|moget|Mozilla/3.Mozilla/2.01|Mozilla.*NEWT|Navroad|NearSite|NetAnts|NetMechanic|NetSpider|Net\sVampire|\NetZIP|NICErsPRO|NPbot|Octopus|Offline.Explorer|Offline\sExplorer|Offline\sNavigator|Openfind|Pagerabber|Papa\sFoto|pavuk|pcBrowser|Program\sShareware\s1|ProPowerbot/2.14|ProWebWalker|ProWebWalker|\psbot/0.1|QueryN.Metasearch|ReGet|RepoMonkey|RMA|SiteSnagger|SlySearch|SmartDownload|Spankbot|spanner|Superbot|SuperHTTP|Surfbot|suzuran|Szukacz/1.4|tAkeOut|Teleport|Teleport\sPro|Telesoft|The.Intraformant|TheNomad|TightTwatbot|Titan|toCrawl/UrlDispatcher|toCrawl/UrlDispatcher|True_Robot|turingos|Turnitinbot/1.5|URLy.Warning|VCI|VoidEYE|WebAuto|WebBandit|WebCopier|WebEMailExtrac.*|WebEnhancer|WebFetch|WebGo\sIS|Web.Image.Collector|Web\sImage\sCollector|WebLeacher|WebmasterWorldForumbot|WebReaper|WebSauger|Website\seXtractor|Website.Quester|Website\sQuester|Webster.Pro|WebStripper|Web\sSucker|WebWhacker|WebZip|Wget|Widow|[Ww]eb[Bb]andit|WWW-Collector-E|WWWOFFLE|Xaldon\sWebSpider|Xenu’s|Zeus) [NC]
-
RewriteRule .? – [F]
Revisa las lineas antes de hacer copy/paste pues debes reemplazar las lineas de ejemplo como : tusitio.com