amberlynn
03-14-2003, 04:17 PM
does anyone know how to put something into your index page, that will block referral sites? Say.. if someone clicked on a link to my site from http://asdfsite.com, they wouldn't be able to access it?
|
Click to See Complete Forum and Search --> : How To Block Referred Visitors amberlynn 03-14-2003, 04:17 PM does anyone know how to put something into your index page, that will block referral sites? Say.. if someone clicked on a link to my site from http://asdfsite.com, they wouldn't be able to access it? Jona 03-14-2003, 05:39 PM You can use document.referrer, but it doesn't work in all browsers. pyro 03-14-2003, 06:08 PM Originally posted by Jona but it doesn't work in all browsers. So, you'd be better of going server side for this... khalidali63 03-14-2003, 06:43 PM you can use window.history object but that will not be a good solution. Or you can allow any one to come to a main page that has login info,and the rest of the site is only available once a user is logged in,now this type of solution will work for sure. Cheers Khalid Nedals 03-14-2003, 07:04 PM Why would you want to do that? Most of us want links to our sites. Perhaps you are trying to solve a different problem!!:) I just saw your OTHER post [ur]http://forums.webdeveloper.com/showthread.php?s=&threadid=5974[/url] Since this post has more info, I'll continue here. Sounds like you have a nasty problem. Even if you go to the trouble of protecting yourself from referals from 'that site' and the user gets a 'NOT FOUND' message, they can still re-enter your URL into thier address window and get to you that way. One suggestion is to code your index page with a NOT FOUND message then have friends and family (yours) enter your site using. www.yourdomain.com/secretpage.html. Then only people who know (or can guess) the name of the secret (or other internal) pages will be able to access your site. If you need help with that, we can post code or I'll do it for you khaki 03-14-2003, 11:45 PM Hi Amberlynn... I have to admit that I don't know if this will help you (or even if it works properly. But I do know someone who used it and they got it to do what they needed it to do), so maybe look into this: http://javascript.internet.com/user-details/referrer-redirect.html Good luck finding your solution. There are way too many freaks out there! k Nedals 03-15-2003, 01:14 PM Kahki, That occured to me after my post. Did you read the other post that explains the problem? Maybe the redirect could be to a very nice :rolleyes: porn site! (but I guess the family members might get sent there as well. So, perhaps it's not such a good idea) JerryWMac 03-17-2003, 09:50 AM Hi Khaki, Thanks for the redirect, and yes I do like it.. However she says does not want the chance to send family members to a sex exchange web site.. Ok, fine, mark teh end URL from tehm as sending them to anyotehr site on the web you want, sesami stree, disney, CNN, Christianity online, devils decyples online, the jokes page, etc . the list is limitless. And ionly you have the control for doing that and controlling what is on your page. As matter of course, If I were you though, I definately would NOT post private info phone numbers addresses etc. etc. on any web page.... khaki 03-17-2003, 10:09 AM Hi Jerry... I'm glad you were able to use that script (any chance you could forward a working version of it to me so that I can actually see it in action? I only referred that script... I never even used it before :rolleyes: ) And welcome to the forum. I've seen you pop-up twice now in threads that I've been following. It's always nice to see new faces. take care... k JerryWMac 03-17-2003, 12:31 PM I took a quick look a tthe redirect above, it is a java script redirection piece. http://javascript.internet.com/user-details/referrer-redirect.html. (http://javascript.internet.com/user-details/referrer-redirect.html.) Managed to take a fair look at it, and seemed to handle the job. Currently I am not using it. Was making a comment that it That I did like it... I have seen the simple flat out java redirection after a minor 5 second pause, this was different in that permits redirection based on where you came from Nedals 03-17-2003, 01:22 PM I'm suprised that we have not heard back from amberlynn. Perhaps she has solved the problem. My concerns with the 'referrer' method is three fold. Firstly, as Jona mentioned it doesn't work in all browsers. Secondly, as Charles has pointed out in several posts, some 10% of users disable javascript. Thirdly, if these are really 'unsavory people', they simply have to enter the URL in the browser address line and bypass the 'referrer' script. Hence my suggestion of using a 'secret page'. JerryWMac 03-17-2003, 01:48 PM Going on what you said, and yes it is absolutely true, tehy can do that, just type in the URL. however, as you said, new page same URL, secret entrance. Many ISPs don't like those... Actually if you rename all the pages, and links on her pages, then starting on the initial index.htm and have the java script ship the referrals from the bad URL elsewhere off of her page, or to a error 404 html. and then off to someo other site. And on the ultimate page where your family and friends end up.. have them place a single letter change to the actual URL and the enter her URL. Complete new page names.... webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |