Hello,
Just wondering if anyone has any method's on how to disguise a file path. I have a php file that show's a few file path's and my ip when viewing source. This can be used to hotlink to my files for a script, that other's can hotlink to and use for there's aswell. So what im trying to do is make a false path that will show when a user views source, that the path shown wont work when entering it from browser or when trying to hotlink, but will work for my page only using the true path.
Example:
(true Path) http:/mysite.com/blah/blah2/index.php
(False Path) http:/mysite.com/test/index.php
somthing like this, exept the false path wont work, but only for my page if thats possiable.
So im wondering on how i can do this, any ideas?
Disguise a filepath?
Started by Empresive, Dec 12 2008 07:50 PM
2 replies to this topic
#1
Posted 12 December 2008 - 07:50 PM
#2
Posted 13 December 2008 - 01:57 AM
Which sort of scripts are you concerned about? Unless there is something fancy going on, they can't do it with Javascript due to the Same Origin Policy. It is possible to "include" your PHP scripts but you can set that in your PHP.ini to prevent as well.
Edited by SpatialVisionary, 13 December 2008 - 01:57 AM.
#3
Posted 13 December 2008 - 04:18 PM
http://www.pixel2lif...showtopic=43620 <-- Same concepts in that topic apply to what you are trying to do.
However, if you want to prevent hotlinking, just use some .htaccess:
http://www.google.co...cess+hotlinking
However, if you want to prevent hotlinking, just use some .htaccess:
http://www.google.co...cess+hotlinking
Edited by rc69, 13 December 2008 - 04:18 PM.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
