Quantcast

What works and what is paused ยท Email is limited to account activation and password resets.

Jump to content


Fox1337

Member Since 18 Sep 2005
Offline May 18 2010 06:05 AM

#1283512 Bullshit, or not?

Posted by Fox1337 on 26 April 2010 - 11:59 AM

TNT uses PHP. Not Apache.

Write me a PHP code that tells me when a user doesnt load images when they visit a php page please.


PHP is an extension to the web server that interprets PHP scripting. Apache is the back-end HTTP daemon that handles the requests that your browser (or your AutoBuyer!) is making. Every single HTTP request made by any application is going to be handled by whatever HTTPd is running on the target server and if somebody wanted to, they could very well set something up that would create an easy filtering system for those requests to weed out those that aren't properly emulating a browser's behavior.

Just because you don't see the requests don't mean they aren't being made. All I did was navigate to neopets.com/ in firefox and there was 70 unique requests to the Neopets server. Granted this was with a clear cache so in a real world situation a good portion of those would be cached, but it's certainly a proof of concept for you.

Posted Image

Write me a PHP code that tells me when a user doesnt load images when they visit a php page please.


... But since I like a challenge:

index.php

<img src="image.jpg">
<?php
session_start();
echo ((isset($_SESSION['loaded']))?"You've loaded the image ".$_SESSION['loaded']." times before now.":"You haven't loaded the image!");
?>


image.gif
<?php
session_start();
if(!isset($_SESSION['loaded'])) $_SESSION['loaded']=1;
else $_SESSION['loaded']++;
$im = imagecreatetruecolor(1,1);
header('Content-type: image/gif');
imagegif($im);
imagedestroy($im);
?>


.htaccess
AddType application/x-httpd-php .gif


Crude implementation? Absolutely. But it does exactly what you wanted!