Useful PHP Scripts: Hide My Shit

joevis

hadouken expert
Jul 16, 2009
1,429
41
0
pineapple under the sea
Here you go bros. This script will make it so viewers will only be able to see your lander once, and then get redirected.

Put this in your header :

<?php
if (isset ($_COOKIE["hidemyshit"])) {
header('Location: http://www.cnn.com');
}
?>

Put this in your body somewhere:

<?php
$hotdog= 'we have a weiner';
setcookie("hidemyshit", $hotdog, time()+8640000);
?>

The time is set in seconds so you can mess around with it.
 
  • Like
Reactions: danke


Oh shit, government grants + google here I come!

+rep though, really.
 
Thanks for sharing, this could be really useful for my new project :-)
So lemme understand this.

1) First time visitors see lander
2) if they revisit at a later date, they get redirected directly to offer page?

sorry but had to ask this dumb question :D
 
Leaving the cloaking up to data stored on the visitors computer you're trying to hide from is pretty amateur.
 
Leaving the cloaking up to data stored on the visitors computer you're trying to hide from is pretty amateur.

It's a low level invisibility script for sure... Bost people have no idea when a cookie gets stored on their computer. Also, nobody deletes all cookies anymore because you'd erase too much useful shit.

You could hide by IP but:

1. What what if you accidentally block a whole group of people on accident, say a school?

2. What if you're running a huge campaign? I dunno how many clicks you get but I don't need my server going through 500K + IP addresses every time somebody hits my lander.

Also you can't really hide anything forever from somebody on the internet if he's really determined to get at it.