Home > Mobile >  Prevent direct access to a php
Prevent direct access to a php

Time:05-16

I don't want to use .htaccess.

  • a.php b.php c.php compute.php

a.php b.php and c.php uses it like this

$.get(compute.php?number=800)

I want a.php b.php and c.php to be able to access compute.php

but I don't want to allow this to public.

http://localhost/compute.php?number=800

Is this possible?

  • Related