+ 1
Certain web pages only accessible to owner and not customer
Im creating an eCommerce website. I have a page that enables the business owner to upload products to the shop. I only want this page to be accessible to the owner as i only want him to upload products. How do i go about this? The page itself works, all i want to know is how do i make this page accessible to the owner only.
4 Antworten
+ 4
You can check if the ipaddress matches the owner
$_SERVER['REMOTE_ADDR']
+ 1
You could do this with PHP sessions.
Do you have login form in your site?
0
I do not want to use a login form. I was wondering if there is another way to do it.
0
Well one way is to ask admin password when trying to access that page.