4 ms·
this is what the page claims to do: snippet from; view-source:https://redirectrussia.org/ https://redirectrussia.org/ ========================================
by rolph 5y ago
this is what the page claims to do:
snippet from;
view-source:https://redirectrussia.org/ https://redirectrussia.org/
==================================================
<h2>How it works</h2>
<img alt="Screenshot of redirect page" src="https://user-images.githubusercontent.com/2841780/156524271-bb4f7edd-7c5b-48c0-8872-8ec735d70411.png https://user-images.githubusercontent.com/2841780/156524271-..." class="screenshot">
<p> When someone from Russia visits your website, they'll be redirected to a page that looks
<a href="https://redirectrussia.org/?from=example.com https://redirectrussia.org/?from=example.com" target="_blank" rel="noopener noreferrer">
like this</a>. </p>
<p> They can find information about how they can help Ukraine and make change from within Russia. </p>
<p> The script is asynchronous, meaning that it shouldn't affect the page load time, and it uses a combination of timezone and IP address geolocation to identify traffic from Russia, so we don't make too many IP geolocation API requests. </p>
<h2>API</h2>
<p> You can configure the redirect URL, location detection method, IP geolocation API, and whether or not to add your domain to the redirect URL using the configuration generator above. </p>
<p> We also emit an event <code>redirect-russia</code> which you can listen to, for example to set up analytics: </p>
<pre>
<code>document.addEventListener("redirect-russia", (event) => { /* */ })
</code>
</pre>
<p> The code is open source and available on
<a href="https://github.com/pabio/redirect-russia https://github.com/pabio/redirect-russia" target="_blank" rel="noopener noreferrer">GitHub
</a>. </p>
===================================================