mayranch
mayranch12mo ago

Blocking ads via the Windows Firewall

Ad Blocker is a type of software whose purpose is to block advertisements that appear on websites. Chief among them is a browser add-on called AdBlock. The AdBlock mechanism includes many ways to identify advertisements and block them, among them by common words (ad for example), by behavior on the page and also by blacklists of IP addresses. In the next exercise, you must go to Magashim's B&B reservation website (http://34.218.16.79:1234) and with the help of the Windows firewall, reach a state where no advertisements appear at all. * Please note, if your browser already has an ad blocker running, you must suspend it before solving the exercise by clicking on Don't run on pages on this site. If you succeeded, attach a screenshot of the "clean" website. In addition, describe the rules you added and how you discovered that a letter should be added
49 Replies
mayranch
mayranchOP12mo ago
@null1776
_null
_null12mo ago
I'm working on solving it myself, I should be able to give better feedback. Allow me a few minutes
mayranch
mayranchOP12mo ago
ok thanks
_null
_null12mo ago
Well, I was able to accomplish the task. It however wasn't in a very satisfactory manner. I used an ADBlock extension like mentioned. The one I used though just had me select elements on the site to hide, I didn't manually configure it at all. I assume this is a method of making it easier for most people to handle. I don't think that will be satisfactory for the description requirements
mayranch
mayranchOP12mo ago
ye but they told me to block theese ads on firewall how can i do that? what rule i need to add
_null
_null12mo ago
what firewall are you using?
mayranch
mayranchOP12mo ago
No description
_null
_null12mo ago
it will be specific to that
mayranch
mayranchOP12mo ago
i just do windows + r and type firewall.cpl so you know what i need to block on firewall the ip or port of that ad
_null
_null12mo ago
Lifewire
How to Block any IP Address on Windows and Mac
You can block an IP address from your computer on Windows or Mac. It's also possible to block IP addresses on your network via your router.
_null
_null12mo ago
you don't want to block the port no, that would prevent all https traffic you want to add those ips to a blacklist
mayranch
mayranchOP12mo ago
so i need to block this ip addresses
No description
mayranch
mayranchOP12mo ago
of the ad images
_null
_null12mo ago
yes and that should help you with the description portion as well. Just tell them the steps you took and take a screenshot of the website.
mayranch
mayranchOP12mo ago
ok thanks ill try it do i need to incluse the ip:1234 or only ip
_null
_null12mo ago
not that ip, that is for the website. If you block that you wont get any of the content you need you want to selectively target just the ads
mayranch
mayranchOP12mo ago
but this ip addres are the image one
No description
_null
_null12mo ago
oh, yeah. just the ip that should cover all ports
mayranch
mayranchOP12mo ago
ok ill try it it still shows me the ad
_null
_null12mo ago
did you block them all? show me your rules
mayranch
mayranchOP12mo ago
i just make rule on inbound and outbound and added this ip in custom
_null
_null12mo ago
could I see the rules you created.
mayranch
mayranchOP12mo ago
ok
_null
_null12mo ago
you only needed an outbound rule
mayranch
mayranchOP12mo ago
oh so sec ill delete all of them and do again
_null
_null12mo ago
follow that guide I sent, it should walk you through the steps precisely
mayranch
mayranchOP12mo ago
i will show u step by step what i do
mayranch
mayranchOP12mo ago
No description
mayranch
mayranchOP12mo ago
No description
mayranch
mayranchOP12mo ago
here i just do next right?
No description
_null
_null12mo ago
the protocol type, select http or https
mayranch
mayranchOP12mo ago
No description
mayranch
mayranchOP12mo ago
there is no hhtp or https i can do maybe tcp and add port 80
_null
_null12mo ago
I believe its https so that wouldnt work just leave it on any, IPv4 would have been the optimal choice but its not on there oh I checked, it isn't https but its also not port 80 they are requesting on port 1234 if I remember from your image
mayranch
mayranchOP12mo ago
yea so just keep it on any?
_null
_null12mo ago
I think that's the best option, we might have to revisit that though
mayranch
mayranchOP12mo ago
ok
mayranch
mayranchOP12mo ago
No description
mayranch
mayranchOP12mo ago
like this right now click next?
_null
_null12mo ago
no, switch the top one you want to select any ip address thats the local ip address it will apply to, ie the one that you are connecting to the internet with and the remote ips are the ips that you are sending a request out to.
mayranch
mayranchOP12mo ago
so i put the ip in the box down?
_null
_null12mo ago
yes I think you can add your whole list there
mayranch
mayranchOP12mo ago
and the avuka.net i just do nslookup and take the ip?
_null
_null12mo ago
or whois if that is one of the ads, then yes
mayranch
mayranchOP12mo ago
No description
mayranch
mayranchOP12mo ago
now click yes? next*
_null
_null12mo ago
yes I will be away from my keyboard for about 15 minutes, I'll check back when I return
mayranch
mayranchOP12mo ago
ok it worked thanks
_null
_null12mo ago
No problem!