From af409245fb585906da899968ddd2f05e2149897f Mon Sep 17 00:00:00 2001 From: abhishek muge <49590582+abhishekMuge@users.noreply.github.com> Date: Sat, 29 Jul 2023 13:03:50 +0000 Subject: [PATCH] warning removed --- src/pages/Home.tsx | 48 +++++++++++++++++++++++----------------------- src/utils/docs.ts | 2 +- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx index 33be540..ffe8320 100644 --- a/src/pages/Home.tsx +++ b/src/pages/Home.tsx @@ -38,14 +38,14 @@ const UserInputMain = styled.form` z-index: 2; `; -const FindIpButton = styled.a` - margin: 0.5rem; - cursor: pointer; - display: block; - text-align: center; - color: ${colors.primary}; - text-decoration: underline; -`; +// const FindIpButton = styled.a` +// margin: 0.5rem; +// cursor: pointer; +// display: block; +// text-align: center; +// color: ${colors.primary}; +// text-decoration: underline; +// `; const ErrorMessage = styled.p` color: ${colors.danger}; @@ -126,22 +126,22 @@ const Home = (): JSX.Element => { if (!isError) setErrMsg(''); }; - const findIpAddress = () => { - setUserInput(''); - setPlaceholder('Looking up your IP...'); - setInputDisabled(true); - fetch('https://ipapi.co/json/') - .then(function(response) { - response.json().then(jsonData => { - setUserInput(jsonData.ip); - setPlaceholder(defaultPlaceholder); - setInputDisabled(true); - }); - }) - .catch(function(error) { - console.log('Failed to get IP address :\'(', error) - }); - }; + // const findIpAddress = () => { + // setUserInput(''); + // setPlaceholder('Looking up your IP...'); + // setInputDisabled(true); + // fetch('https://ipapi.co/json/') + // .then(function(response) { + // response.json().then(jsonData => { + // setUserInput(jsonData.ip); + // setPlaceholder(defaultPlaceholder); + // setInputDisabled(true); + // }); + // }) + // .catch(function(error) { + // console.log('Failed to get IP address :\'(', error) + // }); + // }; const formSubmitEvent = (event: FormEvent) => { event.preventDefault(); diff --git a/src/utils/docs.ts b/src/utils/docs.ts index 9b6ca99..2c0d756 100644 --- a/src/utils/docs.ts +++ b/src/utils/docs.ts @@ -261,7 +261,7 @@ const docs: Doc[] = [ id: "dnssec", title: "DNS Security Extensions", description: - "Without DNSSEC, it\'s possible for MITM attackers to spoof records and lead users to phishing sites. This is because the DNS system includes no built-in methods to verify that the response to the request was not forged, or that any other part of the process wasn’t interrupted by an attacker. The DNS Security Extensions (DNSSEC) secures DNS lookups by signing your DNS records using public keys, so browsers can detect if the response has been tampered with. Another solution to this issue is DoH (DNS over HTTPS) and DoT (DNS over TLD).", + "Without DNSSEC, it\"'s possible for MITM attackers to spoof records and lead users to phishing sites. This is because the DNS system includes no built-in methods to verify that the response to the request was not forged, or that any other part of the process wasn’t interrupted by an attacker. The DNS Security Extensions (DNSSEC) secures DNS lookups by signing your DNS records using public keys, so browsers can detect if the response has been tampered with. Another solution to this issue is DoH (DNS over HTTPS) and DoT (DNS over TLD).", use: "DNSSEC information provides insight into an organization's level of cybersecurity maturity and potential vulnerabilities, particularly around DNS spoofing and cache poisoning. If no DNS secururity (DNSSEC, DoH, DoT, etc) is implemented, this may provide an entry point for an attacker.", resources: [ "https://dnssec-analyzer.verisignlabs.com/",