How to do this?

Sharky Forums


Results 1 to 2 of 2

Thread: How to do this?

  1. #1
    Tiger Shark DVD-Man's Avatar
    Join Date
    Dec 2000
    Location
    Perth, Australia
    Posts
    620

    How to do this?

    Is there an easy way to do this with a CGI script or somethng?

    Have like a really long URL so the user can't really understand it in the address bar like a lot of other sites do for example:

    http://www.mysite.com/1256wyijhdlp$jjhjj%blahblahblahblahblahblahblah

    & like whenever the user goes to this URL the script creates a random location for the page.

    If your having trouble understanding me...well, ya see, I have a permenent location for a page...I don't really want users "directly" accessing it so instead of leaving it at it's permanet location I want the script to generate the random location of it.

    As for the URL thing.....would like something like the above so the user can't find the direct location of the script easy either.

    Intel Core 2 Duo 6750 2.66Ghz
    Thermaltake 430W-XP 550 NP
    Asus P5K
    1GB Kingston DDR2/667
    320GB Seagate
    Pioneer DVD-105S 16X DVD-ROM (Slot-Load)
    Samsung 16X/48X Dual Layer
    17" Sony CPDE 230 (Flat)
    Asus GeForce 7200GS
    Sound Blaster Audigy 2 Platinum
    Microsoft Natural Keyboard Pro
    Ms Intellimouse Optical with intellieye
    Midiland S4 8200 5.1 Dolby Digital Speakers (Using ADS-3000 Decoder)
    Netcomm NB5Plus4/8MB ADSL Connection
    Windows 2000 Professional

  2. #2
    Hammerhead Shark e_dawg's Avatar
    Join Date
    Jan 2001
    Location
    Earth, Western Hemisphere, North America, US, UT, SLC
    Posts
    2,628
    In the script check the HTTP-Referrer, if it is not within your domain, give them a nice, happy redirect to a page you'd like them to link to.

    You can put junk on the end, but that's silly and doesn't really help you out. You could put a session on there, but the referrer is far simpler to check than passing a session out on the URL and then checking that it is valid on every page hit, unless you're already doing it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •