limit acces files

Security issues related to php and mysql usage. How to make your code secure? Security measures and configurations? It's all in here!

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 10
Joined: Tue Apr 11, 2006 11:29 pm

Tue Apr 11, 2006 11:34 pm

how do i give an ip restriction to an file without restarting the server?
and on toppic :D

i have users upload files true php and storing links to mysql
and only the user who have uploaded the file may download it
so i need ip restriction without restarting the server
or an other idea to have url that only gives specific users acces?
does enyone know how to build this? :help: 8)
User avatar
Alexej Kubarev
Site Admin
Site Admin
Posts: 2213
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Wed Apr 12, 2006 11:07 am

i think its better that you do that via a php script.. like check for IPs and stuff..
however you talk about restarting the server... that means you want it via apache configuration? well how about .htaccess files?
Best Regards,
Alexej Kubarev
Zend Certified Engineer
Image Image
Post Reply