PDA

View Full Version : How would you ban a certain user from your site?


Carole
06-06-2001, 02:16 PM
(I didn't know where this would fit, so if a mod wants to move it, feel free to do so)

How could I block a certain person(s) from visiting my website? I don't know if it's a bot or something, but I have a link directory and get tons of un-related links from (mostly) german porn sites submitted almost every other day (15 out of 20 submissions end up being porn!)
I don't know how they are finding the site, but I really want to ban them from cluttering up my admin. panel. None of these sites get publicized, it's just annoying for me.
I use the link directory from 'gossamar threads' if that helps, or would it be controlled through something else other than my script? .htaccess does it I think, but I don't know the commands. The info I have are URLs, email addys, names, and remote host numbers...

Any input would be appreciated!!
- Carole

Jason
06-06-2001, 02:48 PM
If it is a bot, you should be able to kill it off just by changing the field names on the form.

tony10
06-07-2001, 09:59 AM
Some meta tags can stop a bot from entering your site, but hosts like Communitech.net let you block IP's from your site with a special program for use on a Sun Solaris Server. I dont know the name.

whkoh
06-07-2001, 08:00 PM
As tony said, you can use an IP-ban script, but you must know the specific person's IP. I've never used this script before, but try it out:

<script language="JavaScript">
// This script has been written by LGST, http://www.lgstech.net

var ip = '<!--#echo var="REMOTE_ADDR"-->'
if (ip == '206.186.23.178') {
alert("Your IP is not allowed to Enter");
if (confirm("Do you want to leave? Or do you need help?"))
{location.href="http://lgstech.cjb.net" }
else
{ ("Bye! bye! Don't come back!");
{location.href="http://lgstech.cjb.net" }} }

</script>

Carole
06-07-2001, 08:07 PM
Thanks guys
I've done a few things to try to stop this; one being setting up an IP block with htaccess, and making changes to the links script, but neither worked for this particular person, so I ended up changing the location of my submission .cgi file and hopefully the search engine or whatever auto submitter it was will not notice anytime soon...