Diff
6 years ago
dashboard
7 years ago
rest-api
6 years ago
.htaccess
7 years ago
Diff.php
6 years ago
GeoLite2-Country.mmdb
6 years ago
IPTraf.php
6 years ago
IPTrafList.php
7 years ago
WFLSPHP52Compatability.php
6 years ago
compat.php
8 years ago
conntest.php
7 years ago
cronview.php
8 years ago
dbview.php
8 years ago
diffResult.php
8 years ago
email_genericAlert.php
7 years ago
email_newIssues.php
6 years ago
email_unlockRequest.php
8 years ago
email_unsubscribeRequest.php
7 years ago
flags.php
7 years ago
live_activity.php
8 years ago
menu_dashboard.php
7 years ago
menu_dashboard_options.php
7 years ago
menu_firewall.php
6 years ago
menu_firewall_blocking.php
7 years ago
menu_firewall_blocking_options.php
8 years ago
menu_firewall_waf.php
7 years ago
menu_firewall_waf_options.php
7 years ago
menu_options.php
6 years ago
menu_scanner.php
6 years ago
menu_scanner_credentials.php
8 years ago
menu_scanner_options.php
6 years ago
menu_support.php
7 years ago
menu_tools.php
7 years ago
menu_tools_diagnostic.php
6 years ago
menu_tools_importExport.php
7 years ago
menu_tools_livetraffic.php
6 years ago
menu_tools_twoFactor.php
7 years ago
menu_tools_whois.php
8 years ago
menu_wordfence_central.php
7 years ago
noc1.key
7 years ago
sysinfo.php
8 years ago
unknownFiles.php
8 years ago
viewFullActivityLog.php
8 years ago
wf503.php
7 years ago
wfAPI.php
6 years ago
wfActivityReport.php
6 years ago
wfAdminNoticeQueue.php
8 years ago
wfAlerts.php
6 years ago
wfArray.php
7 years ago
wfBrowscap.php
6 years ago
wfBrowscapCache.php
7 years ago
wfBulkCountries.php
7 years ago
wfCache.php
6 years ago
wfCentralAPI.php
6 years ago
wfConfig.php
6 years ago
wfCrawl.php
6 years ago
wfCredentialsController.php
7 years ago
wfCrypt.php
6 years ago
wfDB.php
7 years ago
wfDashboard.php
7 years ago
wfDateLocalization.php
8 years ago
wfDiagnostic.php
6 years ago
wfDict.php
8 years ago
wfDirectoryIterator.php
7 years ago
wfHelperBin.php
11 years ago
wfHelperString.php
11 years ago
wfIPWhitelist.php
7 years ago
wfImportExportController.php
7 years ago
wfIssues.php
6 years ago
wfJWT.php
7 years ago
wfLockedOut.php
7 years ago
wfLog.php
6 years ago
wfMD5BloomFilter.php
8 years ago
wfModuleController.php
7 years ago
wfNotification.php
8 years ago
wfOnboardingController.php
7 years ago
wfPersistenceController.php
8 years ago
wfRESTAPI.php
7 years ago
wfScan.php
6 years ago
wfScanEngine.php
6 years ago
wfSchema.php
6 years ago
wfStyle.php
7 years ago
wfSupportController.php
6 years ago
wfUnlockMsg.php
6 years ago
wfUpdateCheck.php
6 years ago
wfUtils.php
6 years ago
wfVersionCheckController.php
8 years ago
wfView.php
10 years ago
wfViewResult.php
8 years ago
wordfenceClass.php
6 years ago
wordfenceConstants.php
6 years ago
wordfenceHash.php
6 years ago
wordfenceScanner.php
6 years ago
wordfenceURLHoover.php
6 years ago
menu_tools_whois.php
111 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 _e('Whois Lookup', 'wordfence') ?></h2> |
| 17 | <span><?php printf(__('<a href="%s" target="_blank" rel="noopener noreferrer" class="wf-help-link">Learn more<span class="wf-hidden-xs"> about Whois Lookup</span></a>', 'wordfence'), wfSupportController::esc_supportURL(wfSupportController::ITEM_TOOLS_WHOIS_LOOKUP)); ?> |
| 18 | <i class="wf-fa wf-fa-external-link" aria-hidden="true"></i></span> |
| 19 | </div> |
| 20 | |
| 21 | <p><?php _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> |
| 22 | |
| 23 | <div> |
| 24 | |
| 25 | <div class="wf-form wf-flex-row"> |
| 26 | <div class="wf-flex-row-1"> |
| 27 | <input type="text" class="wf-form-control" name="whois" id="wfwhois" value="" maxlength="255" onkeydown="if(event.keyCode == 13){ whois(jQuery('#wfwhois').val()) }"/> |
| 28 | </div> |
| 29 | <div class="wf-flex-row-0 wf-padding-add-left"> |
| 30 | <input type="button" name="whoisbutton" id="whoisbutton" class="wf-btn wf-btn-primary" value="Look up IP or Domain" onclick="whois(jQuery('#wfwhois').val());"> |
| 31 | </div> |
| 32 | </div> |
| 33 | <?php if (isset($_GET['wfnetworkblock']) && $_GET['wfnetworkblock']) { ?> |
| 34 | <h2><?php _e('How to block a network', 'wordfence') ?></h2> |
| 35 | <p style="width: 600px;"> |
| 36 | <?php printf(__("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."), esc_html($_GET['whoisval'])) ?> |
| 37 | </p> |
| 38 | <?php } ?> |
| 39 | <div id="wfrawhtml" class="wf-padding-add-top"></div> |
| 40 | </div> |
| 41 | <script type="text/x-jquery-template" id="wfBlockedRangesTmpl"> |
| 42 | <div> |
| 43 | <div style="border-bottom: 1px solid #CCC; padding-bottom: 10px; margin-bottom: 10px;"> |
| 44 | <table border="0" style="width: 100%"> |
| 45 | {{each(idx, elem) results}} |
| 46 | <tr> |
| 47 | <td></td> |
| 48 | </tr> |
| 49 | {{/each}} |
| 50 | </table> |
| 51 | </div> |
| 52 | </div> |
| 53 | </script> |
| 54 | <script type="text/javascript"> |
| 55 | var whoisval = "<?php if (isset($_GET['whoisval'])) { |
| 56 | echo esc_js($_GET['whoisval']); |
| 57 | } ?>"; |
| 58 | if (whoisval) { |
| 59 | jQuery(function() { |
| 60 | jQuery('#wfwhois').val(whoisval); |
| 61 | whois(whoisval); |
| 62 | }); |
| 63 | } |
| 64 | </script> |
| 65 | |
| 66 | <script type="text/x-jquery-template" id="wfWhoisBlock"> |
| 67 | <div class="wf-block wf-active"> |
| 68 | <div class="wf-block-header"> |
| 69 | <div class="wf-block-header-content"> |
| 70 | <div class="wf-block-title"> |
| 71 | <strong><?php _e('Whois Lookup', 'wordfence') ?> <a>${ip}</a></strong> |
| 72 | </div> |
| 73 | </div> |
| 74 | </div> |
| 75 | <div class="wf-block-content wf-clearfix"> |
| 76 | <ul class="wf-block-list"> |
| 77 | <li> |
| 78 | <div class="wf-padding-add-top">{{html whois}}</div> |
| 79 | </li> |
| 80 | </ul> |
| 81 | </div> |
| 82 | </div> |
| 83 | </script> |
| 84 | |
| 85 | </div> |
| 86 | |
| 87 | <script type="text/javascript"> |
| 88 | function whois(ip) { |
| 89 | var val = ip.replace(' ', ''); |
| 90 | if (!/\w+/.test(val)) { |
| 91 | WFAD.colorboxModal('300px', "Enter a valid IP or domain", "Please enter a valid IP address or domain name for your whois lookup."); |
| 92 | return; |
| 93 | } |
| 94 | var whoisButton = jQuery('#whoisbutton').attr('disabled', 'disabled') |
| 95 | .attr('value', 'Loading...'); |
| 96 | WFAD.ajax('wordfence_whois', { |
| 97 | val: val |
| 98 | }, function(res) { |
| 99 | whoisButton.removeAttr('disabled') |
| 100 | .attr('value', 'Look up IP or Domain'); |
| 101 | if (res.ok) { |
| 102 | var whoisHTML = WFAD.completeWhois(res, true); |
| 103 | console.log(whoisHTML); |
| 104 | jQuery('#wfrawhtml').html(jQuery('#wfWhoisBlock').tmpl({ |
| 105 | ip: val, |
| 106 | whois: whoisHTML |
| 107 | })); |
| 108 | } |
| 109 | }); |
| 110 | } |
| 111 | </script> |