DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Newsletter
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Pure Headless vs Hybrid Headless CMS: A Practical Decision Framework
  • Strapi v5: Customization Nuances
  • Mastering Approximate Top K: Choosing Optimal Count-Min Sketch Parameters
  • Combine Node.js and WordPress Under One Domain

Trending

  • Two Engines, One Query: DuckDB Inside Neo4j
  • PostgreSQL vs Oracle: When Higher Cost Means Better Performance
  • Idempotency Under Concurrency: Why Your Application Check Isn't the Last Line of Defense
  • Why Spark Executors Leave Cores Idle on YARN: A Packing Model for Executor Sizing

Draft This article hasn't been published, so readers can't see it.

In moderation This article is waiting for review, so readers can't see it yet.

Deleted This article has been deleted, so readers can't see it.

A Word on 'Deceptive Site Ahead' Warnings

Want to learn more about the "Deceptive Site Ahead Warning" in Google Chrome? Click here to learn more about this warning and how to disable it.

By 
Jake Adley
·
Updated Oct. 24, 18 · Tutorial
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
55.8K Views

Join the DZone community Save articles, join the discussion, and download Refcards and Trend Reports with a free account.

Join for free Already a member? Log in

What Is the Deceptive Site Ahead Warning?

Deceptive Site Ahead is a warning message that generally users find when accessing a website on Google Chrome browser. It halts the user from accessing the website, as it is infected with malware or a threat that the browser definition finds dangerous for the user to access. It processes the website as a big chance of a data breach or cyber-attack.

Chrome is considering the Deceptive site as a Phishing site.

Deceptive Site Warning Google Chrome

Other Browser Response

Check for your website in other browsers as well (like Firefox, IE, Safari, etc.). If they don’t show any warning or error message, you do not need to get panicked as it takes a little effort to fix it. But, if they show a warning or error, it a call of a serious issue and you need to get it solved ASAP.

Why Deceptive Site Ahead Warning?

Chrome shows the Deceptive Site Ahead warning for a website that carries the following possibilities of errors/mistakes.

  • The website carries malware or threat files
  • SSL Certificate not installed properly
  • Website traffic is not redirected to HTTPS
  • Mixed Content warning

Fixing the Deceptive Site Ahead Warning

1) Scan Website for Malware or Threat

The first reason for the warning is that the website is infected with malware or a threat. To fix this issue, first, scan your website through an online malware scanner or use any anti-malware software to find out the error file or page.

Once you find the file or page, delete it or remove the malware or threat and upload the file/page again.

Chrome will no longer show the Deceptive Site Ahead warning.

2) Install SSL Certificate Properly

  • If you have installed a Self-signed SSL Certificate in your server, the browser will not able to find the Certificate Authority or its roots, hence, it will show you the warning message.
  • If you have not installed SSL Certificate properly in your server, sometimes, the browser will show you the Deceptive Site warning as the browser is not able to communicate securely with the server.

Solution:

  • As the browser only accepts SSL Certificate from CA/B Forum verified Certificate Authority, you must install the trusted SSL Certificates like Comodo, GeoTrust, RapidSSL, Thawte, etc.
  • As the proper SSL Certificate installation is necessary, you can follow this SSL installation guide that contains the quick SSL installation process for the different web server.

3) Redirect the Website From HTTP to HTTPS (301 Redirections)

Admin installs the SSL Certificate into the website server, but sometimes, they forget to apply the redirection code that turns the HTTP users into HTTPS. If the redirection method is not applied, the browser considers both URL (HTTP and HTTPS) as an individual, which makes a conflict and it turns into a deceptive site ahead warning.

If you are using a WordPress, you can use the following HTTP to HTTPS redirection code in your .htaccess file.

<IfModule mod_rewrite.c>
RewriteEngine On 
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]
</IfModule>


If you are using other Content Management System or website development platform, you can use their own redirection methods.

4) Remove Mixed Content Warning

If everything works fine with your website, you scanned for malware, SSL is installed properly, 301 redirections were applied, but still, you face the warning message in the browser, there might be "mixed content" in your website.

A mixed content in technical language is the mixture of HTTP and HTTPS pages in your website. If a website carries the mixed content, the browser will not consider your website as an encrypted source and shows the warning message on the screen.

Content management system

Opinions expressed by DZone contributors are their own.

Related

  • Pure Headless vs Hybrid Headless CMS: A Practical Decision Framework
  • Strapi v5: Customization Nuances
  • Mastering Approximate Top K: Choosing Optimal Count-Min Sketch Parameters
  • Combine Node.js and WordPress Under One Domain

Partner Resources

×

Comments

Loading comments

The comments didn't load

Please try again in a moment.

Likes

Loading

The next likes didn't load. Please try again.

The likes didn't load

Please try again in a moment.

See who liked this

Log in or join DZone for free to see who liked this article.

Log in Join for free
  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook