Jump to content
The Uniform Server Community

BartAfterDark

Member
  • Posts

    2
  • Joined

  • Last visited

BartAfterDark's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. # package secure; # # If you want to disable security check - comment the following lines with #. # # if (($ENV{HTTP_REFERER}!~/^http[s]?:\/\/localhost\/apanel/)&&($ENV{HTTP_REFERER}!~/^http[s]?:\/\/127\.0\.0\.\d+\/apanel/)){ # print " # <div id=\"main\"> # <h2>» Security Alert!</h2> # <h3>Possible Attack</h3> # <p> # HTTP_REFERER is not localhost. but '<b>".$ENV{HTTP_REFERER}."</b>'. # <br /> # <br /> # To disable this warning go: /home/admin/www/cgi-bin/secure.pm # <p> # </div>"; # # require footer; # # exit; # }; # # return 1; This should work then?
  2. Hey, I tried putting in the # so it shouldn't check for http_refer. But it just wont work, after I did it the links in apanel turns to blank pages and not working. I don't know if it has something to do with the port 82 i'm using now.- - Lars
×
×
  • Create New...