xoligy Posted September 17, 2008 Share Posted September 17, 2008 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 More sharing options...
ranjuvs Posted September 17, 2008 Share Posted September 17, 2008 dynamically empty out the href value. dynamically add rel="nofollow" attribute the anchor tags - this is for stop User Agents to follow the link Link to comment https://forums.phpfreaks.com/topic/124607-block-referal-links/#findComment-643596 Share on other sites More sharing options...
waynew Posted September 17, 2008 Share Posted September 17, 2008 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 More sharing options...
xoligy Posted September 17, 2008 Author Share Posted September 17, 2008 @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 More sharing options...
ranjuvs Posted September 17, 2008 Share Posted September 17, 2008 I mentioned two points. for the second one I had mentioned it is to stop the User Agents to follow the link. FYI user agents means Robots Link to comment https://forums.phpfreaks.com/topic/124607-block-referal-links/#findComment-643660 Share on other sites More sharing options...
xoligy Posted September 17, 2008 Author Share Posted September 17, 2008 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 More sharing options...
xoligy Posted September 20, 2008 Author Share Posted September 20, 2008 Anyone got any other suggestions? I was thinking of a word filter that blocks off signup.php?= and register.php?= but i wouldnt know how to add a wild card after that lol Link to comment https://forums.phpfreaks.com/topic/124607-block-referal-links/#findComment-646182 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.