Jump to content

Block referal links?


xoligy

Recommended Posts

Just wondering how woud you block all referal/signup links for example someone comes ioto my site and says "Come join this site at www.whatever.com/ref=?whatever" or signup.php how would i go about blocking them out? I mean i dont mind people posting up a website i just hate it when people say "Refer me!" lol.

 

I dont mind if it just blocks off the end or the whole link but like i said i would like users still be able to post links ???

Link to comment
https://forums.phpfreaks.com/topic/124607-block-referal-links/
Share on other sites

Send all links through another page such as link.php or something.

 

Whenever your users write http://whateveretc.com

 

Change the link to look like "link.php?url=http://whateveretc.com"

 

Then check for websites that you have personally blocked. If you've blocked them, tell the user that you've blocked that website or something etc.

Link to comment
https://forums.phpfreaks.com/topic/124607-block-referal-links/#findComment-643604
Share on other sites

@ranjavs - i think you have the wrong idea about what im on about, from what i have quickly scanned through in text your idea stops robots???

 

@waynewex - idea is kind of what im looking for but im sure there is a better way tbh i swear ive seen it on forums...

 

Here is what i know, i know on some forums your able to make a llink run though a proxy so say the link is www.phpfreaks.com it would now run as www.proxy.com?=www.phpfreaks.com (or whatever it is). What i would like to do is remove or replace the text after the www.whatever.com so in this case www.whatever.com/ref?=poster to either www.whatever.com or www.whatever.com/blocked or www.whatever.com/********

 

I was thiking maybe a word filter on things? but im sure there is a better way :/

Link to comment
https://forums.phpfreaks.com/topic/124607-block-referal-links/#findComment-643659
Share on other sites

Yes your way stops robots i said people as in a person. So if i posted:

 

"hey come join this site! www.phpfreaks.com/ref?=xoligy" when you clicked the link a few things could happen.

 

1. your sent to the link (no ref)

2. you get an error page

3. you get redirected to something else

 

and didnt i say stop robots in my post above yours?

Link to comment
https://forums.phpfreaks.com/topic/124607-block-referal-links/#findComment-643666
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.