Quote:
Originally Posted by Klen
It's a CPA network offer which allows only US traffic. But anyway, i figured out how it's done in PHP:
PHP Code:
<?php
ob_start();
header("HTTP/1.1 204 NO CONTENT");
header("Cache-Control: no-cache, no-store, must-revalidate"); // HTTP 1.1.
header("Pragma: no-cache"); // HTTP 1.0.
header("Expires: 0"); // Proxies.
ob_end_flush(); //now the headers are sent
?>
Produces same effect.
|
Been almost a decade since I wrote PHP, but AFAIK this should suffice.
PHP Code:
<?php
http_response_code(204);
?>