Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm)
Author Message
nobleclem
New Member
New Member



Joined: Dec 22, 2002
Posts: 15

PostPosted: Sun Aug 22, 2004 10:29 pm Reply with quote

Well I have had several errors in my logs with someone trying to access modules/My_eGallery/public/displayCategory.php on my server which doesnt exist and I wanted to create that file so that when it is run that it automatically Bans that persons IP automatically.

I dont know if this is possible within NukeSentinel so I wanted to do this manually.
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Mon Aug 23, 2004 12:27 am Reply with quote

Not exactly. But, you can cause them some grief.

Put this code in your file
Code:
<?

header("Location:  http://your_site.com/abuse/abuse.html");
?>


This does assume you are using the PC Killer template. If not, just direct it to wherever. To actually ban them, you would need to write to the .htaccess file. Use the code from includes/sentinel.php as a guide.

Another though (not tested). Create the folder hierarchy and file. Leave that code as directed above. Then, in Sentinel config, under String Blocker Settings, add

/My_eGallery/public/displayCategory.php

That should work Wink. The reason you need to create the folder/file structure is that Apache will grap the URI before Sentinel does and return a 404.
 
View user's profile Send private message
nobleclem







PostPosted: Mon Aug 23, 2004 6:46 am Reply with quote

thanks raven...

Will do I like that.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm)

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©