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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 02-17-2007, 02:23 PM   #1
fuzzylogic
Confirmed User
 
fuzzylogic's Avatar
 
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

like this:
http://mofo-domain/DSK20070217063051...V/mofo-img.jpg
fuzzylogic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-17-2007, 03:06 PM   #2
Nookster
Confirmed IT Professional
 
Industry Role:
Join Date: Nov 2005
Location: Hollywood, CA
Posts: 3,744
$solution = $PHP + .htaccess;
Nookster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-17-2007, 06:39 PM   #3
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
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
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-17-2007, 06:58 PM   #4
quantum-x
Confirmed User
 
quantum-x's Avatar
 
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..
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.