How to Hide the URL?

Discussion in 'PHP' started by solutions.50webs.com, Mar 7, 2011.

  1. #1
    I'm trying to play video's on site, but I want to hide the location of the video/embed video url. can you do it using php or javascript or any other programming. if yes then pls let me know how can i do?
     
    solutions.50webs.com, Mar 7, 2011 IP
  2. property

    property Peon

    Messages:
    134
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    write htaccess file to url of the page
     
    property, Mar 7, 2011 IP
  3. solutions.50webs.com

    solutions.50webs.com Peon

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    it is not page url. video/youtube url. do u explain in more specific?
     
    solutions.50webs.com, Mar 7, 2011 IP
  4. eleetgeek

    eleetgeek Peon

    Messages:
    129
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Using php u can hide it, hell, not just hide it but also block people who are smart enough to figure out the video source file ... its long coding and I am not sure, if anyone here can help u write a huge logical code... try searching some blogs....
     
    eleetgeek, Mar 7, 2011 IP
  5. dzlalov

    dzlalov Greenhorn

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #5
    Hi, you can do it using javascript. Several solutions are possible:
    1. You can use encrypted javascript in an external file to generate the whole flash embed code
    2. You could use .js to overwrite some default fake path and load swf with the real path
    3. You could use .htaccess to prevent/forbid direct access to the resource . swf . i.e - copy-paste i the browser will return an error
     
    dzlalov, Mar 7, 2011 IP
  6. awood969

    awood969 Member

    Messages:
    186
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    40
    #6
    You could always use apache's mod_rewrite extension to put in a "fake" address and have the real address stored inside the .htaccess file with the RewriteRule. This file is inaccessible by anything but the linux user itself so would be the most hidden I could make a link off the top of my head. This would however mean people could take the "fake" link to gain acces...However you can ensure that this also would fail by using the apache server variable REQUEST_URI and using this to make sure it only reveals the true URL if it has come from your page, not directly etc...
     
    awood969, Mar 7, 2011 IP