Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5

Thread: URL Masking

  1. #1
    Senior Member
    Join Date
    Aug 2003
    Location
    Melbourne, Australia
    Posts
    162
    Member #
    2563
    I can't seem to find info elsewhere in the forums on this....

    What is the best way to mask a URL so that end users can't work out the directory structure of your site? I know that if I were to use a frame then I could have the address in the URL box always stating http://www.kisstroyer.com but there is surely a better way to mask URLs than to use crappy frames.

  2.  

  3. #2
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Best way to mask urls is to use an exe or dll for all of your page generation. But any url masking will cause you issues with search engine positioning.

  4. #3
    Junior Member
    Join Date
    Jan 2005
    Posts
    1
    Member #
    8627
    Can you explain further how to generate pages with exe and dll for url masking?

  5. #4
    Senior Member mixu's Avatar
    Join Date
    Aug 2003
    Posts
    217
    Member #
    2815
    Basically you write a script that returns whatever is requested from the browser using some (potentially variable) identifier.

    eg. Let's say you have some files you only want to be accessible once, or only at a certain time etc. Store these files outside your "public" path on the web server.

    Write the script to respond to requests like this:
    http://www.example.com/masking-script.cgi?fileid=007

    by first sending the Content-type -header and then the contents of the file (eg. Content-type: text/html, <html>...</html> or Content-type: image/jpg etc.).

  6. #5
    Junior Member
    Join Date
    Jan 2005
    Posts
    3
    Member #
    8703
    If you're on an Apache server then the mod_rewrite is what you need. The RewriteRule will let you take your custom URL and transform it into whatever you need to to really be, without the user seeing the real URL. They will see your domain name, but not your file structure. The .htaccess file can also restrict their access to your diretory.

    Example http://yourdomain.com/wedgie/smith could really be http://yourdomain.com/cgi-bin/mx/pd.cgi/?some-stuff

    Worth looking at.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 07:55 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com