Passaggi da compiere per nascondere il fatto che un sito utilizza WordPress?
-
-
Perché vorrestinascondere che stai usando Wordpress?Why would you want to hide that you're using Wordpress?
- 7
- 2010-09-10
- Wadih M.
-
@ Wadih: Perchémi è stato detto difarlo@Wadih: Because I was told to
- 16
- 2010-09-11
- Casebash
-
Questa è sicurezzaper oscurità.Se lo vogliono davvero,qualcunopuò correlareil comportamento dellegenerazioni dipaginee dimostrare chefunziona su unmotore wordpress.That's security by obscurity. If they really want, someone can correlate the behavior of page generations and prove that it's running on a wordpress engine.
- 5
- 2010-09-20
- Wadih M.
-
* @ Wadih M. * - * "Securityby Obscurity" *non è l'unica ragioneper questo.Uno deimiei clienti vuole lo stessoma lo vuoleperché vuoleesserein grado di venderei propri serviziin hosting a clienti cheesiterebbero apagare un dollaro sepensassero * "Diamine,stanno solo usando WordPress." * Quindi è unmarchio/gioco dipercezione,non di sicurezza,almenoperilmio cliente.*@Wadih M.* - *"Security by Obscurity"* is not the only reason for this. One of my clients wants the same but they want it because they want to be able to sell their hosted services to clients who would balk it paying top dollar if they thought *"Heck, they are just using WordPress."* So it's a branding/perception game, not a security one, at least for my client.
- 29
- 2010-10-24
- MikeSchinkel
-
Sei anni su cosìtanti siti utilizzano WordPress,nessunoti crederà comunque.;-)Six years on so many sites are using WordPress, no-one is going to believe you anyway. ;-)
- 2
- 2016-08-22
- cjbj
-
12 risposta
- voti
-
- 2010-09-08
Ipiùgrandi omaggi WordPress sonotrai tag
<head> </head>
.Esempio di output di contenutoprincipale di WordPress da The Twentyten Themee come rimuoverlo:
<link rel="profile" href="http://gmpg.org/xfn/11" />
Rimuovi direttamente da header.php
<link rel="stylesheet" type="text/css" media="all" href="http://example.com/wp-content/themes/twentyten/style.css" />
Nascondi WordPress chiamandoiltuofoglio di stile da un'altraposizionee cambia la directory wp-content. WordPress richiede cheiltuotemaincluda alcuneinformazioni dibasenellaparte superiore di style.css (style.css deveesserenella directoryprincipale deitemi). Dovrai creare un CSS alternativoe chiamarlo dallatuatesta. WordPressnon richiede l'utilizzo ditemi style.css,richiede solo che sitrovinella directory deitemi.
Rimuovi direttamente da header.php
<link rel="alternate" type="application/rss+xml" title="Example Blog » Feed" href="http://example.com/feed/" /> <link rel="alternate" type="application/rss+xml" title="Example Blog » Comments Feed" href="http://example.com/comments/feed/" /> <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://example.com/xmlrpc.php?rsd" /> <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://example.com/wp-includes/wlwmanifest.xml" /> <link rel='index' title='Example Blog' href='http://example.com/' /> <meta name="generator" content="WordPress 3.1-alpha" />
Per rimuovere questi collegamentiextrapuoi aggiungere unfiltro afunctions.php
// remove junk from head remove_action('wp_head', 'rsd_link'); remove_action('wp_head', 'wp_generator'); remove_action('wp_head', 'feed_links', 2); remove_action('wp_head', 'index_rel_link'); remove_action('wp_head', 'wlwmanifest_link'); remove_action('wp_head', 'feed_links_extra', 3); remove_action('wp_head', 'start_post_rel_link', 10, 0); remove_action('wp_head', 'parent_post_rel_link', 10, 0); remove_action('wp_head', 'adjacent_posts_rel_link', 10, 0);
Puoi cambiare la directory deituoiplugine latua directory wp-contentneltuofile wp-config.phpmapotresti avere deiproblemi seiltuotema o qualsiasipluginnon usailmetodo correttoper chiamarei file.
define( 'WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/new-wp-content' );
Imposta WP_CONTENT_URL sull'URI completo di questa directory (senzabarrafinale),ades.
define( 'WP_CONTENT_URL', 'http://example/new-wp-content');
Facoltativo Imposta WP_PLUGIN_DIR sulpercorso locale completo di questa directory (nessunabarrafinale),adesempio
define( 'WP_PLUGIN_DIR', $_SERVER['DOCUMENT_ROOT'] . '/new-wp-content/new-plugins' );
Imposta WP_PLUGIN_URL sull'URI completo di questa directory (senzabarrafinale),ades.
define( 'WP_PLUGIN_URL', 'http://example/new-wp-content/new-plugins');
<"PLUGINS"
Tienipresente che alcuniplugin come Akismat,Allin One SEO,W3-Total-Cache,Super Cachee molti altri aggiungono commenti all'output HTML. Lamaggiorparte sonofacili damodificareper rimuoverei commenti,ma lemodifiche verranno sovrascritte ogni volta chei plugin vengono aggiornati.
<"wp-includes"
La directory wp-includes contienejquerye vari altrifilejs chei temi oi plugin chiameranno usando wp_enqueue_script (). Per cambiarlo dovrai annullare la registrazione degli script WordPresspredefinitie registrare lanuovaposizione. Aggiungi afunctions.php:
function my_init() { if (!is_admin()) { // comment out the next two lines to load the local copy of jQuery wp_deregister_script('jquery'); wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js', false, '1.3.2'); wp_enqueue_script('jquery'); } } add_action('init', 'my_init');
Questo dovràesserefatto con ogni script utilizzato daltuotema oplugin.
The biggest WordPress giveaways are between the
<head> </head>
tags.Example WordPress head content output by The Twentyten Theme and how to remove:
<link rel="profile" href="http://gmpg.org/xfn/11" />
Remove directly from header.php
<link rel="stylesheet" type="text/css" media="all" href="http://example.com/wp-content/themes/twentyten/style.css" />
Hide WordPress by calling your stylesheet from another location and change the wp-content directory. WordPress requires your theme to include some basic information at the top of style.css (style.css must be in the themes root directory). You will need to create an alternate CSS and call it from your head. WordPress does not require you to use the themes style.css it only requires it to be in the themes directory.
Remove directly from header.php
<link rel="alternate" type="application/rss+xml" title="Example Blog » Feed" href="http://example.com/feed/" /> <link rel="alternate" type="application/rss+xml" title="Example Blog » Comments Feed" href="http://example.com/comments/feed/" /> <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://example.com/xmlrpc.php?rsd" /> <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://example.com/wp-includes/wlwmanifest.xml" /> <link rel='index' title='Example Blog' href='http://example.com/' /> <meta name="generator" content="WordPress 3.1-alpha" />
To remove these extra links you can add a filter to functions.php
// remove junk from head remove_action('wp_head', 'rsd_link'); remove_action('wp_head', 'wp_generator'); remove_action('wp_head', 'feed_links', 2); remove_action('wp_head', 'index_rel_link'); remove_action('wp_head', 'wlwmanifest_link'); remove_action('wp_head', 'feed_links_extra', 3); remove_action('wp_head', 'start_post_rel_link', 10, 0); remove_action('wp_head', 'parent_post_rel_link', 10, 0); remove_action('wp_head', 'adjacent_posts_rel_link', 10, 0);
You can change your plugin directory and your wp-content directory in your wp-config.php file but you could have some problems if your theme or any plugins do not use the proper method to call files.
define( 'WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/new-wp-content' );
Set WP_CONTENT_URL to the full URI of this directory (no trailing slash), e.g.
define( 'WP_CONTENT_URL', 'http://example/new-wp-content');
Optional Set WP_PLUGIN_DIR to the full local path of this directory (no trailing slash), e.g.
define( 'WP_PLUGIN_DIR', $_SERVER['DOCUMENT_ROOT'] . '/new-wp-content/new-plugins' );
Set WP_PLUGIN_URL to the full URI of this directory (no trailing slash), e.g.
define( 'WP_PLUGIN_URL', 'http://example/new-wp-content/new-plugins');
PLUGINS
Be aware that some plugins like Akismat, All in One SEO, W3-Total-Cache, Super Cache, and many others add comments to the HTML output. Most are easy to modify to remove the comments but your changes will be overwritten anytime the plugins get updated.
wp-includes
The wp-includes directory holds jquery and various other js files that themes or plugins will call using wp_enqueue_script(). To change this you will need to deregister the default WordPress scripts and register the new location. Add to functions.php:
function my_init() { if (!is_admin()) { // comment out the next two lines to load the local copy of jQuery wp_deregister_script('jquery'); wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js', false, '1.3.2'); wp_enqueue_script('jquery'); } } add_action('init', 'my_init');
This will need to be done with each script used by your theme or plugins.
-
* Chris_O *: Ottima risposta!Probabilmente dovresti aggiungere anche che se usanoplugin otemi molti di questi sonofacilmenteidentificabili;cioè se qualcuno sta usandoilplugin akismet oil seo all-in-one,allora è ancora un regalo abbastanzamorto da qualcuno che sa cosa stanno cercando.*Chris_O*: Great answer! You should probably add too that if they use plugins or themes many of these are easily identified; i.e. if someone is using the akismet plugin or all-in-one-seo then it's still a pretty dead giveaway by someone who knows what they are look for.
- 0
- 2010-09-08
- MikeSchinkel
-
@MikeSchinkel Vero,ma allo stessotempo lo sono anche wp-includese wp-admin;con l'eccezione chenonpuoimodificarenessuno di questi,nénasconderli senza limitare lafunzionalità del sito.@MikeSchinkel True, but at the same time, so are wp-includes and wp-admin; with the exception that you can't change either of those, nor can you hide them without limiting the functionality of the site.
- 0
- 2010-09-08
- John P Bloch
-
* @ John P Bloch: * Sicuramente,tuttavianon avrei detto *ma *,avrei detto *e *.:)*@John P Bloch:* Definitely, however I wouldn't have said *but*, I would have said *and*. :)
- 0
- 2010-09-09
- MikeSchinkel
-
* @ MikeSchinkel *:per wp-admine wp-includespuoifare alcune cosetramiteil controllo degli accessi apache,in modo da rendere queipercorsiinesistentiper altri utenti quindiper l'amministratore,ades.portando a uno standard 404.*@MikeSchinkel*: for wp-admin and wp-includes you can do some stuff via apache access control, so to make those paths inexistent for other users then the admin, e.g. leading to a standard 404.
- 3
- 2010-09-09
- hakre
-
* @ Chris_O: * Checkout `register_theme_directory ()`,penso siafantasticonascondere la directory deltema dalla directory "wp-content".*@Chris_O:* Checkout `register_theme_directory()`, I think it's great to hide the theme dir out of the "wp-content" directory.
- 0
- 2010-09-10
- hakre
-
@Chris_O Sono specificiper WordPress?@Chris_O Are these specific to WordPress?
- 0
- 2010-09-29
- Ashley G
-
@ Chris_O loproverò,manon lo capisco: "Nascondi WordPress chiamandoiltuofoglio di stile da un'altraposizione ..." Ero confuso su come chiamare. Sononuovo su wordpresse non so comefare. Potresti dirmiil codice dainserire.@Chris_O I will try it .But I don't understand this : "Hide WordPress by calling your stylesheet from another location..." I was confused how to call .I am newer to wordpress and don't know how to do .Could you please tell me the code to enter .
- 0
- 2010-11-17
- user391
-
Anche questo ... "define ('WP_CONTENT_URL','http://example/new-wp-content'); ..." Devo copiare (o spostare?) Tuttii filee le cartellein wp_contentnellanuova cartella? Grazie !Also this one ..."define( 'WP_CONTENT_URL', 'http://example/new-wp-content');..." Am I need to copy(or move?) the entire files and folders in wp_content to the new folder? Thanks !
- 0
- 2010-11-17
- user391
-
Quelle `define ()` dovrebbero avere `ABSPATH` ...Those `define()`s should have the `ABSPATH`...
- 0
- 2012-12-14
- kaiser
-
@hakre: Questa è davvero una soluzionemoltopiù semplice.Come sipuòfare almeglio?Puoi aggiungere unanuova risposta a questo?Grazie@hakre: That's a much easier solution indeed. How best can one go about that? Can you add a new answer on that? Thanks
- 0
- 2013-01-23
- Chibueze Opata
-
belle lezioniin wordpress :)nice lessons in wordpress :)
- 0
- 2014-10-20
- Balas
-
- 2010-09-13
Unbit che spesso vieneperso:elimina
readme.html
nella root di WordPress.Non soloidentifica l'installazione come WPma ha anche una versioneprecisa.Enon dimenticare di ripeteregli aggiornamenti.Domanda correlata: Impedisci l'accesso oelimina automaticamente readme.html,license.txt,wp-config-sample.php
One bit that is often missed - delete
readme.html
in WordPress root. It not only identifies installation as WP but also has precise version. And don't forget to repeat on updates.Related Question: Prevent access or auto-delete readme.html, license.txt, wp-config-sample.php
-
Buonpunto -inoltre,puoi usareiltuo .htaccesspernegare sempre l'accesso a readme.html,cosìnon devipreoccuparti di rimuoverlo dinuovo.Good point - also, can use your .htaccess to always deny access to readme.html so you don't have to worry about removing it again.
- 5
- 2015-04-28
- Tim Malone
-
... vedi anche http://wordpress.stackexchange.com/a/201805/13561...also see http://wordpress.stackexchange.com/a/201805/13561
- 0
- 2015-09-06
- Frank Nocke
-
- 2015-08-12
L'unica risposta valida: IMPOSSIBILE
Cosìtante risposte con voti alti ... è ora dimettere le cosein chiaro. Bene,la verità è che èpraticamenteimpossibilee anche se lo è,la vita èprobabilmentetroppobrevepermetterci uno sforzo. Qualsiasi risposta chepromuovamisurepernascondereil WP è solo unaperdita ditempoe tifuorvieràpensando che stainascondendoiltuo WP (è assurdo).
1) Ilproblemanon sonogli ovvi URL
wp-*
,ilmeta delgeneratoreecc. Iproblemi difficili sono coni modelli associati a wordpress che un sistema sviluppatoin casanon sipreoccuperà diimplementare comepagine dell'autore,pagine dell'anno,delmese,delgiorno,usap=nnn comeparametro valido,hai unmoduloperi commenti con la classe dei commenti di wordpress,la strutturaei nomi dei link,e poi c'è l'autopromozione deiplugin di cachinge di yoast SEOe probabilmentemolti altriplugin che vedi solo quando controlli l'HTML stesso.2) Esistono altriinnumerevolimetodi chemostrano l'esistenza di WP (enonpuoibatterlo):
-
Anche l'intestazione della rispostaphp (comenotato da Dan Gayle sotto lamia risposta) restituisce l'intestazione WP specifica.
-
Chiunquepuòinterrogare uno qualsiasi dei decine difile .php radice:
site.com/wp-cron.php
osite.com/xmlrpc.php
( oecc.,chenonpuoinascondere)e la risposta dell'intestazione sarà200
invece di404 not found
. -
chiunquepuò controllare se haendpointjsonper ottenere una risposta specificaper WP.
-
All'interno dellapagina HTML,moltifile
.css
o.js
hannofrasi specifiche,che si riferiscono chiaramente a WP. -
All'interno dellapagina HTML,èfaciletrovareglielementi/classi css,come
<div class="entry-content post-14"...
oecc (che è un suggerimento diretto che la struttura utilizzata è di WP) -
All'interno dellapagina HTML,vedraifacilmente la cartella
uploads
,o anche se la rinomini con hardcoding,la dataparte comeuploads/2018/05/image.jpg
(o ancheimage-315x225.jpg
)mostra latipica struttura WP. -
poichémolti siti ora sono creati utilizzando MultiSite,utilizza adesempio
/site/2
nei collegamenti ... -
ping a qualsiasifile readme diplug-in/temi (che contienetutti),come
plugin-name/readme.txt
,che restituisce lo stato200
. -
e molte,molte,molte altre cose chetu (o anchei professionisti)non saraiin grado dinasconderee tifaranno soloperdere legiornate!
<"conclusione"
E anche seti sforzi di ripuliretutto ciò cheindica che questo è un wordpress,potresti dover ripetere o almeno ricontrollare dopo ogniplugin o aggiornamento del core. La vita ètroppobreveper questo.
Potrestifuorviare alcuni diletanti,manonpuoinasconderti da unbuonispettore. Se questo vienefatto comemisura di sicurezza,allora è la sicurezzaper oscurità che è sempre sbagliata,e seti vergogni solo di usare wordpress,allora lascia cheti dica una cosa: anessunoimporta,e anchei pochissimi che lofannoprobabilmentenon lofaranno sanno come capirlo da soli.
L'unica cosa di cui dovrestipreoccuparti èproteggere WPilpiùpossibilee monitorarei suoi aggiornamenti regolari.
The only valid answer: IMPOSSIBLE
So many high voted answers.... time to set the record straight. Well, the truth is that it is virtually impossible and even if it is,life is probably too short to put an effort into it. Any answer, that promotes steps to hide WP is just a waste of your time and will mislead you thinking that you are hiding your WP (that is absurd).
1) The problem is not the obvious
wp-*
urls, the generator meta etc. The hard problems are with patterns that are associated with wordpress that an home grown system will not bother to implement like author pages, year,month,day pages, use p=nnn as a valid parameter, have comment form with the wordpress comment class, structure and link names, and then there is the self promotion of the caching plugins and yoast SEO and probably many other plugins that you see only when you inspect the HTML itself.2) There are other uncounted methods that shows the existence of WP (and you can't beat that):
Even the php response-header (as noted by Dan Gayle below my answer) returns the specific WP header.
Anyone can just query any of tens root .php files:
site.com/wp-cron.php
orsite.com/xmlrpc.php
(or etc, which you cant hide) and the header answer will be200
instead of404 not found
.anyone can check has json endpoints to get WP specific answer.
Inside the page HTML, many of
.css
or.js
file has a specific phrases, that clearly refers to WP.Inside the page HTML, its easy to find the elements/css classes, like
<div class="entry-content post-14"...
or etc (which is a direct hint that used structure is of WP)Inside the page HTML, you will easily see the
uploads
folder, or even if you rename that with hardcoding, then the date part likeuploads/2018/05/image.jpg
(or evenimage-315x225.jpg
) shows the typical WP structure.as many sites now are built using MultiSite, it uses i.e.
/site/2
in links...ping to any plugins/themes readme (all of them contains), like
plugin-name/readme.txt
, returning status200
.and many, many, many other things that you (or even professionals) will be unable to hide and will just waste your days!
conclusion
And even if you put the effort into cleaning up everything indicating that this is a wordpress, you might need to redo or at least recheck after every plugin or core upgrade. Life is just too short for that.
You might mislead some diletants, but you can't hide from a good inspector. If this is done as a security measure then it is security by obscurity which is always wrong, and if you are just ashamed of using wordpress, then let me tell you something - no one cares, and even the very few that do probably will not know how to figure it out by themself.
The only thing you should care, is that you protect WP as much as you can and monitor it's regular updates.
-
l'unica risposta corretta,volevopostarla.Ho svalutatotutte le altre risposte,poiché sono solotentativifuorviantie chefannoperderetempoper raggiungere l'obiettivoimpossibilee senza senso.Semi permetti,aggiungerò 2 centesiminellatua risposta.the only correct answer, i wanted to post that. I've downvoted all other answers, as they are just misleading, time-wasting tryout to achieve the impossible and nonsense goal. If you allow me, i will add 2 cents within your answer.
- 0
- 2018-10-13
- T.Todua
-
certo andare avanti.sure, go ahead.
- 0
- 2018-10-14
- Mark Kaplun
-
Ho anche votato afavore.Perderetempo anascondere wp soloper sicurezza dall'oscurità.Non solononfunzionerà,mapotrebbe ancheinterrompere lafunzionalità sbagliata.I also voted this up. It wasting time hiding wp just for security by obscurity. It's not only not going to work, but it could also potentially break functionality done wrong.
- 0
- 2018-10-24
- Remzi Cavdar
-
- 2010-09-12
Puoi avere WordPress su un servere estrarrei tuoi contenuti da un altroincludendo soloil contenuto di cui haibisogno.
Se haibisogno di RSS,dovrestifare lo stesso con quello.
Effettivamente sarebbe come servirepagine statiche da unproxy o CDN,ma soloi bit che vuoi servire. È quindipossibile utilizzare anche un sistema di commentibasato sujavascript come Disqus.
Uso di risorse davverobasso,perché quinon ci sono database sul server che serveil contenuto.
You can have WordPress on one server and scrape your content from another only including the content you need.
If you need RSS your would have to do the same with that.
Effectively it would be like serving static pages from a proxy or CDN, but only the bits you want to serve. You could then also just use a javascript based comment system such as Disqus.
Really low resource use, becaue here are no databases on the server serving the content.
-
* @ AndyBeard * - È un'ideamoltointeressante,ma richiederebbemoltotempo di sviluppoper ottenere qualcosa difunzionante.O conosci unprogetto open sourcein cui qualcuno lo hagiàfatto?*@AndyBeard* - That's very much an interesting idea, but it would require lots of development time to get something workable. Or do you know of an open source project where somebody has already done this?
- 0
- 2010-10-24
- MikeSchinkel
-
Ecco una soluzione http://wordpress.org/extend/plugins/really-static/- cene sono alcune altreHere is one solution http://wordpress.org/extend/plugins/really-static/ - there are a few others
- 4
- 2010-10-24
- AndyBeard
-
- 2010-09-08
Puoi creareiltuoindirizzopersonalizzatoper accedere altuoblog.Non utilizzandoil classicopercorso "myblog.com/wp-admin"per accedere alla dashboard Questapagina ti aiuterà a creare accessiinvisibili,questo è utile ancheper lemisure di sicurezza.
Quindiilppl che aggiunge wp-admin altuoblog,non saràin grado diindovinare :)
You can create your custom address to login to your blog. By not using the classic “myblog.com/wp-admin” path to get to your dashboard This page will help you with creating stealth logins, this is also good for security measures.
So the ppl who append wp-admin to your blog, won't be able to guess :)
-
Il collegamento è obsoletoe ilplug-in è stato rimosso.Link is outdated & plugin removed.
- 0
- 2012-02-22
- kaiser
-
@kaiser: la [Internet Archive Wayback Machine] (http://web.archive.org/web/20110722022729/http://wordpress.org/extend/plugins/stealth-login/) ce l'ha (e,sorprendentemente,anchelo zip);)@kaiser : the [Internet Archive Wayback Machine](http://web.archive.org/web/20110722022729/http://wordpress.org/extend/plugins/stealth-login/) has it (and, amazingly, even the zip) ;)
- 2
- 2012-07-15
- brasofilo
-
@brasofilo [Soloper renderlopiù coperto -ecco unpastebin "senza scadenza".] (http://pastebin.com/fLzwzkGe) :)@brasofilo [Just to make it better covered - here's a "non expiring" pastebin.](http://pastebin.com/fLzwzkGe) :)
- 5
- 2012-07-15
- kaiser
-
@kaiserbrasofilo -grazie ragazzoper aver seguito la risposta :) lotengo ancheio@kaiser brasofilo - thanks guy for following up on answer :) i am keeping this as well
- 1
- 2012-07-16
- mireille raad
-
- 2011-06-19
Oltre a quanto sopra,ènecessariobloccare l'accesso ai varifilee directory
wp*
.Se qualcuno voleva vedere se stavieseguendo WP,potrebbeindovinare se aveviwp-settings.php
o sepoteva accedere a qualche directory.Restituire un 403non è sufficienteperché dice all'utente che la risorsaesiste;semplicementenon hanno accesso adesso.Non sono unesperto di apache,quindi ho chiesto questodomanda su serverfault.
In addition to the above, you need to lock down access to the various
wp*
files and directories. If someone wanted to see if you were running WP they could guess to see if you hadwp-settings.php
or if they could access some directory. Returning a 403 isn't sufficient because it tells the user that the resource exists; they just don't have access to it.I'm not an apache expert so I asked this question over on serverfault.
-
- 2014-01-01
Non dimenticare chemolte delleinformazioni diintestazione httpinviateinsieme allatua richiestapossonoidentificareiltuo sito comein esecuzione su WordPress. Adesempio,se controlli leintestazioni sui seguenti siti,è ovvio:
$ curl -I http://www.rollingstones.com/ Server: WP Engine/5.0 $ curl -I http://www.mattcutts.com X-Powered-By: W3 Total Cache/0.9.1.3 $ curl -I http://blogs.reuters.com/us/ WP-Super-Cache: Served supercache file from PHP
Alcuni di questi sonoimpostati dal server,altri sonoimpostati daplugin,quindinon c'è unmodoperme di dire come rimuoverli al 100%,ma se stai usando PHP 5.3puoi usarlo
header_remove("X-Foo");
( http://www.php.net/manual/en/function.header-remove.php )per rimuovere un'intestazione PHPnotaprima chei tuoi contenuti venganoeliminati. Nonposso dire con certezza doveposizionarlo (forse qualcun altropuòintervenire con quelleinformazioni),maprobabilmente è sicurometterloin cima altuoindex.php PRIMA di qualsiasi contenutoinviato albrowser.
Don't forget that a lot of the http header information that is sent along with your request can identify your site as running on WordPress. For example, if you check the headers on the following sites, it's obvious:
$ curl -I http://www.rollingstones.com/ Server: WP Engine/5.0 $ curl -I http://www.mattcutts.com X-Powered-By: W3 Total Cache/0.9.1.3 $ curl -I http://blogs.reuters.com/us/ WP-Super-Cache: Served supercache file from PHP
Some of those are set by the server, some are set by plugins, so there's no one way for me to say how to remove 100% of them, but if you're using PHP 5.3 you can use
header_remove("X-Foo");
(http://www.php.net/manual/en/function.header-remove.php)to remove a known PHP header before your content is being shoved out. I can't say for a certainty where to place this (maybe someone else can pitch in with that info), but it's probably safe to put it at the very top of your index.php BEFORE any content that is sent to the browser.
-
- 2016-03-25
Questopuòessere difficile da ottenere se seinuovoin phpe mod_rewrite. Suggerisco quindi di controllare con la sezione dellamia risposta. Oppureprovalotu stesso,puoi usare qualcosa di similepernascondere la struttura delpercorso wp-content/plugins:
<IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^modules/(.*) /wp-content/plugins/$1 [L,QSA] </IfModule>
Questo cambieràilpercorsoin/modules. Usa qualcosa di simileper un'altra struttura,potresti averbisogno di alcune riscritture avanzate,vedi http://httpd.apache.org/docs/current/mod/mod_rewrite.html per ulterioriinformazioni sumod_rewrite.
Sepreferisci qualcosafuori dagli schemi,ci sono alcunibei plugin,alcuni commerciali,anchegratuitinel repository di WordPress,suggerisco diprovare WP Hide & amp; Security Enhancer . Ciòincludemolte cosee aiuta a cambiarepraticamentetuttoper rendereirriconoscibileiltuo WordPress. Ecco alcune caratteristiche del codice:
- URL amministratorepersonalizzato
- URL amministratorepersonalizzato
- Blocca URL amministratorepredefinito
- Blocca qualsiasi accesso diretto alla cartellapernascondere completamente la struttura
- Nomefile wp-login.phppersonalizzato
- Bloccapredefinito wp-login.php
- Bloccailfile wp-signup.phppredefinito
- Blocca API XML-RPC
- Nuovopercorso XML-RPC
- URL deltema regolabile
- Nuovo URL deltemafiglio
- Cambiailnome delfile dello stile deltema
- Wp-includepersonalizzato
- Bloccai percorsi wp-includepredefiniti
- Blocca defalt wp-content
- URLplug-inpersonalizzati
- Modifica dell'URL del singoloplug-in
- Bloccai percorsi deiplug-inpredefiniti
- Nuovo URL di caricamento
- Bloccagli URL di caricamentopredefiniti
- Rimuovi la versione wordpress
- Blocco Meta Generator
- Disattiva l'emojie il codice JavaScript richiesto
- Rimuovitagpingback
- Rimuovi wlwmanifest Meta
- Rimuovi rsd_link Meta
- Rimuovi wpemoji
e molti altri ..
This can be hard to achieve if you are new to php and mod_rewrite. I suggest so you check with the section of my response. Or try it yourself, you can use something like this to hide the wp-content/plugins path structure:
<IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^modules/(.*) /wp-content/plugins/$1 [L,QSA] </IfModule>
This will change the path to /modules . Use something similar for other structure, you may need some advanced rewrites, see http://httpd.apache.org/docs/current/mod/mod_rewrite.html for additional mod_rewrite information's.
If prefer something out of the box, there are few nice plugins, some commercial, also free at WordPress repository, i suggest to try WP Hide & Security Enhancer. This include lot's of things and help to change pretty much everything to make your WordPress unrecognizable. Here are some features of the code:
- Custom Admin Url
- Custom Admin Url
- Block default admin Url
- Block any direct folder access to completely hide the structure
- Custom wp-login.php filename
- Block default wp-login.php
- Block default wp-signup.php
- Block XML-RPC API
- New XML-RPC path
- Adjustable theme url
- New child Theme url
- Change theme style file name
- Custom wp-include
- Block default wp-include paths
- Block defalt wp-content
- Custom plugins urls
- Individual plugin url change
- Block default plugins paths
- New upload url
- Block default upload urls
- Remove wordpress version
- Meta Generator block
- Disble the emoji and required javascript code
- Remove pingback tag
- Remove wlwmanifest Meta
- Remove rsd_link Meta
- Remove wpemoji
and many more..
-
- 2015-03-25
Non voglio ripetere le opzioni di codificapoiché sono statetrattatein modoesaustivo,l'altra opzione che so chefunziona è usare unplugin chenasconde wp.Hogià utilizzato questoplugin secondo standard soddisfacenti.Si chiamanascondiilmio WordPress.
I don't want to repeat the coding options since they have been exhaustively covered, the other option I know that works is using a plugin that hides wp. I have used this plugin before to satisfactory standards. Its called hide my WordPress.
-
- 2016-08-22
Lamaggiorparte delle risposte si concentra sull'oscuramento di WordPressnel codice sorgente di unapagina,ma ancheprima WP si ègià rivelatonell'intestazione http di un'installazione standard. Provailtuo sito su un sito come web-sniffer (faifinta diessere IE 6e chiedi un http 1.0 header)e vedrai chetrai ritorni c'è:
<http://www.example.com/wp-json/>; rel="https://api.w.org/"
Quest'ultimo è un collegamento all ' Wordpress.org API . Èpresente da quando l'API REST è statainclusain WP 4.4. Puoi rimuoverlo con questa riga all'inizio deltuo
functions.php
:remove_action( 'template_redirect', 'rest_output_link_header', 11, 0 );
Moltiplugin,come Jetpackperi suoi collegamentibrevi,possono ancheinserire collegamentinell'intestazione http. Possonofarlo,perché WP ha un ' API HTTP ,cheti consente dimanipolare leintestazioni. Èpossibile utilizzare questainterfacciaper rimuoveretutte leimpostazioni diintestazione daiplug-in se si aggiunge l'azione con sufficiente ritardonelprocesso.
Infine,puoi utilizzare l ' .htaccess headerinterface perintercettatutto ciò che WP stafacendo. Adesempio,puoiimpedire l'invio diintestazioni di collegamentoincludendo questa riga:
<IfModule mod_headers.c> Header unset Link </IfModule>
Most answers concentrate on obscuring WordPress in the source code of a page, but even before that WP has already given itself away in the http header of a standard installation. Just try your own site on a site like web-sniffer (pretend to be IE 6 and ask for a http 1.0 header) and you will see that among the returns is:
<http://www.example.com/wp-json/>; rel="https://api.w.org/"
The latter is a link to the Wordpress.org API. It's there since the REST API was included in WP 4.4. You can remove it with this line right at the beginning of your
functions.php
:remove_action( 'template_redirect', 'rest_output_link_header', 11, 0 );
Many plugins, like Jetpack for its shortlinks, may also insert links in the http header. They can do so, because WP has an HTTP API, which allows you to manipulate headers. You could use this interface to remove all header settings by plugins if you add your action late enough in the process.
Finally, you may use .htaccess header interface to intercept anything WP is doing. For instance, you can prevent any Link headers to be sent by including this line:
<IfModule mod_headers.c> Header unset Link </IfModule>
-
- 2010-09-08
Puoipersonalizzare untemaperescluderetutte leinformazioni di WordPress.Rimuovi ancheilmeta widgete qualsiasi widget cheforniscainformazioni sullapiattaforma.
Personalmente,preferiscomostrare lamiagratitudine dimostrando che sto usando WordPress.
You can customize a theme to exclude all the WordPress information. Also remove meta widget and any widget that would output information about the platform.
Personally, I prefer to show my gratitude by displaying that I am using WordPress.
-
Lagratitudine èbella,manon risponde alla domandafondamentale.Gratitude is nice, but it doesn't answer the core question.
- 18
- 2010-09-08
- ZaMoose
-
- 2017-07-10
Puoi utilizzareilplug-in WPS Nascondi accesso .
Accedi altuo wordpress utilizzandowp-admin
.Mapuoi cambiarewp-admin
in personalizzato usando questoplugin.Esempio:
Prima:
http://example.com/wp-admin
Dopo:http://example.com/custom-text-to-login
You can Use plugin WPS Hide Login.
You login to your wordpress usingwp-admin
. But you can changewp-admin
to custom using this plugin.Example:
Before:
http://example.com/wp-admin
After:http://example.com/custom-text-to-login
Ho un sito webperil quale stiamo cercando diessere discreti sulfatto che stiamo usando WordPress.Qualimisurepossiamo adottareper renderlomeno ovvio?
EDIT- Notaimportante sulla sicurezza:
Tienipresente chefarloperfettamente èimpossibile secondo la risposta di Mark,quindinonfare affidamento su questoperchéunamisura di sicurezza.