I would like to restrict from the specified URLs
But, this command does not work.
Currently, it won't recgnize the URLs.
Please help me to correct this.
@BAD_LISTS = (
"http://www.samurai-restaurant.com/Services/index.html",
"http://www.samurai-restaurant.com/Menu/home.html",
"http://www.samurai-restaurant.com/add.html"
);
$referer = $ENV{HTTP_REFERER};
foreach $list (@BAD_LISTS) {
if ($referer = $list)
{
print "Location: /error.html\n\n";
exit;
}
else {
.....
}
But, this command does not work.
Currently, it won't recgnize the URLs.
Please help me to correct this.
@BAD_LISTS = (
"http://www.samurai-restaurant.com/Services/index.html",
"http://www.samurai-restaurant.com/Menu/home.html",
"http://www.samurai-restaurant.com/add.html"
);
$referer = $ENV{HTTP_REFERER};
foreach $list (@BAD_LISTS) {
if ($referer = $list)
{
print "Location: /error.html\n\n";
exit;
}
else {
.....
}