timmah1 Posted November 8, 2008 Share Posted November 8, 2008 I'm trying to do a stupid little prank on my friend. How do I get this to work <a href="file:\C:" target="_new">I can see your computer!</a> Right now, it does nothing. I want them to be able to click on the link and it actually shows their hard drive from the website. I know it's stupid, but this person knows nothing about computers and he might actually think I see his computer Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/131935-trying-a-prank/ Share on other sites More sharing options...
Yesideez Posted November 8, 2008 Share Posted November 8, 2008 Try this: <a href="file://C:" target="_new">I can see your computer!</a> Link to comment https://forums.phpfreaks.com/topic/131935-trying-a-prank/#findComment-685446 Share on other sites More sharing options...
bobbinsbro Posted November 8, 2008 Share Posted November 8, 2008 i tried both. google's chromium browser tells me i am not allowed to load local resource file:///C:/ sorry. Link to comment https://forums.phpfreaks.com/topic/131935-trying-a-prank/#findComment-685448 Share on other sites More sharing options...
BillyBoB Posted November 8, 2008 Share Posted November 8, 2008 Try file:///c:/ This worked on my version of google Chrome(up to date). Link to comment https://forums.phpfreaks.com/topic/131935-trying-a-prank/#findComment-685450 Share on other sites More sharing options...
Yesideez Posted November 8, 2008 Share Posted November 8, 2008 Works fine for me, Firefox shows all my files in a nice browser... Link to comment https://forums.phpfreaks.com/topic/131935-trying-a-prank/#findComment-685451 Share on other sites More sharing options...
Mchl Posted November 8, 2008 Share Posted November 8, 2008 It does, when I type the address into address bar, but not when it is a link from html. Link to comment https://forums.phpfreaks.com/topic/131935-trying-a-prank/#findComment-685452 Share on other sites More sharing options...
timmah1 Posted November 8, 2008 Author Share Posted November 8, 2008 Everyone of them works, if I type it in, but not from a html link. Is there any way around this? Link to comment https://forums.phpfreaks.com/topic/131935-trying-a-prank/#findComment-685555 Share on other sites More sharing options...
Mchl Posted November 8, 2008 Share Posted November 8, 2008 Maybe by setting Location header??? [edit] Tested: doesn't work Link to comment https://forums.phpfreaks.com/topic/131935-trying-a-prank/#findComment-685557 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.