Somewhat similar kind of thing happened with me...I used to check a lot of facebook and while doing so I used to get stumbled upon articles with pics of beautiful girls or related to sexual content...That was igniting my inner feelings and I fapped everytime it happened... So I have filtered my facebook and have liked lots of inspirational, informational and self help pages that give me positivity and daily motivation.... Now, I have reduced my dependency on facebook and even when I do open it sometimes it makes me happy to gather some useful information. I have started meditation and I think it has helped me reduce my dependency on such stuff... I think you should read book - The Power of habit by Charles Duhigg...I am reading it nowadays... Or you could listen to the audiobook... It provides some great insights about how to break a bad habit...It would help in the challenge as well as with your other problem... Just like the famous saying " a knife in a doctor's hand is a lot different than a knife in a butcher's hand as it all depends on how we use it" What I want to say with this quote is that technology is not bad or good...all that matters is how we use it...So I would recommend you to like pages on facebook- success magazine, success sayings, addicted 2 success...as these will help you in your journey.. I hope it helps as it has helped me a lot..