What I do to my website that someone can not access to directly

4 replies
I am not a fine webdeveloper . I want to know that what should i do so that somecan not access my webpage directly e.g.this is my website domain name "www.example.com"
and i have a pages "services.php" so what i do that some can not access directly putting the url in the browser as
www.example.com/services.php
#access #directly #website
  • Profile picture of the author jiteshjk
    You need to place some restriction for it, add me on Skype - jiteshdhamniya. i can help
    Originally Posted by kashifriazghgh View Post

    I am not a fine webdeveloper . I want to know that what should i do so that somecan not access my webpage directly e.g.this is my website domain name "www.example.com"
    and i have a pages "services.php" so what i do that some can not access directly putting the url in the browser as
    www.example.com/services.php
    Signature

    Premium WordPress Themes, Plugins and HTML Templates
    http://NavThemes.com/

    {{ DiscussionBoard.errors[9751176].message }}
    • Profile picture of the author kilgore
      Not sure what tools you have at your disposal, but if you're running Apache, you could try putting this into your httpd.conf or an .htaccess file.

      Code:
      <Files services.php>
              Order deny,allow
              Deny from all
              # Optional: if you wanted to allow people from the IP below to access the file directly 
              Allow from 100.50.200.25
      </Files>
      There are tons of other ways to accomplish what you want to do, but this is probably one of the easiest.
      {{ DiscussionBoard.errors[9752099].message }}
      • Profile picture of the author dutchguy
        The fact that you're not a developer is not an excuse for not properly explaining what you're trying to achieve here.

        You don't want a webpage to be accessed directly but in what way do do want this page be reachable.

        Do you want members to create an account and then login and after login be able to acces this page and maybe some other page.

        Or is there a payment to be made after the payment this page can be reached wihout creating an account.

        You want to block acces to the entire world except yourself (or your IP address).

        Something else .... ?

        I'm happy to help and pretty sure that I or any other developer on this forum can, but you need to explain what you want to achieve more precise.
        {{ DiscussionBoard.errors[9752514].message }}
        • Profile picture of the author emuigai
          Originally Posted by dutchguy View Post

          The fact that you're not a developer is not an excuse for not properly explaining what you're trying to achieve here.

          You don't want a webpage to be accessed directly but in what way do do want this page be reachable.

          Do you want members to create an account and then login and after login be able to acces this page and maybe some other page.

          Or is there a payment to be made after the payment this page can be reached wihout creating an account.

          You want to block acces to the entire world except yourself (or your IP address).

          Something else .... ?

          I'm happy to help and pretty sure that I or any other developer on this forum can, but you need to explain what you want to achieve more precise.
          Great response. More info needed
          {{ DiscussionBoard.errors[9753406].message }}

Trending Topics