|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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!!
![]() |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
hey guys i want to download this files without displaying original urls any idea ?
|
|
#5
|
|||
|
|||
|
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? |
|
#6
|
|||
|
|||
|
yes i solve the problem but thanks try this...
![]() PHP Code:
|
|
#7
|
||||
|
||||
|
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 ![]() |
|
#8
|
|||
|
|||
|
i think download.php is best way
![]() |
|
#9
|
|||
|
|||
|
Keep in mind that any smart person would still be able to look in their download manager to see where the download came from...
|
|
#10
|
|||
|
|||
|
that is true but this is wrote for not smart persons
![]() |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Hide Links |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|