I run a link shortener, the users get paid for visitors which are using the short url. They see a landing page, and with a click at "skip" they are redirected. But some of my users try to cheat, instead of giving their visitors the short url like example.com/a/53425, they give them http://example.com/a/pugt.php?url=53425 with pugt.php are 2 sql queries performed:
the target url is retrieved from the database
the creator of the url gets +1 point per visitor.
That means that the visitors are redirected without seeing the ads at my landing page, and the user gets his points. Is there any way to hide this php file, or to perform this sql queries in a smarter way?
This is the source code of the "skip" button at my landing page: $url is the id of the short url like 53425
<section class="example">
<br/>
<a href="http://example.com/a/pugt.php?url=<?php echo $url; ?>" ><img style="display: block; margin-left: auto; margin-right: auto;width:15%; " src="img/proceed2.png"></a>
<br/>
<center><script src="//go.padstm.com/?id=345791"></script></center>
</section>