Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Need Website Coding Help

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Versed's Avatar



    Join Date
    May 06, 2008
    Last Online
    Jun 22, 2011
    Posts
    729
    Threads
    69



    Need Website Coding Help


    I need to secure a single web page so that it only allows access from a followed link.

    Basically I don't want some one typing in www.mysite.com/page and being able to access it.

    I was pretty sure that you could put a code into the <header> tag that restricted access.

    I know about htaccess files but I was under the impression these only work for the whole website and not a single page.

  2. #2
    Drunken F00l's Avatar



    Join Date
    Dec 11, 2004
    Last Online
    Jun 11, 2019
    Posts
    5,874
    Threads
    182
    Reputation
    SourceOP Thread


        
    Steam: 76561197968459473 
    Steam join date: Aug 23, 2004
    Steam Level: 56
    Profile Status: Public



    Why wouldn't you want people to be able to directly access a page? Seems strange.

    You're going to want to use an htaccess file.

  3. #3
    Redneck's Avatar



    Join Date
    Jul 13, 2008
    Last Online
    Oct 28, 2010
    Posts
    245
    Threads
    15




    I don't know if you mean that you want to only allow authenticated access to a file/dir or provide access to a link without authentication, but I think the latter is a bad idea.

    Cox Communications provides a service called the "Digital Vault" where you can share private media with other people. The trouble is, it's based merely on security by obscurity - the link is obfuscated in such a way that you don't know what it's going to pull up, but a million monkeys typing on a million typewriters would find most of the files in a short amount of time without previously having been given the link. It's just a long series of characters. Not truly private!

    PHP or CGI perl can handle the former as well, albeit not as well as htaccess (or NTFS permissions or ASP in IIS). So, I would use an authentication scheme.

  4. #4
    Versed's Avatar



    Join Date
    May 06, 2008
    Last Online
    Jun 22, 2011
    Posts
    729
    Threads
    69




    I'm trying to secure my eBook I'm going to be putting up soon. To get it you need to pay through PayPal and then PayPal sends you to the download page.

    I don't want people to be able to bypass the PayPal part. I want to set it up so they have to come from the PayPal checkout in order to get access.

  5. #5
    Drunken F00l's Avatar



    Join Date
    Dec 11, 2004
    Last Online
    Jun 11, 2019
    Posts
    5,874
    Threads
    182
    Reputation
    SourceOP Thread


        
    Steam: 76561197968459473 
    Steam join date: Aug 23, 2004
    Steam Level: 56
    Profile Status: Public



    Gotcha. But then if I or any other malicious user figures out where people are coming from, I can just fake the referrer. Not the most secure way, but will probably stop most people. Htaccess should be able to do it, I just don't know the specifics and I'm sure you're good at Googling.

  6. #6
    JasonMaverick's Avatar



    Join Date
    May 05, 2009
    Last Online
    May 07, 2009
    Posts
    9
    Threads
    3




    I would suggest joomla. Check it out, you might like it. Just google it.

  7. #7
    Redneck's Avatar



    Join Date
    Jul 13, 2008
    Last Online
    Oct 28, 2010
    Posts
    245
    Threads
    15




    I dunno, honestly I would just self-publish the book on Amazon. Low maintenance for you, and you'd instantly have a larger audience.

    Btw, you going to give us a free copy? What's the subject matter, anyway?

  8. #8
    avy's Avatar



    Join Date
    Dec 06, 2007
    Last Online
    Jul 14, 2011
    Posts
    579
    Threads
    16




    All I know is, it better have more pictures than words.

  9. #9
    chernobyl_blessing's Avatar



    Join Date
    Jan 18, 2009
    Last Online
    Jun 13, 2010
    Posts
    63
    Threads
    1




    I wants a free copy if possible.

  10. #10
    Hell-met's Avatar



    Join Date
    Feb 15, 2008
    Last Online
    Jul 17, 2014
    Posts
    4,310
    Threads
    64




    Quote Originally Posted by chernobyl_blessing
    I wants a free copy if possible.
    you don't even know what it is you enormous tard

Page 1 of 2 12 LastLast

Tags for this Thread