隐藏网址

时间:2016-09-05 07:13:42

标签: php wordpress .htaccess security

所以2天前我启动了我们的城市网站here并尝试使用基于WPScan的online wordpress vulnerabillity scanner检查一些漏洞,我得到了这个结果:

enter image description here

如您所见,第一个显示我的安装目录和主题的名称。第一个给出的网址是http://tuguegaraocity.gov.ph/wp-content/themes/citygov/,它也是我主题的名称。有没有办法可以隐藏这个?或者任何其他让它更安全的好方法。谢谢!

2 个答案:

答案 0 :(得分:1)

这应该有用,请在$(function(){ var el = $('#omgivebeenclicked'), curHeight = el.height(), autoHeight = el.css('height', 'auto').height(); el.height(curHeight); $( "#clickme" ).click(function() { if(el.height() == 0) el.height(curHeight).animate({height: autoHeight}, 400); else el.height(autoHeight).animate({height: curHeight}, 400); }); });

中添加

<强> PHP

wp-config.php

答案 1 :(得分:1)

您可以根据自己的意愿将主题名称更改为您自己的主题名称或任何您喜欢的名称。

更改主题名称的方法

  1. 打开主题 style.css ,您会在文件顶部找到主题名称和主题信息。
  2. 将主题名称和主题描述重命名为所需的详细信息,然后保存文件。
  3. 确保在执行此操作时,您的主题处于“停用”模式。

    前:

    在更改主题名称之前,您的网址如下:

    http://tuguegaraocity.gov.ph/wp-content/themes/citygov/

    更改后就像

    http://tuguegaraocity.gov.ph/wp-content/themes/yourname/

    /*
    Theme Name: Twenty Thirteen
    Theme URI: http://wordpress.org/themes/twentythirteen
    Author: the WordPress team
    Author URI: http://wordpress.org/
    Description: The 2013 theme for WordPress takes us back to the blog, featuring a full range of post formats, each displayed beautifully in their own unique way. Design details abound, starting with a vibrant color scheme and matching header images, beautiful typography and icons, and a flexible layout that looks great on any device, big or small.
    Version: 1.0
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    Tags: black, brown, orange, tan, white, yellow, light, one-column, two-columns, right-sidebar, flexible-width, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, translation-ready
    Text Domain: twentythirteen
    
    This theme, like WordPress, is licensed under the GPL.
    Use it to make something cool, have fun, and share what you've learned with others.
    */
    

    如上所述,您将在style.css中找到主题信息,然后您可以在那里进行更改。