• Resolved Umesh Ghimire

    (@ughimire1)


    I would like to restrict to other’s domain to install my theme. Can i do it ?

    I have a theme, which i would like to install my domain name eg: abc.com. and the question is to restrict other domain to install my theme. Is it possible? i

Viewing 9 replies - 1 through 9 (of 9 total)
  • You mean you don’t want people to be able to access your website (e.g. abc.com) while you’re installing your new theme? Or redirect them to a different domain (e.g. xyz.com)?

    Thread Starter Umesh Ghimire

    (@ughimire1)

    Actually i would like to check following type of condition on my theme:
    In that theme i would like to make a condition, while installing my theme:
    if(mydomain!=’abc.com’)
    {
    // Show Something Error on Installation // You Couldn’t install this theme without Developers permission.

    }exit;

    I would like to check that type of condition. any idea about this?

    Nabil

    (@nabil_kadimi)

    Is this a network installation?

    Thread Starter Umesh Ghimire

    (@ughimire1)

    Nup ! Not a network installation!

    are you creating your own custom theme?

    Nabil

    (@nabil_kadimi)

    I guess there are many admins in that website…

    Thread Starter Umesh Ghimire

    (@ughimire1)

    Yes anshu verma ! i am going to create my own custom theme!
    No Nabil k. there are not so many admins.

    You mean something like this?

    <?php
    
    if($_SERVER['HTTP_HOST'] != 'abc.com')
    {
    	echo 'You can\'t install this theme without the developer\'s permission.';
    
    	exit;
    }
    
    ?>
    Thread Starter Umesh Ghimire

    (@ughimire1)

    Yes! Znuffn !

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Restricting domain while installation’ is closed to new replies.