Skip to content

Instantly share code, notes, and snippets.

@eldhosejoys
Last active February 4, 2023 07:54
Show Gist options
  • Save eldhosejoys/fb1f9d954ae0986c1af692a25475182d to your computer and use it in GitHub Desktop.
Save eldhosejoys/fb1f9d954ae0986c1af692a25475182d to your computer and use it in GitHub Desktop.
Simple URL Generator for Google Redirect Notice Links. This may be useful in case of building backlinks (for increasing DR in Ahrefs), etc... Demo: http://siteurls.22web.org
<?php
$url = $_GET['url'];$url =htmlspecialchars($url);
$subdomains = array("maps","www","images","image","cse");
$tlds = array("com","it","co.in","cl","cr","pl","ch","br","com.au","es","co.ao","ca","be","com.au","com.br","ru","co.uk","ae","com.co","ee","gr","com.hk","hr","hu","lt","com.mx","no","com.ph","pt","ro","rs","se","si","sk","co.th","com.tw","com.ua","com.ar","ie","co.nz","com.vn","cz","fi","com.ng","com.ag","com.ai","co.ao","as","ba","com.bd","bf","bg","com.bh","bi","bj","com.bn","bs","bt","co.bw","by","com.bz","cat","cf","cg","ci","co.ck","cm","co.cr","com.cu","dj","dm","com.do","dz","com.eg","com.et","com.fj","ga","ge","gg","com.gh","com.gi","gl","gm","gp","com.gt","gy","hn","ht","im","is","je","com.jm","jo","co.ke","kg","ki","com.kw","kz","la","com.lb","li","lk","co.ls","lv","com.ly","mg","mk","ml","com.mm","mn","ms","com.mt","mu","mv","mw","co.mz","ne","com.np","nr","nu","com.om","com.pa","com.pg","pn","com.pr","com.py","com.qa","rw","com.sa","com.sb","sc","sh","com.sl","sm","sn","so","st","com.sv","td","tg","tk","tl","tn","to","tt","co.tz","co.ug","com.vc","com.ve","vg","co.vi","vu","ws","co.zm","co.zw","com.af","al","az","com.cy","lu","co.ma","md","me","com.my","ps","sr","com.tj","tm","co.uz","com.nf","ad","com.bo","cv","fm","com.kh","com.na","com.ni","ac","am");
echo "<h1>Google Redirect Notice Links Generator</h1>";
if(empty($url) OR !isset($url)){
echo "<form style='margin: 0; padding: 0;' action='' method='GET'><input name='url' placeholder='enter url'/><input style='display: inline;' type='submit' value='generate urls' /></form> </br>";
echo "url parameter is necessary to create Google Redirect Notice Links.</br>";
echo "for example: <a href='../?url=https://www.example.com/'>check this</a></br>";
echo "created by <a href='https://eldhose.org'>eldhose</a>.</br>";
}
else{
foreach($subdomains as $sd){
foreach($tlds as $tld){
echo "<a href='https://$sd.google.$tld/url?q=$url'>https://$sd.google.$tld/url?q=$url</a></br>";
}}}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment