A
A
Alexander2018-03-16 15:21:33
PHP
Alexander, 2018-03-16 15:21:33

How to prohibit jumping to a file through the index line?

There are 2 files: admin.php and login.php
1 - admin panel, 2 - entrance to it. If the login is successful, you are redirected to admin.php
How can I make it so that I can't go through the address bar to the admin.php file?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Skibin, 2018-03-16
@megafax

Check in admin.php for user authorization, and if it is absent, redirect it to login.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question