/    Sign up×
Community /Pin to ProfileBookmark

I need a code that will alert the user that they’ve been banned AND redirects them to another website.

Can you help? ?

to post a comment
PHP

10 Comments(s)

Copy linkTweet thisAlerts:
@skywalker2208Aug 13.2008 — You need to have the banned ip address store somewhere like a database and if and when the page loads it check the current user viewing the page. If the ip matches with the one that you stored then it redirects them. Do you have any code written?
Copy linkTweet thisAlerts:
@SyCoAug 13.2008 — FYI, users behind a proxy will all get banned if any one of them breaks your rules.
Copy linkTweet thisAlerts:
@QuidamAug 13.2008 — I think there is a way to get the "real" ip of a PC behind a proxy.
Copy linkTweet thisAlerts:
@legendxAug 13.2008 — I think there is a way to get the "real" ip of a PC behind a proxy.[/QUOTE]

That would made the entire idea of a proxy pretty worthless.
Copy linkTweet thisAlerts:
@rootAug 13.2008 — Are you in the UK, Europe or the USA?

I ask because where you live will have a large part to play in if you are acting illegally or not.

UK & Europe is a big no no to this type of activity, to ban a person comes under discrimination and bullying and in some cases can be covered by (non physical) assault.

Hope this has not put your bonfire out!?!
Copy linkTweet thisAlerts:
@HHCOwnerauthorAug 14.2008 — The people I'm banning have gone against my sites privacy policy or rules so I can't imagine why it would be an issue but I'm in the US and I've found a few codes but they don't redirect the user it just alerts them which is kind of useless. :rolleyes:
Copy linkTweet thisAlerts:
@rootAug 14.2008 — Your site privacy policy pertains to you and what you do to ensure you do not infringe on your visitors privacy and not the other way around.

In relation to IP addresses, most IP addresses are dynamic, so banning a user with an IP address of 213.132.231.123 would serve its purpose for the time that user is onlin but when they go and the IP address is recycled by the DHCP pool, it if issued to another member of your site, you would be blocking a valid user.

IP based banning is a complete utter waste of the server resources.

Checking the law and how legal your end user site agreement is would serve you well. A document has to be worded in a particular way, use specific terms so as to negate ambiguity in a legal case.

If you are collecting personal data, have you registered with the data commissioner for your country / state?

It is not a simple case of putting up a privacy / end user agreement and expecting people to stick to it, you have to provide all the appropriate bits yourself and at least have the legality of your privacy policy examined by a legal professional.

I could tell you of the case of my EX vs Tidy.com and she won because of legal technicality's like their end user agreement and privacy policy as well as the fact that they broke the law.

So tread carefully or you could be opening the doors to legal issues.
Copy linkTweet thisAlerts:
@maverukAug 14.2008 — I'm sure I've read of a way to use Javascript to get the users CPU ID or hard drive ID, or something unique to the computer. Using that information you could ban their PC directly. They could use another PC in their house but you'd be stopping the direct cause and it won't affect people on a proxy or dynamic IP.
Copy linkTweet thisAlerts:
@rootAug 14.2008 — I'm sure I've read of a way to use Javascript to get the users CPU ID or hard drive ID, or something unique to the computer. Using that information you could ban their PC directly. They could use another PC in their house but you'd be stopping the direct cause and it won't affect people on a proxy or dynamic IP.[/QUOTE]

That wouldn't work as all the person would need to do is change the name of their PC. For you to gain the information legally the visitor has to agree to your software accessing this information, to take it without permission is assault and theft.

The only way to ban a user is to lock them out by MAC ID of the LAN card, even that is easily thwarted by the user installing a new LAN adapter which then gets around that issue.

You still have the legal aspects to grapple with. The US has some legal quirks of its own which many people fall foul of, the reason why nothing is done is because people just are not aware of their legal rights and these end user agreements that have no legal standing, which is why you need to have legal assistance on these issues. Can the thread poster in his / her state legally ban a person or refuse people access to his site? It is a mine field and one that I myself have had to work my way around seeing as the site I develop is for UK citizens, so in my case, I am not banning people but not allowing public access.

If the thread poster makes their site complete close to the public and make it a members only affair then this would be a different story, what the poster is asking for and do is in some country's totally illegal despite the fact that it happens, it is still illegal in many parts of the world.

It pays to check, shutting the gate after the bull has bolted is never going to solve the issue.
×

Success!

Help @HHCOwner spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...