General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old April 19th, 2003, 11:45 PM
stfu stfu is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 19 stfu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hide Links

Hello everybody,

I have db in mysql with links of games in web site so let say you browse that site and found Game1 you click on link http://domain.com/details.php?mid=94
where 94 is id of Game1 in database when you click on that link it will open new window with picture of game synopsis, links for download links can be one two three or four example http://domain.com/game1 cd1.iso cd2, cd3... i want to hide that link i don't want to see it in source of site index i want to be something like that http://domain.com/download.php?mid=94?cd1 and that redirect to http://domain.com/game1 cd1.iso that's all any idea ?

Thanks in advanced

Reply With Quote
  #2  
Old April 20th, 2003, 05:59 AM
fakker fakker is offline
The calm b4 the storm
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Manchester, UK
Posts: 404 fakker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via Yahoo to fakker
could you give more precise instructions about how you want to "hide the Link" ..?? I'm afraid I dont really understand what you mean!! sorry!!
__________________
Matt 'Fakker' Facer

mattfacer.com

Reply With Quote
  #3  
Old April 20th, 2003, 09:13 AM
stfu stfu is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 19 stfu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
let say you have Game Warcraft on two isos cd1.iso and cd2.iso you have all that information in sql db you have index.php with url link:
http://domain.com/details.php?gameid=94 where gameid is warcraft id in db
you click on that link and new window are open on this new window you have two links for download:
http://domain.com/games/war3/cd1.iso http://domain.com/games/war3/cd2.iso

and you don't want someone to see this links in page source for that point you whant to replace them with something like that:
http://domain.com/download.php?gameid=94?cd1
http://domain.com/download.php?gameid=94?cd2
so when someone view your page source he will see that:
"http://domain.com/download.php?gameid=94?cd1"
"http://domain.com/download.php?gameid=94?cd2"
and you want this links to work on that way when someone click on them they will redirect him to:
http://domain.com/games/war3/cdx.iso

with two words you want to hide this:
http://domain.com/games/war3/cdx.iso
with this:
http://domain.com/download.php?gameid=94?cdx and this redirect to cdx.iso

sorry for my bad english

Last edited by stfu : April 20th, 2003 at 09:16 AM.

Reply With Quote
  #4  
Old April 21st, 2003, 10:43 AM
stfu stfu is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 19 stfu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hey guys i want to download this files without displaying original urls any idea ?

Reply With Quote
  #5  
Old April 21st, 2003, 11:36 PM
avit avit is offline
Not Yet Perfect
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: Squamish, BC
Posts: 111 avit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via ICQ to avit
Have your download.php script send back a header location:

Code:
<?php
// Get link from database, then do:
header("Location: $iso_link");
?>


Is that it?

Reply With Quote
  #6  
Old April 22nd, 2003, 03:59 PM
stfu stfu is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 19 stfu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
yes i solve the problem but thanks try this...
PHP Code:
 $url="Location: ".$link_url;
header($url);
exit; 

Reply With Quote
  #7  
Old April 24th, 2003, 08:11 AM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 653 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 47 m 52 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
You could always use javascript to prevent people from right clicking on the page to get your url's... also you could put the actual page with the url information into a frame that way when they go to view the source it doesn't show your source..

or you can use the download.php link like avit suggested that protects your links as well

Reply With Quote
  #8  
Old April 24th, 2003, 10:54 AM
stfu stfu is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 19 stfu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i think download.php is best way

Reply With Quote
  #9  
Old April 24th, 2003, 06:23 PM
avit avit is offline
Not Yet Perfect
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: Squamish, BC
Posts: 111 avit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via ICQ to avit
Keep in mind that any smart person would still be able to look in their download manager to see where the download came from...

Reply With Quote
  #10  
Old April 24th, 2003, 06:33 PM
stfu stfu is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 19 stfu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
that is true but this is wrote for not smart persons

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Hide Links


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway