Drixson Oseña
Drixson Oseña

Reputation: 3641

How to allow specific domain name to access my domain?

I have this in my .htaccess

<Limit GET POST>
Deny from all

Allow from xxx.x.xxx.x
Allow from xxx.xx.xxx.x
Allow from xxx.xx.xx.x
</limit>

So I am good with this setup now I am allowing certain ip to access my server but now I need add another but I cannot get their ip address so I need to allow via their url. How can I accomplish this case?

for example I want developer.paypal.com/(any) to allow to access the php scripts in my server

Upvotes: 1

Views: 5603

Answers (1)

Prix
Prix

Reputation: 19528

You can use:

Allow from bla.com

Assuming that bla.com is the domain name and that it is properly assigned to the IP that is making the requests to your site.

If the IP is not properly assigned to that domain name or is dynamic you can use a different approach such as user and password authentication, and others available.

Upvotes: 1

Related Questions