Diff
1 year ago
audit-log
1 year ago
dashboard
1 year ago
rest-api
1 year ago
.htaccess
7 years ago
Diff.php
6 years ago
GeoLite2-Country.mmdb
1 year ago
IPTraf.php
1 year ago
IPTrafList.php
1 year ago
WFLSPHP52Compatability.php
6 years ago
compat.php
8 years ago
diffResult.php
1 year ago
email_genericAlert.php
5 years ago
email_newIssues.php
3 years ago
email_unlockRequest.php
5 years ago
email_unsubscribeRequest.php
4 years ago
flags.php
7 years ago
live_activity.php
4 years ago
menu_dashboard.php
3 years ago
menu_dashboard_options.php
3 years ago
menu_firewall.php
3 years ago
menu_firewall_blocking.php
4 years ago
menu_firewall_blocking_options.php
3 years ago
menu_firewall_waf.php
4 years ago
menu_firewall_waf_options.php
3 years ago
menu_install.php
3 years ago
menu_options.php
1 year ago
menu_scanner.php
2 years ago
menu_scanner_credentials.php
1 year ago
menu_scanner_options.php
3 years ago
menu_support.php
1 year ago
menu_tools.php
1 year ago
menu_tools_auditlog.php
1 year ago
menu_tools_diagnostic.php
1 year ago
menu_tools_importExport.php
4 years ago
menu_tools_livetraffic.php
2 years ago
menu_tools_twoFactor.php
4 years ago
menu_tools_whois.php
3 years ago
menu_wordfence_central.php
3 years ago
noc1.key
7 years ago
sodium_compat_fast.php
2 years ago
sysinfo.php
1 year ago
viewFullActivityLog.php
4 years ago
wf503.php
2 years ago
wfAPI.php
1 year ago
wfActivityReport.php
1 year ago
wfAdminNoticeQueue.php
4 years ago
wfAlerts.php
5 years ago
wfArray.php
3 years ago
wfAuditLog.php
1 year ago
wfBrowscap.php
3 years ago
wfBrowscapCache.php
7 years ago
wfBulkCountries.php
2 years ago
wfCache.php
3 years ago
wfCentralAPI.php
1 year ago
wfConfig.php
1 year ago
wfCrawl.php
1 year ago
wfCredentialsController.php
1 year ago
wfCrypt.php
6 years ago
wfCurlInterceptor.php
3 years ago
wfDB.php
1 year ago
wfDashboard.php
1 year ago
wfDateLocalization.php
2 years ago
wfDeactivationOption.php
3 years ago
wfDiagnostic.php
1 year ago
wfDict.php
8 years ago
wfDirectoryIterator.php
8 years ago
wfFileUtils.php
2 years ago
wfHelperBin.php
11 years ago
wfHelperString.php
1 year ago
wfIPWhitelist.php
5 years ago
wfImportExportController.php
5 years ago
wfInaccessibleDirectoryException.php
2 years ago
wfInvalidPathException.php
3 years ago
wfIpLocation.php
3 years ago
wfIpLocator.php
3 years ago
wfIssues.php
1 year ago
wfJWT.php
7 years ago
wfLicense.php
3 years ago
wfLockedOut.php
2 years ago
wfLog.php
1 year ago
wfMD5BloomFilter.php
8 years ago
wfModuleController.php
7 years ago
wfNotification.php
8 years ago
wfOnboardingController.php
1 year ago
wfPersistenceController.php
1 year ago
wfRESTAPI.php
7 years ago
wfScan.php
2 years ago
wfScanEngine.php
1 year ago
wfScanEntrypoint.php
3 years ago
wfScanFile.php
1 year ago
wfScanFileLink.php
3 years ago
wfScanFileListItem.php
1 year ago
wfScanFileProperties.php
1 year ago
wfScanMonitor.php
2 years ago
wfScanPath.php
3 years ago
wfSchema.php
1 year ago
wfStyle.php
1 year ago
wfSupportController.php
1 year ago
wfUnlockMsg.php
5 years ago
wfUpdateCheck.php
1 year ago
wfUtils.php
1 year ago
wfVersionCheckController.php
3 years ago
wfVersionSupport.php
1 year ago
wfView.php
5 years ago
wfViewResult.php
1 year ago
wfWebsite.php
3 years ago
wordfenceClass.php
1 year ago
wordfenceConstants.php
1 year ago
wordfenceHash.php
1 year ago
wordfenceScanner.php
1 year ago
wordfenceURLHoover.php
2 years ago
menu_tools_whois.php
115 lines
| 1 | <?php |
| 2 | if (!defined('WORDFENCE_VERSION')) { exit; } |
| 3 | ?> |
| 4 | <script type="application/javascript"> |
| 5 | (function($) { |
| 6 | $(function() { |
| 7 | document.title = "<?php esc_attr_e('Whois Lookup', 'wordfence'); ?>" + " \u2039 " + WFAD.basePageName; |
| 8 | }); |
| 9 | })(jQuery); |
| 10 | </script> |
| 11 | |
| 12 | <div class="wordfenceModeElem" id="wordfenceMode_whois"></div> |
| 13 | |
| 14 | <div id="wf-tools-whois"> |
| 15 | <div class="wf-section-title"> |
| 16 | <h2><?php esc_html_e('Whois Lookup', 'wordfence') ?></h2> |
| 17 | <span><?php echo wp_kses(sprintf( |
| 18 | /* translators: URL to support page. */ |
| 19 | __('<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()))); ?> |
| 20 | <i class="wf-fa wf-fa-external-link" aria-hidden="true"></i></span> |
| 21 | </div> |
| 22 | |
| 23 | <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> |
| 24 | |
| 25 | <div> |
| 26 | |
| 27 | <div class="wf-form wf-flex-row"> |
| 28 | <div class="wf-flex-row-1"> |
| 29 | <input type="text" class="wf-form-control" name="whois" id="wfwhois" value="" maxlength="255" onkeydown="if(event.keyCode == 13){ whois(jQuery('#wfwhois').val()) }"/> |
| 30 | </div> |
| 31 | <div class="wf-flex-row-0 wf-padding-add-left"> |
| 32 | <input type="button" name="whoisbutton" id="whoisbutton" class="wf-btn wf-btn-primary" value="Look up IP or Domain" onclick="whois(jQuery('#wfwhois').val());"> |
| 33 | </div> |
| 34 | </div> |
| 35 | <?php if (isset($_GET['wfnetworkblock']) && $_GET['wfnetworkblock']) { ?> |
| 36 | <h2><?php esc_html_e('How to block a network', 'wordfence') ?></h2> |
| 37 | <p style="width: 600px;"> |
| 38 | <?php echo wp_kses(sprintf( |
| 39 | /* translators: Hostname or IP address. */ |
| 40 | __("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()))); ?> |
| 41 | </p> |
| 42 | <?php } ?> |
| 43 | <div id="wfrawhtml" class="wf-padding-add-top"></div> |
| 44 | </div> |
| 45 | <script type="text/x-jquery-template" id="wfBlockedRangesTmpl"> |
| 46 | <div> |
| 47 | <div style="border-bottom: 1px solid #CCC; padding-bottom: 10px; margin-bottom: 10px;"> |
| 48 | <table border="0" style="width: 100%"> |
| 49 | {{each(idx, elem) results}} |
| 50 | <tr> |
| 51 | <td></td> |
| 52 | </tr> |
| 53 | {{/each}} |
| 54 | </table> |
| 55 | </div> |
| 56 | </div> |
| 57 | </script> |
| 58 | <script type="text/javascript"> |
| 59 | var whoisval = "<?php if (isset($_GET['whoisval'])) { |
| 60 | echo esc_js($_GET['whoisval']); |
| 61 | } ?>"; |
| 62 | if (whoisval) { |
| 63 | jQuery(function() { |
| 64 | jQuery('#wfwhois').val(whoisval); |
| 65 | whois(whoisval); |
| 66 | }); |
| 67 | } |
| 68 | </script> |
| 69 | |
| 70 | <script type="text/x-jquery-template" id="wfWhoisBlock"> |
| 71 | <div class="wf-block wf-active"> |
| 72 | <div class="wf-block-header"> |
| 73 | <div class="wf-block-header-content"> |
| 74 | <div class="wf-block-title"> |
| 75 | <strong><?php esc_html_e('Whois Lookup', 'wordfence') ?> <a>${ip}</a></strong> |
| 76 | </div> |
| 77 | </div> |
| 78 | </div> |
| 79 | <div class="wf-block-content wf-clearfix"> |
| 80 | <ul class="wf-block-list"> |
| 81 | <li> |
| 82 | <div class="wf-padding-add-top">{{html whois}}</div> |
| 83 | </li> |
| 84 | </ul> |
| 85 | </div> |
| 86 | </div> |
| 87 | </script> |
| 88 | |
| 89 | </div> |
| 90 | |
| 91 | <script type="text/javascript"> |
| 92 | function whois(ip) { |
| 93 | var val = ip.replace(' ', ''); |
| 94 | if (!/\w+/.test(val)) { |
| 95 | 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')) ?>); |
| 96 | return; |
| 97 | } |
| 98 | var whoisButton = jQuery('#whoisbutton').attr('disabled', 'disabled') |
| 99 | .attr('value', <?php echo json_encode(__('Loading...', 'wordfence')) ?>); |
| 100 | WFAD.ajax('wordfence_whois', { |
| 101 | val: val |
| 102 | }, function(res) { |
| 103 | whoisButton.removeAttr('disabled') |
| 104 | .attr('value', <?php echo json_encode(__('Look up IP or Domain', 'wordfence')) ?>); |
| 105 | var whoisHTML = WFAD.completeWhois(res, true); |
| 106 | var content = jQuery('#wfWhoisBlock').tmpl({ |
| 107 | ip: val, |
| 108 | whois: whoisHTML |
| 109 | }); |
| 110 | if (!res.ok) |
| 111 | content.addClass('failed'); |
| 112 | jQuery('#wfrawhtml').html(content); |
| 113 | }); |
| 114 | } |
| 115 | </script> |