How To Change The Api Url. And, Ip Allow

old: www.webadress.com/api/

new: www.webadress.com/webapiadress/

where can I change it to work like this?

and

you can enter the IP addresses specified in this API.

to increase security.

don't allow with htaccess

for example: 78.123.123.123 allow (POST PUT GET DELETE)

Order allow,deny Allow from 78.123.123.123 Deny from all

How Can I do it?

to increase security.

old: www.webadress.com/api/

new: www.webadress.com/webapiadress/

where can I change it to work like this?

Try to make these changes in .htaccess

http://prntscr.com/jfa5zw

you can enter the IP addresses specified in this API.

to increase security.

don't allow with htaccess

for example: 78.123.123.123 allow (POST PUT GET DELETE)

Order allow,deny Allow from 78.123.123.123 Deny from all

How Can I do it?

to increase security.

You can add necessary condition in the api.php file

if ($_SERVER['REMOTE_ADDR'] != '78.123.123.123') { 
    die('Access denied');
}

Try to make these changed in .htaccess

http://prntscr.com/jfa5zw

You can add necessary condition in the api.php file

if ($_SERVER['REMOTE_ADDR'] != '78.123.123.123') { 
    die('Access denied');
}

thanks for your reply.