How to find email address by domain name on google search engine

Authors: CodeToday | Search Engine (Google, Bing) | Views: 1516 | Posted: 08 AM: 09/16/2017

When you have a domain name but you do not know the email address to contact, you can go directly to the website to search but the results will not be enough.

Today I will guide you how to find email address of any domain name through the google search engine. The query statement used here is: "[email protected][domain name]"

The query link from google search looks like this:"[email protected][domain name]". This command will search all email addresses with different prefix associated with the domain name to search.


<form action="" method="post" class="form-inline">
<div class="form-group">
<input type="text" name="domain" id="domain" value="<?=$_POST['domain']?>" size="80" class="form-control" placeholder = "Enter domain name here ..." required/>
<div class="form-group">
<button class="btn btn-info" type="submit" name="submit"><i class="glyphicon glyphicon-search"></i> Find Email Address</button>

PHP Full Source Code

if(isset($_POST['submit'])) {
	$url  = '"[email protected]'.trim($_POST['domain']).'"';
	echo '<p><pre>'.$url.'</pre></p>';
	$data = curlGet($url);
	$res = preg_match_all("/[a-z0-9_-+][email protected][a-z0-9-]+.([a-z]{2,3})(?:.[a-z]{2})?/i",$data,$matches);// Filter Emails 
	if ($res) {			
		echo '<ul>';
			foreach(array_unique($matches[0]) as $email) {	
				if(stristr($email,'@'.trim($domain))) { // Check if it matches this domain
					echo '<li>'.$email.'</li>';	
		echo '</ul>';	

function curlGet($url){
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_HTTPGET, 1 );
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1 );
	curl_setopt($ch, CURLOPT_FOLLOWLOCATION , 1 );
	curl_setopt($ch, CURLOPT_FOLLOWLOCATION , 1 );
	curl_setopt($ch, CURLOPT_URL, $url );
	curl_setopt($ch, CURLOPT_REFERER, $ref );
	curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
	curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);     
	curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
	$data = curl_exec($ch);
	return $data;

After doing the above, you will see the results as shown below:

How to find email address by domain name on google search engine

Note: If you search a lot through google search, maybe google will force you to enter captcha, after typing you use again as usual

If you have any questions, please leave a message below