1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Set user's home page automatically?

Discussion in 'General Programming Chat' started by reinie, Feb 18, 2010.

  1. reinie

    reinie Elite Member

    Joined:
    Jan 16, 2009
    Messages:
    1,574
    Likes Received:
    1,040
    Guys
    I have been searching for this answer with no success.

    I want to set visitors homepage to a site without promting them.
    I did a few google searches and found this one that said it is possible but requires ActiveX
    http://www.webmasterworld.com/forum91/1685.htm

    Can anyone please assist me on how to do this?
    Thanks ;-)
     
  2. reinie

    reinie Elite Member

    Joined:
    Jan 16, 2009
    Messages:
    1,574
    Likes Received:
    1,040
    Anyone?
     
  3. fatboy

    fatboy Elite Member

    Joined:
    Aug 13, 2008
    Messages:
    1,618
    Likes Received:
    3,227
    Occupation:
    Retired
    Location:
    Old Peoples Home
    Ooo bit of a tricky one since the old days of Javascript fun and games.
    I thought this would of worked:

    Code:
    <html>
    <head>
    <script type="text/javascript">
    function setHome() 
    {
    	document.body.style.behavior='url(#default#homepage)';
        document.body.setHomePage('http://bbc.co.uk');
    }
    </script>
    </head>
    
    <body onLoad="setHome()">
    :)
    </body>
    
    </html>
    
    However, there is a permission denied message when I try it in IE......oooo I see a challenge :D
     
  4. spillsplash

    spillsplash Junior Member

    Joined:
    Feb 14, 2010
    Messages:
    121
    Likes Received:
    54
    I see this pissing a lot of people off haha
     
  5. reinie

    reinie Elite Member

    Joined:
    Jan 16, 2009
    Messages:
    1,574
    Likes Received:
    1,040
    will pay for a solution.. :)
     
  6. reinie

    reinie Elite Member

    Joined:
    Jan 16, 2009
    Messages:
    1,574
    Likes Received:
    1,040
    Which browsers does it work in?
     
  7. reinie

    reinie Elite Member

    Joined:
    Jan 16, 2009
    Messages:
    1,574
    Likes Received:
    1,040
    Has anyone checked it out yet?
     
  8. phpmentor

    phpmentor Newbie

    Joined:
    Feb 27, 2010
    Messages:
    17
    Likes Received:
    2
    Which scripting language and server OS r u using ?
     
  9. phpmentor

    phpmentor Newbie

    Joined:
    Feb 27, 2010
    Messages:
    17
    Likes Received:
    2
    This should work if you keep this inside the head tags
    HTML:
    <META  http-equiv="refresh"  content="1;URL=http://bbc.co.uk">
    
     
  10. facebookdude

    facebookdude Elite Member

    Joined:
    Feb 28, 2010
    Messages:
    1,506
    Likes Received:
    2,490
    Does it work?
     
  11. vette09

    vette09 Junior Member

    Joined:
    Sep 28, 2009
    Messages:
    174
    Likes Received:
    40
    Occupation:
    Traveler
    Location:
    Earth - I travel full time.
    sounds like a great way to get banned by your host. I know I'd report you in a new york minute.
     
  12. kaidoristm

    kaidoristm Power Member

    Joined:
    Feb 13, 2009
    Messages:
    561
    Likes Received:
    726
    Occupation:
    Freelancer
    Location:
    Estonia
    Home Page:
    This will only redirect to this page. Will not set it to your homepage.
     
  13. reinie

    reinie Elite Member

    Joined:
    Jan 16, 2009
    Messages:
    1,574
    Likes Received:
    1,040
    Yes that only directs them...
     
  14. phpmentor

    phpmentor Newbie

    Joined:
    Feb 27, 2010
    Messages:
    17
    Likes Received:
    2
    Yes it will only redirect. if the server is apache you can use .htaccess or global.asa if IIS Server

    it will be good to know for which webserver you want to configure for
     
  15. reinie

    reinie Elite Member

    Joined:
    Jan 16, 2009
    Messages:
    1,574
    Likes Received:
    1,040
    I bumped this thread to see if anyone had figured out a way yet?
     
  16. antwanmon

    antwanmon Newbie

    Joined:
    Nov 9, 2009
    Messages:
    39
    Likes Received:
    7
    Yea..Your best bet is redirecting them. Setting something as their homepage would be pretty tricky.
     
  17. smack

    smack Junior Member

    Joined:
    Feb 1, 2010
    Messages:
    182
    Likes Received:
    78
    Occupation:
    Software Engineer/Evil Genius
    Location:
    inside .NET
    most of the ways to do this have been sandboxed by current browsers, probably for exactly the reason you want to do it. ;)

    active x would probably work great for it, only problem being that most modern browsers are also pretty strict about client executable code as well. ie will prompt the hell out of you when a site tried to install or execute an active x control unless you have your security settings very low or already have a trust relationship with the site. since your average surfer tends to leave their security settings in the out of the box configuration, that would probably make this a hit or miss proposition as well.

    i'm sure there are exploits out there somewhere though. good luck.
     
  18. voyevoda

    voyevoda Regular Member Premium Member

    Joined:
    Mar 21, 2010
    Messages:
    217
    Likes Received:
    97
    Location:
    Eastern Front
    Yeah, there is no way to do this currently. It would be grossly abused.
     
  19. bertbaby

    bertbaby Elite Member

    Joined:
    Apr 15, 2009
    Messages:
    2,019
    Likes Received:
    1,496
    Occupation:
    Product marketing
    Location:
    USA
    Home Page:
    Active X would only be a Microsoft IE solution not that I want to encourage such rude behavior. Also, keep in mind such rude behavior could get you flagged by security solutions as well.
     
  20. smack

    smack Junior Member

    Joined:
    Feb 1, 2010
    Messages:
    182
    Likes Received:
    78
    Occupation:
    Software Engineer/Evil Genius
    Location:
    inside .NET

    something tells me the OP probably isn't too concerned about being flagged as a security risk.

    strictly in reference to active x only working with IE though, you could always look at it as 60% success is better than 0% success.