Hello all
I am developing a webserver/firewall
the firewall is depending on URL filtering using regex but in fact it isn't working with me
when i use a simple reg
like
if($request =~ m/index\.php/)
{
print "something";
}
even when i do
print C "<html><body>...</body></html>;
where C is my socket
so how i can get regex from a file called rules which content regex rule in each line and match the URL with each rule from the text??
another question : How i can interprete php files when they're in my localhost document
i know it's by getting a php interpreter but how to make it work
I am getting the file from the url so how to intrpret it directly when the client ask for it
and thank you ^^,