View Single Post
Old 12-28-2021, 09:45 AM  
ZTT
Confirmed User
 
ZTT's Avatar
 
Industry Role:
Join Date: Apr 2019
Posts: 657
If all you want is a basic way to to hide the link code from the visitor and count the clicks it's as simple as something like:

yoursite.com/link.php?url=pornosite.org

link.php:

<?php

$url = $_GET['url'];

$file = $url;

$hit = file_get_contents ($file);

$hit = intval($hit) + 1;

file_put_contents($file, $hit);

header('Location: https://www.'.$url.'/affiliatecodestuff=123456');

?>

Obviously you can add to that with more security or logging, preventing the same IP registering more than once, etc.
__________________
__________________
ZTT is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote