Jump to content
The Uniform Server Community

Need a secure.pm that does not block


 Share

Recommended Posts

# 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?

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 years later...

Wll yes, if everything is commented as i said.

 

i have the same situation i check my browser ( im using k-meleon ) and i see that my browser is block http referrer so i think the problem maybe with the browser :)

I'm not a coder nor a programmer. I just love learning from error :P

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...