|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Join Date: Jun 2004
Location: buffalo, las vegas. icq: 285808879
Posts: 4,796
|
How can I insert a long, random string into an Img Url
|
|
|
|
|
|
#2 |
|
Confirmed IT Professional
Industry Role:
Join Date: Nov 2005
Location: Hollywood, CA
Posts: 3,744
|
$solution = $PHP + .htaccess;
__________________
The Best Affiliate Software, Ever. |
|
|
|
|
|
#3 |
|
►SouthOfHeaven
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
|
lotsa ways , depends on how your using it..
if you put an htacess in a folder called "stb" like this RewriteEngine on RewriteRule ^(.*)\.jpg http://www.yoursite.com/stb/img.php?in=$1 [nc] then in img.php in the same folder <?php $ein = explode("/",$in); $out = $ein[1]; header("Location: http://yoursite.com/secretfolder/$out.jpg"); ?> That would turn yoursite.com/stb/jg7y7iyikuiu6ujk7/test.jpg turn into yoursite.com/secretfolder/test.jpg
__________________
hatisblack at yahoo.com |
|
|
|
|
|
#4 |
|
Confirmed User
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
|
All due props to smokey, but had to chime in - don't rely on the code above for anything valugely security related
By using Location, your brower makes the request to the 'secretfolder' - so finding out the secret folder is trivial. If that's not a problem, then you're sweet. Would be much faster to do a plain rewrite, though.. |
|
|
|