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?
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?
You can add necessary condition in the api.php file
if ($_SERVER['REMOTE_ADDR'] != '78.123.123.123') {
die('Access denied');
}