![]() |
[Tech] Redirections in PHP file
this is copied. i modified some of it.
I'm using this php jump script for my affiliate links. Simply copy and paste following code to a text editor on your PC. I use Pspad Code:
<?php ads.php and uploaded to /go/ directory, linking to following URL will redirect user to example1.com. Code:
http://pornstuffarooni.com/go/ads.php?v=fish We don't want Google to crawl these redirections. We can easily prevent it and other bots from crawling these files by blocking access to the directory. So open your robots.txt file and add following code to it. Code:
User-agent: * |
I would also add a header that explicitly changes the HTTP response code to 302:
header("HTTP/1.0 302 redirect"); header("Location: $link"); |
You also have no default case. If $v isn't fish/oil/grapes then your server will tell the browser to redirect to a blank URL.
|
Quote:
|
bump for friday
|
Quote:
|
All times are GMT -7. The time now is 03:33 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc