File Editor
Directories:
.. (Back)
Diff
dashboard
rest-api
Files:
Diff.php
IPTraf.php
IPTrafList.php
WFLSPHP52Compatability.php
compat.php
diffResult.php
email_genericAlert.php
email_newIssues.php
email_unlockRequest.php
email_unsubscribeRequest.php
flags.php
live_activity.php
menu_dashboard.php
menu_dashboard_options.php
menu_firewall.php
menu_firewall_blocking.php
menu_firewall_blocking_options.php
menu_firewall_waf.php
menu_firewall_waf_options.php
menu_install.php
menu_options.php
menu_scanner.php
menu_scanner_credentials.php
menu_scanner_options.php
menu_support.php
menu_tools.php
menu_tools_diagnostic.php
menu_tools_importExport.php
menu_tools_livetraffic.php
menu_tools_twoFactor.php
menu_tools_whois.php
menu_wordfence_central.php
sysinfo.php
viewFullActivityLog.php
wf503.php
wfAPI.php
wfActivityReport.php
wfAdminNoticeQueue.php
wfAlerts.php
wfArray.php
wfBrowscap.php
wfBrowscapCache.php
wfBulkCountries.php
wfCache.php
wfCentralAPI.php
wfConfig.php
wfCrawl.php
wfCredentialsController.php
wfCrypt.php
wfCurlInterceptor.php
wfDB.php
wfDashboard.php
wfDateLocalization.php
wfDeactivationOption.php
wfDiagnostic.php
wfDict.php
wfDirectoryIterator.php
wfFileUtils.php
wfHelperBin.php
wfHelperString.php
wfIPWhitelist.php
wfImportExportController.php
wfInvalidPathException.php
wfIpLocation.php
wfIpLocator.php
wfIssues.php
wfJWT.php
wfLicense.php
wfLockedOut.php
wfLog.php
wfMD5BloomFilter.php
wfModuleController.php
wfNotification.php
wfOnboardingController.php
wfPersistenceController.php
wfRESTAPI.php
wfScan.php
wfScanEngine.php
wfScanEntrypoint.php
wfScanFile.php
wfScanFileLink.php
wfScanMonitor.php
wfScanPath.php
wfSchema.php
wfStyle.php
wfSupportController.php
wfUnlockMsg.php
wfUpdateCheck.php
wfUtils.php
wfVersionCheckController.php
wfView.php
wfViewResult.php
wfWebsite.php
wordfenceClass.php
wordfenceConstants.php
wordfenceHash.php
wordfenceScanner.php
wordfenceURLHoover.php
Create New File
Create
Edit File: menu_tools_whois.php
<?php if (!defined('WORDFENCE_VERSION')) { exit; } ?> <script type="application/javascript"> (function($) { $(function() { document.title = "<?php esc_attr_e('Whois Lookup', 'wordfence'); ?>" + " \u2039 " + WFAD.basePageName; }); })(jQuery); </script> <div class="wordfenceModeElem" id="wordfenceMode_whois"></div> <div id="wf-tools-whois"> <div class="wf-section-title"> <h2><?php esc_html_e('Whois Lookup', 'wordfence') ?></h2> <span><?php echo wp_kses(sprintf( /* translators: URL to support page. */ __('<a href="%s" target="_blank" rel="noopener noreferrer" class="wf-help-link">Learn more<span class="wf-hidden-xs"> about Whois Lookup</span><span class="screen-reader-text"> (opens in new tab)</span></a>', 'wordfence'), wfSupportController::esc_supportURL(wfSupportController::ITEM_TOOLS_WHOIS_LOOKUP)), array('a'=>array('href'=>array(), 'target'=>array(), 'rel'=>array(), 'class'=>array()), 'span'=>array('class'=>array()))); ?> <i class="wf-fa wf-fa-external-link" aria-hidden="true"></i></span> </div> <p><?php esc_html_e("The whois service gives you a way to look up who owns an IP address or domain name that is visiting your website or is engaging in malicious activity on your website.", 'wordfence') ?></p> <div> <div class="wf-form wf-flex-row"> <div class="wf-flex-row-1"> <input type="text" class="wf-form-control" name="whois" id="wfwhois" value="" maxlength="255" onkeydown="if(event.keyCode == 13){ whois(jQuery('#wfwhois').val()) }"/> </div> <div class="wf-flex-row-0 wf-padding-add-left"> <input type="button" name="whoisbutton" id="whoisbutton" class="wf-btn wf-btn-primary" value="Look up IP or Domain" onclick="whois(jQuery('#wfwhois').val());"> </div> </div> <?php if (isset($_GET['wfnetworkblock']) && $_GET['wfnetworkblock']) { ?> <h2><?php esc_html_e('How to block a network', 'wordfence') ?></h2> <p style="width: 600px;"> <?php echo wp_kses(sprintf( /* translators: Hostname or IP address. */ __("You've chosen to block the network that <span style=\"color: #F00;\">%s</span> is part of. We've marked the networks we found that this IP address belongs to in red below. Make sure you read all the WHOIS information so that you see all networks this IP belongs to. We recommend blocking the network with the lowest number of addresses. You may find this is listed at the end as part of the 'rWHOIS' query which contacts the local WHOIS server that is run by the network administrator.", 'wordfence'), esc_html($_GET['whoisval'])), array('span'=>array('style'=>array()))); ?> </p> <?php } ?> <div id="wfrawhtml" class="wf-padding-add-top"></div> </div> <script type="text/x-jquery-template" id="wfBlockedRangesTmpl"> <div> <div style="border-bottom: 1px solid #CCC; padding-bottom: 10px; margin-bottom: 10px;"> <table border="0" style="width: 100%"> {{each(idx, elem) results}} <tr> <td></td> </tr> {{/each}} </table> </div> </div> </script> <script type="text/javascript"> var whoisval = "<?php if (isset($_GET['whoisval'])) { echo esc_js($_GET['whoisval']); } ?>"; if (whoisval) { jQuery(function() { jQuery('#wfwhois').val(whoisval); whois(whoisval); }); } </script> <script type="text/x-jquery-template" id="wfWhoisBlock"> <div class="wf-block wf-active"> <div class="wf-block-header"> <div class="wf-block-header-content"> <div class="wf-block-title"> <strong><?php esc_html_e('Whois Lookup', 'wordfence') ?> <a>${ip}</a></strong> </div> </div> </div> <div class="wf-block-content wf-clearfix"> <ul class="wf-block-list"> <li> <div class="wf-padding-add-top">{{html whois}}</div> </li> </ul> </div> </div> </script> </div> <script type="text/javascript"> function whois(ip) { var val = ip.replace(' ', ''); if (!/\w+/.test(val)) { WFAD.colorboxModal('300px', <?php echo json_encode(__("Enter a valid IP or domain", 'wordfence')) ?>, <?php echo json_encode(__("Please enter a valid IP address or domain name for your whois lookup.", 'wordfence')) ?>); return; } var whoisButton = jQuery('#whoisbutton').attr('disabled', 'disabled') .attr('value', <?php echo json_encode(__('Loading...', 'wordfence')) ?>); WFAD.ajax('wordfence_whois', { val: val }, function(res) { whoisButton.removeAttr('disabled') .attr('value', <?php echo json_encode(__('Look up IP or Domain', 'wordfence')) ?>); var whoisHTML = WFAD.completeWhois(res, true); var content = jQuery('#wfWhoisBlock').tmpl({ ip: val, whois: whoisHTML }); if (!res.ok) content.addClass('failed'); jQuery('#wfrawhtml').html(content); }); } </script>
Save Changes
Rename File
Rename