View Single Post
Old 04-05-2023, 12:29 PM  
Kittens
👏 REVOLUTIONARY 👏
 
Kittens's Avatar
 
Industry Role:
Join Date: Jan 2016
Posts: 1,440
Quote:
Originally Posted by Klen View Post
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);
?>
__________________
Kittens is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote